Read The Times Australia

Daily Bulletin

How hard is it to scramble Rubik’s Cube?

  • Written by: Tim Garoni, Associate Professor, School of Mathematics, Monash University

Rubik’s Cube has been one of the world’s favourite puzzles for 40 years. Several different methods have been devised for solving it, as explained in countless books. Expert “speedcubers” can solve it in a matter of seconds.

In addition to such feats of astounding dexterity, there are many fascinating mathematical questions related to Rubik’s Cube. A move of the cube consists of rotating one of the six faces by either 90, 180, or 270 degrees. A staggering 43,252,003,274,489,856,000 possible states can be obtained by applying sequences of moves to the solved state.

Read more: How to solve a Rubik's cube in five seconds

Despite this complexity, it was shown in 2010 that Rubik’s Cube can always be solved in 20 moves or fewer, regardless of the initial state. This number is referred to as “God’s number”, as all known solution methods used by humans typically use significantly more moves than this optimal value.

How hard is it to scramble Rubik’s Cube? Rubik’s Cube in the solved state. Mike Gonzalez (TheCoffee)

But what about the opposite question: how many moves are required to scramble a solved cube? At first glance, this sounds like a much easier question than computing God’s number. After all, unlike solving a cube, scrambling one takes no skill whatsoever.

Similar questions have been answered successfully for card shuffling. A famous example is the 1990 study of the “riffle shuffle” by mathematicians Dave Bayer and Perci Diaconis. A deck of cards is defined as “mixed” if its ordering is random, with each possible order having the same probability of appearing. Bayer and Diaconis showed that seven riffle shuffles are necessary and sufficient to approximately mix a standard deck of playing cards.

Last year, mathematicians published a similar study of the 15 puzzle, which consists of a 4x4 square filled with 15 sliding tiles and one empty space.

What does it mean for a cube to be scrambled?

A typical person trying to scramble a Rubik’s Cube would repeatedly perform random moves on it. The resulting random sequence of states is a special case of what mathematicians call a Markov chain. The key property is that given the current state, the probability of what the next state will be does not depend on any of the previous states.

Applying the theory of Markov chains to cube scrambling, it follows that as the number of random moves increases, the probability of being in any particular one of the possible states becomes closer and closer to 1/43,252,003,274,489,856,000. Mathematicians call this a “uniform probability distribution”, as each possible state occurs with the same probability.

After any given number of random moves, the state of the cube will be random, but its probability distribution will not be exactly uniform; some states will be more likely to occur than others.

Let d(t) describe how much the probability distribution after t random moves differs from the uniform probability distribution. As the number of random moves (t) increases, the value of d(t) will decrease. The cube being scrambled corresponds to d(t) being small.

Markov-chain Monte Carlo

In the theory of Markov chains, this decrease in d(t) is called “mixing”. Besides card shuffling and puzzle scrambling, the theory of Markov chain mixing also has very serious practical applications. One of the most important computational tools in modern science and engineering is the Monte Carlo method. This method, like the famous casino after which it is named, relies fundamentally on chance. In essence, it attempts to approximately solve hard mathematical problems using multiple random guesses.

In practice, Markov chains are often used to produce these random states. To understand the accuracy of these Markov-chain Monte Carlo methods, the key task is to estimate how quickly d(t) decreases as t increases.

The pocket cube

How hard is it to scramble Rubik’s Cube? Pocket cube in a scrambled state. Mike Gonzalez (TheCoffee)

Studying the scrambling problem for the standard 3x3x3 Rubik’s Cube is currently a fascinating unsolved challenge. However, it becomes quite manageable if we turn our attention to a smaller 2x2x2 version, called the pocket cube.

In this cube, the edge and centre pieces are absent and only the corner pieces remain. The pocket cube has only 3,674,160 possible states, and its God’s number is only 11.

In the graph below, we plot d(t) for the pocket cube. After 11 moves, d(t) is still very large, at 0.695. The first value of t that yields a d(t) value below 0.25 (often called “the mixing time” in Markov chain theory) is 19. After 25 moves d(t) is 0.092; after 50 moves it is 0.0012; and after 100 moves it is 0.00000017.

How hard is it to scramble Rubik’s Cube? Distance of the pocket cube distribution from uniform after t moves. Eric Zhou

