529 views
2 votes
2 votes
An airline runs flights between several cities of the world. Every flight connects two cities. A millionaire wants to travel from Chennai to Timbuktu by changing at most $k_1$ flights. Being a millionaire with plenty of time and money, he does not mind revisiting the same city multiple times, or even taking the same flight multiple times in his quest. Can you help the millionaire by describing how to compute the number of ways he can make his journey? How many steps does your procedure take if there are $n$ cities and he can change flights at most $k_1$ times. You can assume that the procedure can add or multiply two numbers in a single operation.

1 Answer

Related questions

4 votes
4 votes
2 answers
2