137 comments

[ 4.0 ms ] story [ 118 ms ] thread
That "Wikipedia Trivia" is really intriguing! Manually tested and verified it.
I know I'm being pedantic here, but I'm pretty sure you haven't verified it. To do that, you would have to visit every Wikipedia article.
That's 'cause Philosophy covers it all:

"Philosophy is the study of general and fundamental problems, such as those connected with existence, knowledge, values, reason, mind, and language." --http://en.wikipedia.org/wiki/Philosophy

Too bad there's no Philosophy in http://xkcd.com/435/
Especially since a common path is to reach philosophy by first visiting the mathematics page:

  Mathematics
  Quantity
  Property_(philosophy)
  Modern_philosophy
  Philosophy
And xkcd itself is "18 steps to philosophy"...
So is "Potato" and "Caen", and the majority of other things I tried. For Godwin points, "Hitler" is only 14 steps.
I don't think it works correctly though... it uses "Author" as the first link whereas the first link in the text of the article is "webcomic" ("Author" is in the summary pannel on the side)

https://secure.wikimedia.org/wikipedia/en/wiki/Xkcd

The same happens for cities or locations, where there is usually a "Coordinates" in the upper right corner. Still, I did it manually in text bodies, and you eventually end up to Science or Mathematics, which leads to Philosophy.
Hah. The hypothesis is false, but the script already has that covered via loop detection... nice :)

panhard

    Auverland
    Panhard
uh oh... found a loop

panhard -> auverland -> panhard.

So far the longest trail I've found, at 25 steps, was from 'ED209' via pottery, through minerals, states of matter, knowledge, finite sets, mathematics... that's one heck of a wikitrail.

[edit] Scratch that, 'Horst link' is longer via one step, going via transport, commerce, San Juan de Dios Market, Mexico, Romance languages, Precambrian, Chronology, etc...

30 for "Howard Hughes"

uh oh... found a loop

mathematics -> quantity -> property_(philosophy) -> modern_philosophy -> western_europe -> europe -> continent -> landmass -> landform -> earth_sciences -> science -> knowledge -> fact -> information -> finite_set -> mathematics.

Makes sense for mathematics to be a loop since it's a self contained system.
Hmm. I just tried "Howard Hughes" and got only 15 steps.

Business_magnate -> Philanthropy -> Ancient_Greece -> History_of_Greece -> Greeks -> Nation -> Sovereign_state -> -> State_(polity) -> Social_sciences -> Field_of_study -> Academia -> Community -> Interacting -> Action_(philosophy) -> Philosophy

Has the script been tweaked already?

"Sushi" leads to a loop, too:

sushi japanese_cuisine japan japanese_language arabic_numerals symbol numeral_system mathematical_notation uh oh... found a loop

F-111 is 45 steps.
Now 32.

Playing games with an ever evolving game board is... interesting.

If it finds a loop, can't it go and explore other paths?
Please spend 38.9 seconds trying to understand the very very very simple algorithm that says: Follow the first link that... It doesn't say there are alternate choices. If you went with a different link than the first, it would no longer be the first.
Well, it is Wikipedia. The program _could_ go to Wikipedia, edit a page in the loop, save, and continue :-)
found another loop, on my first try nonetheless:

Genghis_Khan -> Mongolian_language -> Mongolia -> Mongolian_language

There's no loop there:

Genghis Khan -> Borjigin -> Clan -> People -> Human -> Taxonomy -> Science -> Knowledge -> Fact -> Information -> Sequence -> Mathematics -> Quantity -> Property (philosophy) -> Modern Philosophy -> Philosophy

Mongolian language is in parentheses, so you don't end up in the infinite loop.

So far, the only loop I can see is Panhard, though I'm sure someone will edit the page so that no longer happens. I think the stub pages have a far better chance of defying this law than any other page, though, so it's probably best to start there if you want to find more loops.

Font loops, at least according to the rules (ignoring italics and parens).
Heh. "Philosophy":

