A comprehensive comparision of IDFS and IDA* in solving Rubik's Cube
In this study, two methods were used to solve scrambled rubik’s cube. It was done using Iterative Depth First Search (IDFS) or Iterative Deepening Search (IDS) and Iterative Deepening A (IDA). Two heuristics were used for IDA. One of them uses pattern database. All methods were able to unscramble cube. However, time to unscramble cube increased exponentially with steps to solve the cube. IDA with pattern database unscrambled cube the quickest.
Two search algorithms were used to solve Rubik’s cube.
Two heuristics were used for IDA*.
In this problem, pattern database only uses depth of specific corners configuration. It can extend for depth of edges configuration. In that case, maximum of both will be used.
Depth of corners configuration can be calculated by performing every possible move on every possible cube state. Root configuration will be configuration of solved cube with depth is equal to zero. Depth of further configurations will be equal to the configuration of the configuration it was derived from plus 1.
Both algorithms were able to solve the cube. IDFS time increased rapidly with depth of solution. IDA performd quite faster as compared to IDFS. IDA worked even faster with pattern database. Detailed results can found in Report.
To conclude, both IDFS and IDA* can be used to unscramble
You can get in touch with me on my LinkedIn Profile: Farhan Shoukat
MIT
Copyright (c) 2018 Farhan Shoukat