Affect the running time of an algorithm

Assignment Help Mathematics
Reference no: EM1318396

To check whether the representation of input elements does not affect the running time of an algorithm.

Suppose you have n video streams that need to be sent, one after another, over a communication link. Stream I consists of a total of bi bits that need to be sent, at a constant rate, over a period of ti seconds. You cannot send two streams at the same time, so you need to determine a schedule for the streams: an order in which to send them. Whichever order you choose, there cannot be any delays between the end of one stream and the start of the next. Suppose you schedule starts at time 0(and therefore ends at time ∑ni=0 ti ,whichever order you chose).we assume that all the values b and ti  are positive integers.

Now, because you are just one user ,the link does not want you taking up too much bandwidth, so it imposes the following constraint ,using a fixed parameter r:

(*) for each natural number t>0,the total number of bits you send over the time interval from 0 to t cannot exceed rt.

Note that this constraint is only imposed for time intervals that start at 0, not for time intervals that start at any other value.

We say that a schedule is valid if it satisfies the constraint (*) imposed by the link.

The problem given a set of n streams, each specified by its number of bits bi and its time duration ti ,as well as the link parameter r, determine whether there exist a valid schedule.

Example: suppose we have n=3 streams, with

(b1, t1)=(2000,1)       (b2, t2)=(6000,2)         (b3, t3)=(2000,1)

and suppose the link's parameter is r=5000.then the schedule that n runs the streams in the order 1,2,3 is valid, since the constant (*) is satisfied:

t=1; the whole first stream has been sent, and 2000<5000

t=2 ; half of the second stream has also been sent.

and 2000+3000 <5000

Similar calculations hold for t=3 and t=4

Give an algorithm that takes a set of n streams, each specified by its number of bits bi and its time duration ti, as well as the link parameter r, and determine whether e there exists a valid schedule .the running time of you algorithm should be polynomial in n.

Reference no: EM1318396

Questions Cloud

Finding tc with confidence level and sample size : Find the t c for a 90% confidence level with a sample size of 18.
Propose three ways of mentor and new employee : Propose three ways that a mentor and a new employee orientation can assist employees with their career development.
Find the value of x at which the minimum or maximum occurs : Find the value of X at which the minimum or maximum occurs.
Estimating the mean length of time : A physician wanted to estimate the mean length of time  µ  that a patient had to wait to see him after arriving at the office.
Affect the running time of an algorithm : To check whether the representation of input elements does not affect the running time of an algorithm
Determine the elements of valid contract : Describe the elements of valid contract, and critically discuss how consumers and banks each have a duty of good faith and fair dealing in banking relationship.
Important results over real valued functions : Verifying some important results over real valued functions - real-valued functions
Computing critical value and null hypothesis : What is the null hypothesis?  Use   α =0.05. Compute critical value.  Use   α =0.05.
Listing the significant investigative approaches : What do you think are the most significant investigative approaches in preparation for these cyber crime cases and what could be the result of the poor investigator planning and preparation before start of the digital evidence collection, and proc..

Reviews

Write a Review

Mathematics Questions & Answers

  Sketch a graph of the given function

Sketch a graph of the given function C(h) - Where is the vertical asymptote? Does it play a role in this context?

  Evaluate the distance between two ships

Find the distance between two ships from the word problem and From a lighthouse, the lighthouse keeper sees two ships

  The equation of tangent line

The equation of tangent line.

  Solve the equation on the interval

Solve the equation on the interval.

  Evaluate the multiple integral under given condition

Evaluate the multiple integral under given condition using spherical coordinate - Convert the following triple integral to an appropriate coordinate system and evaluate.

  Show the applications of quadratic equations

Applications of quadratic equations: Maxima and minima - Based on this model when did the percent of people in this income level reach its minimum?  You do not have to graph the function.

  Determine the equation of the straight line from

Determine the equation of the Straight line from the given data - Find the equation of the indicated curve, subject to the given conditions, Sketch the curve

  Evaluate the equation of the indicated curve

Find the equation of the Straight line from the given data - Evaluate the equation of the indicated curve, subject to the given conditions,

  Find all the subfield of k containing q

Find all the subfield of K containing Q.

  Rate of change over the time intervals

Rate of change over the time intervals .

  Find the distance between the silo and tree from

Find the distance between the silo and tree from the given data - What is the distance between the silo and the tree, correct to the nearest meter?

  Use taylor''s expansion to arrange the function

Use Taylor's expansion to arrange the function in ascending order - explain briefly how the Taylor expansions tell you what order the functions

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