You are waiting at a bus stop to catch a bus across town. There are act tually $\boldsymbol{n}$ different bus lines you can take, each following a different route. Which bus you decide to take will depend on which bus gets to the bus stop first. As long as you are waiting, the time you have to wait for a bus on the $i$ th line is exponentially distrib: uted with mean $\mu_{i}$ minutes. Once you get on a bus on the $i$ th line, it will take you $t_{i}$ minutes to get across town.
Design an algorithm for deciding - when a bus arrives - whether or not you should get on the bus, assuming your goal is to minimize the expected time to cross town. (Hint: You want to determine the set of buses that you want to take as soon as they arrive. There are $2^{n}$ possible sets, which is far too large for an efficient algorithm. Argue that you need only consider a small number of these sets.)