Chereads / Genius of the Rules-Style System / Chapter 77 - Chapter 73: The Key to Algorithm Design

Chapter 77 - Chapter 73: The Key to Algorithm Design

To design an algorithm that can solve a third-order magic cube, two points need to be clarified first.

One is the inputting data.

The data input includes the colors of the nine squares on the six faces of the magic cube. The characteristics of the data are that there are six colors, each with nine components, and, in addition, the color in the center of each face is constant.

The second is the outputting data, that is, the computational objective, which is to determine the minimum number of steps required to restore the magic cube.

As long as this condition is met, other desired data, such as the process to achieve the minimum number of steps, would merely be recorded during the program's operational process.

Once the input and output data are clear, the overall framework is essentially established.

This would be similar to the algorithm package Zhang Zhen sent, just several dozens or hundreds of times more difficult, or even more.

Next, the design begins.

Modeling.

This is the end of Part One, download Chereads app to continue:

DOWNLOAD APP FOR FREEVIEW OTHER BOOKS

Related Books

Popular novel hashtag