So how many moves should you use to fully scramble a pocket cube? The answer depends on how small you would like d(t) to be. However, it is certainly true that God’s number of moves is insufficient. As a bare minimum, one should not use fewer than 19 moves. Further details, including code to compute d(t), are available here.

And of course, once you’ve scrambled your cube, all that’s left to do is solve it again.

Read more: Your guide to solving the next online viral maths problem

Authors: Tim Garoni, Associate Professor, School of Mathematics, Monash University

Read more https://theconversation.com/how-hard-is-it-to-scramble-rubiks-cube-129916

Business News

Is Your Brand Showing Up in AI Search? Most Melbourne Brands Aren't.

The New Front Door Nobody Told You About Something changed. Quietly. Without a press release. The way buyers find businesses in Australia has been rewired. Not replaced, rewired. Google isn't dead...

Daily Bulletin - avatar Daily Bulletin

How Australian Businesses Can Measure SEO ROI

SEO can feel vague when you are staring at a dashboard full of numbers that do not clearly connect to revenue. The key is to measure the right signals in the right order, then tie them back to outcome...

Daily Bulletin - avatar Daily Bulletin

How Commercial Roller Shutters Improve Site Security Without Slowing Operations

Security upgrades can be frustrating when they make everyday work harder. A door that takes too long to open, creates bottlenecks at shift change, or fails at the worst time can turn “better protectio...

Daily Bulletin - avatar Daily Bulletin

Why a Document Destruction Service Still Matters for Modern Businesses

Businesses generate large volumes of information every day, from staff records and contracts to invoices, reports and customer files. While attention often focuses on how documents are stored, the way...

Daily Bulletin - avatar Daily Bulletin

Bicycle Rack Safety and Space-Smart Storage

Bike storage problems usually show up as small annoyances first: tangled handlebars, scratched frames, and bikes that topple when you pull one out. Over time, those issues become safety risks, especia...

Daily Bulletin - avatar Daily Bulletin

How to Tell if a Childcare Centre Is a Good Fit for Your Child

Choosing childcare can feel like you’re making a huge decision with limited information. Tours are short, centres are often on their best behaviour, and your child might act differently in a new space...

Daily Bulletin - avatar Daily Bulletin

Car Import Timeline: What Usually Happens at Each Stage

Importing a car into Australia can feel confusing because multiple agencies and checkpoints are involved, and the timeline is shaped as much by paperwork quality as it is by shipping speed. The most u...

Daily Bulletin - avatar Daily Bulletin

Portable Toilet Hygiene Standards Explained: Clean vs Sanitised vs Disinfected

In portable toilet servicing, the words clean, sanitised, and disinfected often get used as if they mean the same thing. They don’t. And that difference matters because a unit can look tidy and still ...

Daily Bulletin - avatar Daily Bulletin

Options Available When a Company Faces Financial Distress

Financial distress can develop gradually or arrive suddenly, and when it does, the decisions made in the early stages often determine what options remain available later. Directors who act promptly ...

Daily Bulletin - avatar Daily Bulletin

The Daily Magazine

What Actually Makes a Good Criminal Lawyer in Melbourne

Most people only think about this question once. That is usually too late. Most people charged wi...

Why Working With A Chatswood Tutor Can Improve Academic Performance

Academic expectations continue increasing for students across primary school, high school, and senio...

Is It Worth Getting Solar Panels in Melbourne?

The real question is not whether solar works in Melbourne. It works. The question is what it is co...

How A Diploma Of Project Management Builds Practical Skills For Modern Work Environments

Developing the ability to plan, execute, and deliver outcomes efficiently is a key requirement in to...

How to Choose the Right Football for Every Level

Choosing a football may seem straightforward, but the right option depends on who will be using it a...

What to Ask a Wedding Photographer Before You Book

Booking a wedding photographer can feel deceptively simple: you like the photos, you like the vibe...

Why Stress Relief For Dogs Is Essential For Emotional Balance And Long-Term Wellbeing

Managing emotional health is just as important as physical care when it comes to pets, which is why ...

Australia’s Best Walking Trails and the Shoes You Need to Tackle Them

Australia is not short on spectacular walks. You can follow ocean cliffs in Victoria, cross ancien...

Why Pre-Purchase Building Inspections Are Essential Before Buying a Home in Australia

source Have you ever walked through an open home and started picturing your furniture, family d...