Hey Everyone,
Post your solutions to the Feb 13 In-Class Exercise to this thread.
Best,
Chris
''What would be the maximum run time according to Brent/Blumofe Leirsons's theorem?''
``
'''Solution: ''' Brent/Blumofe Leirsons's theorem provides an upper bound of T_P\le T_1/P + T_\infty. Given that P=2, T_1 = 17, and T_\infty = 8, the upper bound for T_2 is given by T_2\le 17/2+8 = 16.5.
''Mark up the graph with the complete and incomplete steps.''
``
'''Solution: '''Using a DFS rule for the greedy scheduler,
Using a BFS rule for the greedy scheduler,
''How many steps does the computation actually take?''
``
'''Solution: ''' Because T_1 = 17, given that we have 3 incomplete steps (1 strand each), we will have 7 complete steps (2 strands each). Therefore the total number of steps is 10 steps.
Max running time by Brent's: max time <= T_1 / P + T_infinity = 17 / 2 + 8 = 16.5
max running time is 16.
Actually, it takes 10 steps. Step 1, 9, 10 are incomplete steps.
What would be the maximum run time according to Brent/Blumofe Leirsons's theorem? TP≤T1P+T∞ = 17/2 + 8 = 33/2
The computation take 11 steps. Step 1, 7, 9, 10, 11 are incomplete steps.
(Edited: 2019-02-13)Suppose we were to run P-Fib(4) whose execution graph we saw last day on two processors.
What would be the maximum run time according to Brent/Blumofe Leirsons's theorem?
T1 = 17, T(infi) =8 T(max)<=17/2 +8 = 33/2
Mark up the graph with the complete and incomplete steps. Make as small an image of this as legibly possible.
How many steps does the computation actually take?
It takes 10 steps of which 1, 9 and 10 are incomplete
(Edited: 2019-02-15)Based on Brents's Algorithm T_{P} <= T_{1}/P + T_{infinity}
T_{1} = 17, P = 2, T_{inf} = 8
17/2 + 8 = 17/2 + 16/2 = 33/2
Steps 1, 9, and 10 were incomplete.
(Edited: 2019-02-16)<pre>
T_p <= (T_1 / P) + T_inf T_1 = 17, P = 2, T_inf = 8 T_p <= 17/2 + 8 T_p <= 33/2