Skip to content

jogo/wikigame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wikipedia game solver

Find the shortest path between any two wikipedia pages.

Idea

In a single pass, import page titles and links from wikipedia's xml dump. Given two pages, find the shortest path between them using A* search.

Should not require enough memory to load all of the data. To do this, store the mapping of page titles and links in boltdb.

Usage

  1. Get latest English wikipedia pages dump from http://meta.wikimedia.org/wiki/Data_dump_torrents#enwiki
  2. Import data with bzcat enwiki-*-pages-articles.xml.bz2 | wikigame -import=true

Dependencies

http://github.com/boltdb/bolt - used to persist data on disk

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages