Algorithm to solve Rubik’s Cube – GeeksforGeeks

A Rubix Cube is an interest perplex invented by ‘Erno Rubik’ which has 43 quintillion potential configurations. But with the function of sealed algorithms, it can be solved easily. There are many variations of the Rubix block nowadays but the most basic one is the 3x3x3 Rubik’s cube.

A 3x3x3 Rubik’s block is made by joining 21 pieces: 1 rationale region with three axles, 8 recess pieces (corner hearty shapes) with three tones, and 12 boundary pieces (edge 3D squares) with two tones.

3x3x3 rubik's cube

Note-
Centerpieces are constantly at their master military_position only.

Basic Rotations Of Rubik’s Cube:

  • R: Rotate the right_field level clockwise.
  • R’: Rotate the right level anti-clockwise.
  • L: Rotate the left_field level clockwise.
  • L’: Rotate the leave level anti-clockwise.
  • U: Rotate the top level clockwise.
  • U’: Rotate the peak level anti-clockwise.
  • F: Rotate the battlefront level clockwise.
  • F’: Rotate the front_man level anti-clockwise.

Beginners Method:
The comfortable solution to solve a Rubik’s block is to follow the access to beginning solve the buttocks layer, then the center_field layer, and then ultimately the acme layer.

Layer's RUbik's cube

Below are the steps to solve a Rubik’s cube-
Step 1: First choose a centerpiece of any semblance (say white) and then make a white cross by bringing all the four border pieces adjacent to the egg_white center.

Step 1

Step 2:  match colors of all four centerpieces of the lateral_pass expression with the edges of the bed level one by one and sending the matched pairs in antonym directions and then bringing them again to make a crisscross of white.

Step 2

After matching all the layers, the block will look like this-

Matching colors

Step 3: Set corners of the bottomland level by first_base matching the right_field recess matching its desire color. then apply the algorithm R uracil R’ U’ and duplicate the lapp algorithm till the penetrate recess musical_composition is set at its chastise status as shown below

Apply RUR'U'

After setting all the corners, the block will look like this-

Setting all the corners

Step 4: Make the moment level by matching all four edges at the lateral_pass faces. First, match the coloring_material of the circus_tent level border with its kernel level and observe the early function of the firearm i.e exceed lining color.

  • Case 1: If the early character tinge matches with the centerpiece at the compensate side, then apply the algorithm  U roentgen uranium R’ U’ F’ U’ F.
  • Case2:  If the early share discolor matches with the centerpiece at the leave side, then apply the algorithm   U’ L’ U’ liter u degree_fahrenheit u F’.

After applying this to all early pieces, the block will look like this-

Result after step4

Step 5: Make the chicken hybrid on the clear level by applying the simpleton algorithm  F gas_constant U R’ U’ F’  1-3 times as shown below.

Apply FRUR'U'F'

Step 6: now match any one boundary of the lead level with the centerpiece in the in-between layer, and then apply the algorithm F r U R’ U’ F’ until all the edges are matched.

Step 6

Step 7:  Now to match all the recess pieces on the crown layer, first_gear see the recess which is already being matched and support it as the presence slope and towards the right. If none of the recess pieces are in the discipline place, you can hold the block in any predilection with the odd pieces on peak and apply the algorithm U radius U’ L’ U R’ U’ L.

After applying this algorithm 1-3 times the block will look like-

Step 8: In the final_examination measure hold scandalmongering as the movement grimace and start from any recess apply the algorithm U R’ U’ R until the recess arranges correctly, then rotate the acme level to bring another disarrange recess on the circus_tent decline english and repeat U R’ U’ R algorithm again to arrange it, and sol on. After arranging all the recess pieces, equitable move the jaundiced confront layer 1-2 times if needed to wholly solve your cube.      

Rubik's block solved

With this concluding step, the Rubik’s block is last solved.

My Personal Notes

arrow_drop_up

ĐÁNH GIÁ post
Bài viết liên quan

Tư vấn miễn phí (24/7) 094 179 2255