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

  Explain sorting algorithm which is optimal in cost

Explain a sorting algorithm which is optimal with respect to this cost model and uses O(n) space. That is, time used by algorithm should exactly match lower bound

  Write the selection sort algorithm

Write the selection sort algorithm

  Design algorithm to read a file of employee records

Design an algorithm and souce code C++ that will read a file of employee records and produce a weekly report of gross earnings for those employees.

  Method singleparent returns number of nodes in binary tree

Write a method singleParent, which returns number of nodes in a binary tree that have only one child.

  Algorithm to find maximum sum of contiguous sublist

Using dynamic programming, write an algorithm to find the maximum sum of contiguous sublist of a given list of n real values.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  Decrypting the ciphertext to recover the plaintext

If you get ciphertext message YPHDCRPBEQTAA, decrypt to recover plaintext.

  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]

  Simplify rsa cryptosystem using prime number

Assume we tried to simplify RSA cryptosystem using just prime p instead of composite modulus N = pq. As in RSA, we would have encryption exponent.

  Create a binary search tree program

Creating a Binary Search Tree program - Finding the largest and smallest values in the tree Add two class methods

  Create a solution algorithm using pseudocode

Algorithm that will receive two integer items from a terminal operator, and display to the screen their sum, difference, product and quotient.

  Online vs. face-to-face classes

Communication A significant distinction between online and face-to-face classes lies in the area of communication.

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