Questions tagged [bacon-number]

"Six Degrees of Kevin Bacon" is a parlor game based on the "six degrees of separation" concept.

The idea of the game "Six Degrees of Kevin Bacon" is to connect an actor to Kevin Bacon through a trail of actors who appeared together in movies, and do so in less than six steps. The game is really a graph problem. If you assign each actor to a vertex, and add an edge between two actors if they have appeared together in a movie, then you have a graph that represents the data for this game. Then the problem of finding a trail of actors to Kevin Bacon becomes a traditional graph problem: that of finding a path between two vertices. Since we wish to find a path that is shorter than six steps, ideally we would find the shortest path between the vertices.

5 questions
11
votes
4 answers

Calculating "Kevin Bacon" Numbers

I've been playing around with some things and thought up the idea of trying to figure out Kevin Bacon numbers. I have data for a site that for this purpose we can consider a social network. Let's pretend that it's Facebook (for simplification of…
MBCook
  • 14,424
  • 7
  • 37
  • 41
3
votes
2 answers

Find how many times a table must be searched to get a match Oracle database

I have this table in my database in oracle9i: CREATE TABLE involved_in ( rid number, aid number NOT NULL, fid number NOT NULL, role varchar(80), note varchar(80), job varchar(35), PRIMARY KEY(rid), FOREIGN KEY(fid)…
mjgalindo
  • 856
  • 11
  • 26
1
vote
1 answer

Finding actors not connected to Kevin Bacon, efficiently

Using neo4j cypher, what query would efficiently find actors who are not connected to Kevin Bacon? We can say that 'not connected' means that an actor is not connected to Kevin Bacon by at least 10 hops for simplicity. Here is what I have…
TheHumblePedestrian
  • 163
  • 1
  • 3
  • 12
0
votes
0 answers

How to code Bacon Number/6 degree of separation in Python without using libraries

I need to submit a project to prove my programming skills and it is about finding the path and the bacon number. I have coded everything and it runs (but extremely slow). Any names with a Bacon number of 2 will run within 5 minutes, but anything…
0
votes
1 answer

Bacon Game Java Program?

So I am creating the Kevin Bacon Game for my java class. These are the files of names I gotta use Actors: Leonardo Dicaprio Susan Sarandon Tom Hanks Robert De Niro Barack Obama Helen Keller Katharine Cornell Helen Hayes John Laughlin Mark…
Jay
  • 27
  • 2
  • 6