Name____________________ net-id _________ Name____________________ net-id _________ Name____________________ net-id _________
[-1,0,0,0]
. How much
time is needed for everyone to know the news?
[-1,0,1,2,3,3,3]
; here's a diagram:
0 | 1 | 2 | 3 | +-+-+ | | | 4 5 6Once the person with index 3 hears the news, how many more minutes before all his direct reports hear?
[-1,0,1,2,3,3,3]
, what's the final answer?
[-1,0,0,2,2,1,0,6,1,8,3]
. Diagram below.
For the best schedule, how many minutes after the process starts
does person 7 get all the news?
0 | +-----+-----+ 1 2 6 +-+ +-+ + | | | | | 5 8 3 4 7 + + | | 9 10