Find a topological ordering for the graph in Figure 9.81.
Read moreTextbook Solutions for Data Structures and Algorithm Analysis in Java
Question
The object of the Kevin Bacon Game is to link a movie actor to Kevin Bacon viashared movie roles. The minimum number of links is an actors Bacon number. Forinstance, Tom Hanks has a Bacon number of 1; he was in Apollo 13 with KevinBacon. Sally Field has a Bacon number of 2, because she was in Forrest Gump with"Tom Hanks, who was in Apollo 13 with Kevin Bacon. Almost all well-known actorshave a Bacon number of 1 or 2. Assume that you have a comprehensive list ofactors, with roles,3 and do the following:a. Explain how to find an actors Bacon number.b. Explain how to find the actor with the highest Bacon number.c. Explain how to find the minimum number of links between two arbitrary actors."
Solution
The first step in solving 9 problem number 53 trying to solve the problem we have to refer to the textbook question: The object of the Kevin Bacon Game is to link a movie actor to Kevin Bacon viashared movie roles. The minimum number of links is an actors Bacon number. Forinstance, Tom Hanks has a Bacon number of 1; he was in Apollo 13 with KevinBacon. Sally Field has a Bacon number of 2, because she was in Forrest Gump with"Tom Hanks, who was in Apollo 13 with Kevin Bacon. Almost all well-known actorshave a Bacon number of 1 or 2. Assume that you have a comprehensive list ofactors, with roles,3 and do the following:a. Explain how to find an actors Bacon number.b. Explain how to find the actor with the highest Bacon number.c. Explain how to find the minimum number of links between two arbitrary actors."
From the textbook chapter Graph Algorithms you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
full solution