AAAI Publications, Seventh Annual Symposium on Combinatorial Search

Font Size: 
Fast First-Move Queries through Run-Length Encoding
Ben Strasser, Daniel Harabor, Adi Botea

Last modified: 2014-07-02


We introduce a novel preprocessing-based algorithm to solve the problem of determining the first arc of a shortest path in sparse graphs. Our algorithm achieves query running times on the 100 nanosecond scale, being significantly faster than state-of-the-art first-move oracles from the literature. Space consumption is competitive, due to a compression approach that rearranges rows and columns in a first-move matrix and then performs run length encoding (RLE) on the contents of the matrix.


route planning; shortest paths; graphs; first-move; compression

Full Text: PDF