uh oh... found a loop

philosophy -> existence -> sense -> organism -> biology -> natural_science -> science -> knowledge -> fact -> information -> sequence -> mathematics -> quantity -> property_(philosophy) -> modern_philosophy -> philosophy.

I found a loop for Jersey Shore. I guess that sounds about right though.
By extension, you also will always end up at ... Existence Sense Organism Biology Natural_science Science Knowledge Fact Information Finite_set Mathematics Quantity Property_(philosophy) Modern_philosophy
It seems to take a while to search; are you querying wikipedia each step instead of a DB snapshot?
Last time I downloaded Wikipedia, it was 4.5GB. If I were to knock up this hack, I would definitely scrape pages instead.
On-demand page scrape + memoisation is almost certainly a win here. Even if thousands of people are hitting this, a lot will choose some of the same queries (I'm sure Kevin Bacon and xkcd and philosophy are in there a bunch), especially in the tails of the paths (Latin, Mathematics, ...)
This image shows how things end up in Philosophy, by XKCD forumite arotenbe: http://forums.xkcd.com/download/file.php?id=29727&mode=v...

Looking at these stats shows how viral this meme/trivia got:

http://stats.grok.se/en/latest/Philosophy

http://stats.grok.se/en/latest/Mathematics

http://stats.grok.se/en/latest/Reason

I posted these stats on a FB status a couple of days ago because of the sudden spike. Now that sudden spike looks small compared to today's sudden spike. Funny how there's different levels of viral, almost akin to different levels of infinite. What would happen if this hit mainstream media?

On that chart, Greeks points to to other pages. How can Greeks have two first links?
That was my question, too. There doesn't seem to be a disambiguation that would apply, either. "Greek Language" shouldn't point to "Indo-European languages", it should point to "Greeks". I can't figure out how that went wrong, either, but it is interesting to see a cycle in an acyclic graph. :)
Ironically, it doesn't work from "Spark Plug".
Excellent. Saved me some clicking resulting in more efficient use of procrastination time!

I hit loops a few times - you could drop to the second link in those cases instead of stopping completely.

If you drop out of loops, you will reach every article eventually. (Unless you are ending in a cul de sac.)
If the draw to "philosophy" is as string at it seems you should end up there without scanning too many articles. You'd need some sort of fixed cap to avoid the few cases where you'd end up scanning thousands of articles, of course.
Wow, someone just modified Modern Philosophy (now first link is Western Europe), Science and/or Knowledge pages, which makes most previously things tried by me kick into a 25 loop. I'm wondering if it's intentional.
Most things were getting stuck in a loop around "Indo-European languages" last time I checked. Someone is definitely playing silly buggers.

I was tempted to see whether I could somehow engineer an all-roads-lead-to-goatse situation, but I couldn't think of a plausible pathway.

Just hijack Philosophy.
Too easy. The idea was to create an entirely plausible pathway of links that nobody could complain about individually (so they wouldn't get reverted) which nonetheless eventually led to http:en.wikipedia.org/wiki/goatse
I mean, create that plausible pathway with philosophy as its root. Since so many articles already lead to philosophy, it's a good starting point.
Modern Philosophy now goes to Western Europe rather than Philosophy. And since everything seems to go through that, nothing will reach philosophy anymore.
You don't reach Philosophy from Philosophy.
Hey, I did!

Did it using the software and then checked wikipedia by hand:

Philosophy -> Existence -> Sense -> Organism -> Biology -> Natural_science -> Science -> Knowledge -> Fact -> Information -> Finite_set -> Mathematics -> Quantity -> Property_(philosophy) -> Modern_philosophy -> Philosophy

15 steps to philosophy

The "Quantity" article did not contain the link to Property_(philosophy) before and it was added purely for the sake of this game. See the talk page for more details.

Personally, I think its sad that people are editing wikipedia purely for the sake of making games work out.

(comment deleted)
It totally worked for me, I tried it with Sausage and Cradle of Filth. I thought it was a joke, it blew me away.

But then I found that "Osama Bin Laden" crossed "philosophers" and then ended on a loop between "reason" and "rationality".

EDIT: I just tried "Osama Bin Laden", the steps it takes seems to be using a slightly different Wikipedia than I see.

I tried OOP, eventually arriving at Philosophy -- OMG, it works :))
Also try turning off spell check or writing something significant on paper and see how well we do these days.
Actually spell check, has made me a better speller. Of course in the old days when the apple ][ dominated the personal computer space you had to save your word processing file, exit the word processor, switch floppy disks, start the spell checker, switch the disk for the dictionary disk, run against your file, approve/reject suggested changes, save the file, exit the spell checker, switch to the floppy disk with the word processor on it, start the word processor load your file, find the things the spell checker flagged as wrong but couldn't find a correct word for and fix those.

Seriously, it was just easier to get better at spelling.

This is no joke: 21 clicks from Kevin Bacon to Philosophy. Welcome to the Internet equivalent of a child repeatedly asking, "why?"
Three, actually. Kevin Bacon > Meme > Philosophy.
This statement shows a gross misunderstanding of the rules.

Meme is quite far down the page. It is well after many links that are neither italicized nor inside parens. The statement whose veracity is being checked says First link (plus some other parameters).

minor correction: 20 clicks
This shows a that the program linked is broken. The steps taken, are:

1. Animal House 2. ....

Going to the actual Kevin Bacon Wikipedia page, Animal House is clearly italic. The First non-italic, top-level (wrt parens) is Golden Globe

It took me 30 steps to do it manually, following the correct rules.
I expect the program is working off an out-of-date database. Hitting wikipedia directly would be rather bad form.
Haha ya, it's crazy. I went to Wikipeida.com, clicked on a random link (Ratko_Mladić), and from there it took me 26 clicks of first links to reach the Philosophy page.
When I first read the comic the other day, I went to the page in the comic (Spark Plug) and tried it -- didn't work, I ended up in a cycle between 3 math-related pages. Oops.
likely a result of subtle vandalism by other xkcd readers.
15 stepf from Philosophy to Philosophy ..

what are the implications?

Bastard beat me to it!

Friend of mine was graphing out all of the connections (using Graphviz) and found some interesting patterns. Ultimately you can say the same thing for "Science", "Knowledge", and even "Mathematics".

I tried it with Iraq, but the page parsing is slightly wrong. Got this result.

Iraq Arabic_language Languages Human Precambrian Eon_(geology) Chronology Time Measurement Magnitude_(mathematics) Property_(philosophy) Modern_philosophy Philosophy 12 steps to philosophy

But the link to Arabic is in parentheses. The first non-parenthesesed link is to Western Asia.

turtles --> 14 steps to philosophy
Fun

Interesting that the first three i tried took about 17 hops and got funnelled through the "Life" entry.

corndog sensimilia halitosis

This took a few less hops and stayed in 'techne': voip.

Would love to see these searches graphed.

Years ago - one of my favorite sites was Everything2 (still up) - it was run on the slashdot engine. The fun of it was to follow the associated links at the bottom of the entry to see where it would take you.

E2 was wonderful for links teleporting you off into completely unrelated and equally fascinating subjects - I lost many an evening in that manner :)
Slashdot used to link to Everything (back before it was Everything2) as a sort of instant-dictionary for tech terms. Stories would have something like "RSS 2.0(?) and Atom(?) proponents are squaring off..." with the question marks going to the relevant Everything node. Most of the time, the terms wouldn't be defined until the story went live, and then they would be in short order.

It was a neat symbiosis, especially back before Wikipedia existed. However, they were separate sites. Both Slashcode (which runs Slashdot) and the Everything Engine (which runs Everything2) are written in Perl. Everything was never run on Slashcode, though, AFAIK.

I tried and I end up in an infinite loop between science, philosophy, knowledge/epistemology, and language.
"philosophy" is the halting condition