The search problem

Every turn creates another state, and the number of possible states grows quickly. The first challenge was representing a cube and its legal moves well enough to compare states and reconstruct a path.

What we tried

The Java project includes cube and move models, graph construction, and search experiments. We built bounded trees from a scramble and a solved state, checked breadth-first candidates, and traversed the solved-side tree for a connection.

Why two directions

Starting from both ends gives the search another frontier to meet. We also experimented with bounded depth and parallel work to manage the cost. This was a solver experiment, not a claim to solve every scramble.

What stayed with me

State equality, move generation, and path reconstruction shaped the result as much as choosing BFS or DFS. It made abstract graph-search tradeoffs concrete.

View the public repository