Most people don’t realize that there is a general pattern that you can follow from any scrambled cube in order to solve the puzzle and it’s not very complicated. According to Rubik’s website it is only a six stage process. However, the pros can recognize patterns and solve it in multiple ways.

Machines can do it even faster, and you have to imagine some discrete mathematics was involved.