| |

VerySource

 Forgot password?
 Register
Search
View: 1768|Reply: 1

Remaining chessboard implementation

[Copy link]

2

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2021-3-22 09:32:12
| Show all posts |Read mode
[TABLE]
[Tr] [TD] [align = left] The incomplete chessboard is a chessboard with 2 ^ k * 2 ^ k sides, which is just a square disabled. The problem of the incomplete board is to cover a larger incontinence chessboard with four different shapes of tribes, and the triangular plate type 1.1. The requirements are required in this coverage: two triangular panels cannot overlap and the triangular panels cannot cover the incomplete checkered, but must override all other checkered. [/ align] [align = center] [attach] 44 [/ attach] [/ align] [/ align] [align = left] [align = center] Figure 1.1 Triple board type [/ align] [/ Align]
[align = left] This program uses the method of dividing and rule to solve the problem of the incomplete board. This approach can be transformed into a problem with the problem of 2 ^ k * 2 ^ k - lack of chessboards to cover smaller incidental chessboards. 2 ^ k * 2 ^ k board a natural division method is to divide it into 4 2 ^ (k - 1) * 2 ^ (k -1) chessboard. After completing this division, there is only one checkerboard in the four small chessboards (because the original 2 ^ k * 2 ^ k board has only one incomplete checkered). First cover 2 ^ (k - 1) * 2 ^ (k -1) incomplete chessboard including the incomplete checkered checkered checker, then convert the remaining 3 small chessboards into the incontinence chessboard, put a triangle on this 3 On the corner of a small chessboard, the original 2 ^ k * 2 ^ k in the checkerboard is in the upper left corner of 2 ^ (k - 1) * 2 ^ (k -1) chessboard. This segmentation technology can be used to recat 2 ^ k * 2 ^ k-flavored chessboard. When the size of the board is reduced to 1 × 1, the recursive process is terminated. At this point 1x1's checkerboard contains only one square and this is disabled, so there is no need to place triangular panels. This program writes the algorithm of the above points into a recursive function. [/ align] [/ td] [/ TR]
[/ table]
Reply

Use magic Report

0

Threads

1

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 United States

Post time: 2021-5-8 19:46:25
| Show all posts
sounds great
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list