They call the dijkstra implementation slow but that's because they aren't using the full information it presents. Dijkstra gives shortest paths from one node to every other node in the graph, so you run it once and materialize it and now you have a full Kevin Bacon database
Degrees of Kevin Bacon Using Postgres
11–20 of 20 posts
Re: Degrees of Kevin Bacon Using Postgres
#12They call the dijkstra implementation slow but that's because they aren't using the full information it presents. Dijkstra gives shortest paths from one node to every other node in the graph, so you run it once and materialize it and now you have a full Kevin Bacon database
Eh? you have a full graph of one node to every other node. not shortest path between every pair (which I assume is what a full kevin bacon database would be).
I mean there's also Erdos, but that's a different story.
Re: Degrees of Kevin Bacon Using Postgres
#13Re: Degrees of Kevin Bacon Using Postgres
#14Re: Degrees of Kevin Bacon Using Postgres
#15Re: Degrees of Kevin Bacon Using Postgres
#16Now do the Erdos number: defined the same way but for coauthors of papers linked to the absurdly production (and always high on amphetamines) great Paul Erdos. The most glorious of all, the Erdos-Bacon number, is defined as the sum of your Bacon number and Erdos number. Mathematicians Daniel kleitman and Bruce Reznik both tie for top spot with a number of 3 (Erdos 1s and Bacon 2s). Danica McKellar and Elon both in th…
Re: Degrees of Kevin Bacon Using Postgres
#17They call the dijkstra implementation slow but that's because they aren't using the full information it presents. Dijkstra gives shortest paths from one node to every other node in the graph, so you run it once and materialize it and now you have a full Kevin Bacon database
Eh? you have a full graph of one node to every other node. not shortest path between every pair (which I assume is what a full kevin bacon database would be).
Re: Degrees of Kevin Bacon Using Postgres
#18Earlier quoted context omitted.
Eh? you have a full graph of one node to every other node. not shortest path between every pair (which I assume is what a full kevin bacon database would be).
But there's only one Kevin Bacon. I mean there's also Erdos, but that's a different story.
Re: Degrees of Kevin Bacon Using Postgres
#19Earlier quoted context omitted.
Eh? you have a full graph of one node to every other node. not shortest path between every pair (which I assume is what a full kevin bacon database would be).
Yes I meant specifically for Kevin Bacon. There are other all pairs shortest paths algorithms besides running Dijkstra N times