Repository navigation
Add IDA* solver with permutation and orientation PDBs - #2
Closed
JackChang92318 wants to merge 8 commits into
Closed
JackChang92318 wants to merge 8 commits into
JackChang92318 wants to merge 8 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added PDB generator and 729-entry table.
Added non-recursive IDA* solver; the heuristic uses the maximum value from the two tables.
Summary by cubic
Adds an IDA* solver for the 2x2x2 Rubik's cube backed by two pattern databases (PDBs): one for corner permutations (5040 states) and one for orientations (729 states). The heuristic returns the maximum of the two table lookups.
build_pdb.candbuild_pdb_orientation.cgenerate both PDB tables as C headers via BFS, with the orientation builder validating distance consistency and move invariants.ida_solver.cimplements a non-recursive IDA* search that prunes consecutive moves on the same face and caps depth at 11.memory_probe.smeasures stack headroom on RV32I;.gitignorenow skips.exefiles.Written for commit e895177. Summary will update on new commits.