Home / Expert Answers / Computer Science / 20-marks-alice-and-bob-are-meeting-up-at-the-park-alice-arrives-at-time-t-in-1-ldots-n-pa812

(Solved): [20 marks] Alice and Bob are meeting up at the park. Alice arrives at time \( t \in[1, \ldots, n] ...



[20 marks] Alice and Bob are meeting up at the park. Alice arrives at time \( t \in[1, \ldots, n] \) with probability \( a_{t

[20 marks] Alice and Bob are meeting up at the park. Alice arrives at time \( t \in[1, \ldots, n] \) with probability \( a_{t} \) (where \( \sum_{t=1}^{n} a_{t}=1 \) ). Bob arrives at time \( t \in[1, \ldots, n] \) with probability \( b_{t} \) (where \( \sum_{t=1}^{n} b_{t}=1 \) ). Assume the time \( t \) is in minutes. 4.1 [4 marks] Provide an expression for the probability that Alice arrives \( k \) minutes before Bob (where \( k \) can be negative). 4.2 [10 marks] Design an \( O(n \log n) \) algorithm that computes the probability that Alice arrives before Bob. How might FFT fit into this problem? 4.3 [6 marks] Design an \( O(n) \) algorithm to compute the probability that Alice and Bob arrive an even number of minutes apart.


We have an Answer from Expert

View Expert Answer

Expert Answer


Let the time taken by Alice is t1 minutes and time taken by Bob is t2 minutes and probability of Alice is p1 and probability of Bob is p2.
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe