Question: How would you create a program that finds the Kevin Bacon number of an actor. The program would need to have something like BaconNumber.java and

How would you create a program that finds the "Kevin Bacon" number of an actor. The program would need to have something like BaconNumber.java and graph.java. It would have to be BreadthFirstSearch or a DepthFirstSearch something along those lines. Basically creating a path with vertices and edges that represent each actor and the movie they played in. It would have to use some sort of the ShortestPath algorithm. I know this is how the program should be structured but not sure how to actually go about coding it. It would have to read a file and print out the answers to:

1.The actor/actress with the HIGHEST Kevin Bacon Number,

2. Actor/actress who was in the most number of movies

3. Movie with the highest number of actor/actresses

4. Number of movies with Kevin Bacon

5. Number of actor/actresses that were on the same movie with Kevin Bacon

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!