Design analgorithm that decides for each node

Assignment Help Data Structure & Algorithms
Reference no: EM1361885

A sensor network is organized by a tree T, where the root s corresponds to the base station which receives data from every other node. We assume the time is divided into a continuous sequence of slots of fixed length, starting from slot 0, 1, 2, .... Moreover, we assume:

(1) Every node (sensor) has a unit of data to send to its father which needs one time slot.

(2) A father node can receive only one unit of data in each time slot from one child.

(3) A father node cannot start sending data to its own father until he has received all data from his children.

(4) Once a node starts sending data, it cannot stop in the middle until finish. The number of time slots needed is equal to the total number of units of data received plus one for his own data.

(5) There are n leave nodes.

Design an O(n) algorithm that decides (schedules) for each node at which time slot to start sending data such that the total number of time (slots) is minimized. We assume the schedule stats from slot 0. The following figure shows an example.

Reference no: EM1361885

Questions Cloud

Calculate expected return and standard deviation : Jane is planning investing in three different stocks or creating three distinct two-stock portfolios. Jane considers herself to be a rather conservative investor.
What is the attractive force between the protons : What is the attractive force between the protons. A rocket rises vertically, from rest, with the acceleration of 3.0 m/s2 until it runs out of fuel at an altitude of 1100 m. After this point, its acceleration is that of gravity, downward.
Type of squats and contrast : Choose two different type of squats and contrast the muscles worked. In other words, choose two different mechanics variations and tell us how they work the same muscles a little bit differently.
Explain when a company is contemplating establishing : Explain When a company is contemplating establishing an international presence, what factors may determine whether to operate as a centralized
Design analgorithm that decides for each node : Design an O(n) algorithm that decides (schedules) for each node at which time slot to start sending data such that the total number of time (slots) is minimized.
Regaining cardiovascular endurance : A 30 year old male was able to last 9 minutes on the Bruce protocol sub-max test. What is his VO2Max? Design a six week workout program for him to help him regain his cardiovascular endurance.
Improving muscular endurance : A 25 year old male can only perform 20 consecutive pushups. Where does his range fall? Design a six week long workout protocol for him to improve his muscular endurance.
Create an abstract representation of a generic animal : Create an abstract representation of a generic Animal that has the at least two polymorphic methods for making a sound and showing the image of the animal.
Explain samsung electronic attempt to make profits : Explain Samsung Electronic attempt to make profits from rising consumer demand after the crash. Analyze how both companies attempted to make a profit after the crash

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Survey of fault tolerance policy for load balancing scheme o

This paper investigates about fault-tolerance in load balancing schemes in distributed environment. There are some more parameters influencing QOS but our main focus is on fault tolerance and load balancing.

  Graph in which every node is pivotal for at least two nodes

Give an example of a graph in which every node is pivotal for at least two di fferent pairs of nodes. Explain your answer.

  Computing randomized quick sort-s running time

Suppose that all element values are equal. What would be randomized quick sort's running time in this case? Each element of A[p .. q-1] is less than A[q], and each element of A[t+1 .. r] is greater than A[q]

  Determining entropy of encrypted message

If this message is encrypted with DES by using a random 56-bit key, determine encrypted message's entropy?

  Advantage of fast running time of insertion sort

Running time of quicksort can be enhanced in practice by taking advantage of fast running time of insertion sort when its input is "nearly" sorted.

  Algorithm to divide sixteen digit value by six digit integer

Divide 16 digit value N by six digit integer D obtaining quotient Q and remainder (or sign of the remainder) R by division algorithms.

  Describe sorting algorithm to be parsimonious

Describe a sorting algorithm to be parsimonious if it never compares same pair of input values twice. (Supose that all the values being sorted are distinct.).

  Explaining effective customer relationships and loyalty

Paws'n Tails is an online pet shop that wants to influence what customers buy and builkd effective customer relationships and loyalty.

  Sort array of elements using the quick sort algorithm

"sort an array of 10,000 elements using quick sort algorithm as follows: sort the array using pivot as middle element of the array

  Determine algorithm for cs curriculum consists of n courses

Determine an algorithm which works directly with this graph representation, and calculates minimum number of semesters necessary to complete the curriculum.

  Describe a fair coin algorithm to returns either 0 or 1

Describe a FAIRCOIN algorithm that returns either 0 or 1 with equal probability, using ONEINTHREE as your only source of randomness.

  Writing algorithm which ?nds xbest

Provide an O(n) algorithm which ?nds xbest such that distbest:= ∑i=1 to n|xbest - xi| is as small as possible.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd