06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“mcs” — 2017/3/3 — 11:21 — page 407 — #415<br />

10.11. Summary of Relational Properties 407<br />

Lisa and Annie want to complete all these tasks in the shortest possible time.<br />

However, they have agreed on some constraining work rules.<br />

Only one person can be assigned to a particular task; they cannot work together<br />

on a single task.<br />

Once a person is assigned to a task, that person must work exclusively on<br />

the assignment until it is completed. So, <strong>for</strong> example, Lisa cannot work on<br />

building a fleet <strong>for</strong> a few days, run to get shots <strong>for</strong> Tailspin, and then return<br />

to building the fleet.<br />

(b) Lisa and Annie want to know how long conquering the galaxy will take. Annie<br />

suggests dividing the total number of days of work by the number of workers, which<br />

is two. What lower bound on the time to conquer the galaxy does this give, and why<br />

might the actual time required be greater?<br />

(c) Lisa proposes a different method <strong>for</strong> determining the duration of their project.<br />

She suggests looking at the duration of the critical path, the most time-consuming<br />

sequence of tasks such that each depends on the one be<strong>for</strong>e. What lower bound<br />

does this give, and why might it also be too low?<br />

(d) What is the minimum number of days that Lisa and Annie need to conquer the<br />

galaxy? No proof is required.<br />

Problem 10.22.<br />

Answer the following questions about the powerset pow.f1; 2; 3; 4g/ partially ordered<br />

by the strict subset relation .<br />

(a) Give an example of a maximum length chain.<br />

(b) Give an example of an antchain of size 6.<br />

(c) Describe an example of a topological sort of pow.f1; 2; 3; 4g/.<br />

(d) Suppose the partial order describes scheduling constraints on 16 tasks. That<br />

is, if<br />

A B f1; 2; 3; 4g;<br />

then A has to be completed be<strong>for</strong>e B starts. 16 What is the minimum number of<br />

processors needed to complete all the tasks in minimum parallel time?<br />

Prove it.<br />

16 As usual, we assume each task requires one time unit to complete.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!