How to represent a Rubik's Cube in a data structure
Posted
by
Mel
on Programmers
See other posts from Programmers
or by Mel
Published on 2012-04-03T11:38:26Z
Indexed on
2012/04/03
11:40 UTC
Read the original article
Hit count: 966
data-structures
I am just curious, how will you guys create a data structure for a rubik's cube with X number of sides.
Things to consider: - the cube can be of any size - it is a rubik's cube! so layers can be rotated (in all three axes)
and a plus question: using the data structure, how can we know if a certain cube in a certain state is solvable? I have been struggling with this question my self and haven't quite found the answer yet.
© Programmers or respective owner