6 Degrees of Kevin Bacon CS50AI

Subscribers:
363
Published on ● Video Link: https://www.youtube.com/watch?v=pNUX4htQmJU



Duration: 1:45
13 views
0


6 Degrees Project of CS50AI :
According to the Six Degrees of Kevin Bacon game, anyone in the Hollywood film industry can be connected to Kevin Bacon within six steps, where each step consists of finding a film that two actors both starred in.

In this problem, we’re interested in finding the shortest path between any two actors by choosing a sequence of movies that connects them. For example, the shortest path between Jennifer Lawrence and Tom Hanks is 2: Jennifer Lawrence is connected to Kevin Bacon by both starring in “X-Men: First Class,” and Kevin Bacon is connected to Tom Hanks by both starring in “Apollo 13.”

We can frame this as a search problem: our states are people. Our actions are movies, which take us from one actor to another (it’s true that a movie could take us to multiple different actors, but that’s okay for this problem). Our initial state and goal state are defined by the two people we’re trying to connect. By using breadth-first search, we can find the shortest path from one actor to another.

Referrence: CS50AI Course Degree Project.

-~-~~-~~~-~~-~-
Please watch: "Grand Magus or Bogus - #Rubick INSANE and Hillarious Plays by & for Beginner"
https://www.youtube.com/watch?v=5h8ZRPKNLSg
-~-~~-~~~-~~-~-







Tags:
cs50
ai
python