Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 your schedule starts at time 0 (and therefore ends at time ~1 ti, whichever order you choose). We assume that all the values bi and t~ are positive integers.

Now, because you’re 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 > O, 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 exists a valid schedule.

Example. Suppose we have n = 3 streams, with (hi, q) = (2000, 1), (b2, t2) = (6000, 2), (b3, t3) = (2000, 1), and suppose the link’s parameter is r = 5000. Then the schedule that runs the streams in the order 1, 2, 3, is valid, since the constraint (.) is satisfied: t = 1: the whole first stream has been sent, and 2000 < 5000.1 t = 2: half of the second stream has also been sent, and 2000+ 5000 5000- 2 Similar calculations hold for t = 3 and t = 4.

(a) Consider the following claim:

Claim: There exists a valid schedule if and only if each stream i satisfies bi

Decide whether you think the claim is true or false, and give a proof of either the claim or its negation.

(b) 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 determines whether there exists a valid schedule. The running time of your algorithm should be polynomial in n.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

a The claim states that there exists a legitimate time table if and simplest if each move i satisfie... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Programming questions

Question

4 9 6 . .

Answered: 1 week ago