minime12358
Regular
Hi, I was wondering what the most efficient way to store a cube in memory. I put a new thread in as I thought it would be more than one response.
Looking at the number of cube positions, the optimal should be something like 65, I forget what exactly.
I currently have the best at 100 bits for practical use:
Edges: 4 bits each position for permutation and 1 bit for orientation * 12 = 60
Corners: 3 bits each position for permutation 2 bits for orientation * 12 = 40
= 100
Although you do not need the final piece for edges/corner, so you could subtract 10. You also don't need need the permutation of a second edge, so you could subtract 4.
= 86
This of course is still 21 from optimal. Any ideas?
Looking at the number of cube positions, the optimal should be something like 65, I forget what exactly.
I currently have the best at 100 bits for practical use:
Edges: 4 bits each position for permutation and 1 bit for orientation * 12 = 60
Corners: 3 bits each position for permutation 2 bits for orientation * 12 = 40
= 100
Although you do not need the final piece for edges/corner, so you could subtract 10. You also don't need need the permutation of a second edge, so you could subtract 4.
= 86
This of course is still 21 from optimal. Any ideas?