#algorithm #graph #search #disk #implicit #generic #hard-drive

nightly disk-based-bfs

Fast generic implementation of breadth-first search using disk storage, suitable for extremely large implicit graphs

2 unstable releases

new 0.1.0 Jan 13, 2025
0.0.0 Apr 20, 2024

#6 in #implicit

Download history 5/week @ 2024-09-24 1/week @ 2024-10-29 3/week @ 2024-11-05 2/week @ 2024-12-10 54/week @ 2025-01-07

54 downloads per month

SSPL-1.0

130KB
3K SLoC

Disk-based BFS

An implementation of disk-based breadth first search, using a version of the algorithm described in Richard Korf's paper Minimizing Disk I/O in Two-Bit Breadth-First Search modified to only require one bit per state.


lib.rs:

Breadth-first search using hard drive space for storing intermediate data.

The implementation is efficient, generic, parallel, and can use multiple hard drives. The algorithm is based on the paper Minimizing Disk I/O in Two-Bit Breadth-First Search of Richard Korf, with various improvements. It is suitable for very large implicit graphs (~10^13 nodes), e.g. the 15 puzzle graph.

Dependencies

~7–17MB
~251K SLoC