Returns the Six Degrees of Separation path between two Wikipedia articles.
Depth = 0 → S
Depth = 1 → ○○○
Depth = 2 → ○○○○○
Depth = 3 → ○○○○○○○
Depth = 4 → ○○○○○○○○○
Depth = 5 → ○○○○○○○○○○○
Depth = 6 → ○○○○○○○○○○○○○
Time complexity: O(b^6)
From Start Side: From Goal Side:
From Start Side: From Goal Side:
S G
○○○ ○○○
○○○○○ ○○○○○
○○○○○○○ ○○○○○○○
↓ ↑
↓←←←←←←←←←←→→→→→→→→→→→→→→↑
Meet in the middle!
Time complexity: O(b^3 + b^3) = O(2b^3)
make download-all DATE=20250301
make generate-all
docker compose up