z-logo
open-access-imgOpen Access
Solving the Rubik’s Cube using Simulated Annealing and Genetic Algorithm
Author(s) -
Shahram Saeidi
Publication year - 2018
Publication title -
international journal of education and management engineering
Language(s) - English
Resource type - Journals
eISSN - 2305-8463
pISSN - 2305-3623
DOI - 10.5815/ijeme.2018.01.01
Subject(s) - simulated annealing , cube (algebra) , algorithm , computer science , genetic algorithm , computation , matlab , software , mathematics , combinatorics , machine learning , programming language , operating system
The Rubik’s cube is 3D puzzle with 6 different colored faces. The classis puzzle is a 3x3x3 cube with 43 quintillion possible permutations having a complexity of NP-Hard. In this paper, new metaheuristic approaches based on Simulated Annealing (SA) and Genetic Algorithm (GA) are proposed for solving the cube. The proposed algorithms are simulated in Matlab software and tested for 100 random test cases. The simulation results show that the GA approach is more effective in finding shorter sequence of movements than SA, but the convergence speed and computation time of the SA method is considerably less than GA. Besides, the simulation of GA confirms the claim that the cube can be solved with maximum 22 numbers of movements.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom