Study in the Problems and Algorithms of Multi-magic Square
- Author
- LiuXiuFeng
- Advisor
- ChenQinWu
- School
- Shantou University
- Major
- Applied Computer Technology
- Classification
- O157 Combinatorics ( combinatorics )
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 67
- Citations
- 0
Abstract
Magic square originated thousands of years ago in China, from the date of magic square appears, have been active in people’s daily life, with a trace of mystery. In 1890, a French mathematician published the first 8 order bi-magic square, make this magic square world which was originally mysterious become more complicated and confusing. Since then, people do not be content to constructing a magic square which is common as before, but pursuit to construct a multi-magic square which meet the conditions of the multi-magic sums. However how to construct multi-magic square is a very difficult problem, especially these low-order multi-magic squares, which are very difficult.A pleasant surprise is that the rapid development of computer science has brought new vitality for the study of magic square, high-speed operation of a computer system that can replace the human brain to complete the duplication of tedious tasks and construct a complex multi-magic square. However, multi-magic square is a typical NP problem, time complexity that computer search a magic square are more than people think. To construct a multi-magic square in a short period of time, we must design good algorithm. We can use the idea of backtracking search to design multi-magic square algorithm, and for some specific examples we make specific adjustments, so we can more quickly in time to construct a multi-magic square.This paper describes the characteristics of multi-magic squares, and general idea to use computer to solve multi-magic square problem. Through study and analysis, found that most of the odd-order multi-magic squares have numbers which are on the center of symmetry; if you use this feature to design some algorithm that construct odd-order multi-magic square, you can find a multi-magic square within a very short time. Finally we design a representative 13th order bi-magic square algorithm, and described a thinking framework which is used by computer to search a magic square solution space. This algorithm has a certain reference value for the study of other types of multi-magic squares and other NP problems.
Table of contents
Summary 3-4
Abstract 4-8
first chapter the problem 8-10
1.1 introduced
1.2 sources and research purposes subject 8-9
1.3 This article briefs and structural arrangements
1.4 Chapter Summary 9-10
the second chapter multiple magic square 10-15
the 2.1 magic square basic concept 10
2.2 multiple definitions of the magic square 10-11 <br / > 2.3 multiple basic concepts of magic squares 11-12
2.4 History and Present Study of Multiple magic square 12-13
2.5 magic party applications 13-14
2.6 Chapter Summary 14-15
magic square 15-25
3.1 Magic Square 15-21 < br /> 3.1.1 once magic square constructor classification 15
3.1.2 odd order matrix algorithm (N = 2K 1, K is a natural number) 15-16
3.1.3 single square algorithm even order (N = 4K 2, K is a natural number) 16-18 Number of
3.1.4 doubly even order square algorithm (N = 4K, K natural number) 18-19
3.1.5 computer program the 19-21
3.2 of magic and calculated 21-22
3.3 elements of magic squares transform theorem 22
3.4 characteristics of odd order magic square the the 3.5 magic squares solution space distribution nbsp 22-24
; 24
3.6 Chapter Summary 24-25
Chapter multiple magic square with the NP-hard problem 25-34
4.1 computational model and algorithm of polynomial time complexity 25 - 4.1.1 computational model 25-26
4.1.2 algorithm of polynomial time complexity 26-27
27
4.2 P class with NP class problem 27-29
4.2.1 P class of problems nbsp 27-28
4.2.2 NP class problem; 28
4.2.3 P class with NP The class of languages ?? 28-29
4.2.4 P = NP? Guess 29
4.3 NP problem of 29
4.4 proved NP hard problem nbsp 29-31
4.5 typical NP-hard problem; 31
4.6 multiple of the magic square and NP-hard problem the 31-32
4.7 for solving NP-hard problem approximation algorithm 32-33
4.8 Chapter Summary 33-34
Chapter backtracking 34-43
5.1 exhaustive algorithm 34-35
5.1.1 exhaustive algorithm adaptation nbsp 34
5.1.2 Multiple magic square exhaustive algorithm; 34-35
5.2 Backtracking nbsp the; 35-42
5.2.1 backtracking in general Description 36-37
5.2.2 backtracking. algorithm framework 37-40
5.2.3 backtracking two methods 40-41
5.2.4 two solution space tree 41-42
5.3 Chapter Summary 42-43
Chapter VI multiple magic square program design and implementation of 43-61
the 6.1 multiple magic square backtracking framework 43-47
6.2 Multiplicity magic square algorithm 47-49
6.3 odd order multiple magic square backtracking thinking 49-51
6.4 odd order of the square of the magic square algorithm 51-59
6.4.1 define n * n order matrix 51
6.4. the 2 initial matrix 51-52
6.4.3 line the square of the magic square are found; the 52-54
6.4.4 main diagonal adjustment 54-58 < br /> 6.4.5 column adjustment 58
6.4.6 Conclusion 58-59
6.5 analysis of two algorithms 59-60
6.6 Chapter Summary 60-61
Chapter VII Conclusion the 61-62
Reference 62-65
thank the 65
Related dissertations
- Research on Network Optimization Problem of Automobile Service Spare Parts Supply Chain
- Research of Parallel Computing in the Queens Minimum Independent Domination Set
- Research on Sequence Design for Quasi-synchronous Code-Division Multiple Access Systems
- Research on Signal Recovery Algorithms Based on Compressed Sensing
- Some Improved Reconstruction Algorithms Based on Compressed Sensing
- The Study of Quantitative Analysis Methods of Cervical Spondylotic Myelopathy Based on DTI
- Theory Research and Algorithm Design on Hamiltonian Cycle and Graph Isomorphism Problems
- Automatic Test Paper System Based on Genetic Algorithm Research and Design
- Study on Keyword Query of Relational Database
- Research on Algorithms of Scaffold Filling Problems
- Research on Solving Algorithm and Parallel Method of Circle Packing Problem
- A Hybrid Local Search Algorithm for Job Shop Scheduling Problem
- Constraint satisfaction problems : Algorithms and Complexity
- Key Technologies of Communication and Location Complex Systems Based on Complement Sequences
- Research of Hierarchical Text Classification Methods Based on Category Structure
- Change information based cadastral updating automatic processing method
- Research and Primitive Implementation of Backtracking Debugging Based on Process Snapshotting in Kernel Mode
- Research on Data Query Optimization Algorithm of Distributed Database
- The System Designs and Realizes of Courses Chooses and Arrangement in University Based on MVC Pattern and STRUTS Frame
- Several stochastic programming algorithm and its application