Research of Database Normal Form Decomposition
- Author
- ChenZuo
- Advisor
- ZhangChangHai , ZhangJing
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 97
- Citations
- 0
Abstract
Database technology is the most rapidly developing one of the key areas of the computer and information science ,Its applications and research area is being enlarged, and become important tool of developing all kinds of information systems. Its widespread use has made computer application depth in all spheres of society. Database system’s basic principles and application of technology have become the essential knowledge and skills for the science and engineering students.Relational database is main stream database, which is related to the relational model. With relational model as a basis, we can design a relational database. Relational database design goal is to generate a set of relation schema, which make we not need to store unnecessary duplication and facilitate access to the information. One option is to design schemas which meet the appropriate normal form. Through decomposing non-normalization of schema to correlative normal form, we can get normalization relational schemas, which can make us design a good database, therefore, the profound understanding of normal form decomposition is crucial. In this paper we only discuss two important normal form—BCNF and 3NF, we will use software to inplement normal form decomposition and describe its implementation process.This article describes the database firstly; then introduces the relational database and the Decomposition theory of normal form based on the relational database relational database paradigm based on the theory of decomposition; thirdly, introduces the related algorithms; at last ,introduces the study and the process implementation about the relational database decomposition of normal form. According to research and analysis, the main problem should be resolved of this subject is: turning Algorithm and Pseudo-code Into application programming language; completing the research of visualization software of relational database normal form decomposition; well and friendly designing on the interface ;combination between decomposition algorithm and interface. Preliminary work is to find relevant information, familiar the development environment of the VC, demonstrate the feasibility of the system, complete the topic starting report. The latter work is mainly about writing code and system debugging and improvement, he main system is divided into seven modules: closure solution of attribute set, closure solution of Function dependency set, solution of Regular coverage, solution of super key , solution Candidate of Code, decomposition of BCNF normal form and decomposition of 3NF normal form. The system uses object-oriented methods, using Iterative, incremental Development model, using class to communicate between these modules , to achieve low coupling, high cohesion.The program consists of two main modules, as well as five sub-modules. The two main modules is BCNF decomposition and 3NF decomposition. The five sub-modules is computing closure of attribute sets, computing closure of a set of functional dependencies, computing canonical cover, computing candidate key and computing super key. We will Particular describe the design, also with the activity diagram explaining. The system is coded in Visual C++.In this paper, the specific structure is as follows:ChapterⅠ—IntroductionA summary description about the Origin of normal form decomposition and a brief description of its role. briefly introduce about the importance of visual decomposition research and implementation based on relational database. Finally, a simple introduction to the main work of this article.ChapterⅡ-----normal form decomposition theory of relational databaseFirst of all, the introduction of database and relational database, then explaining the theory in detail including functional dependency, closure of functional dependency set, closure of attributes set , Regular coverage, pattern Decomposition , Boyce -Codd Normal Form, the third Normal Form paradigm. Then Comparative analysis about BCNF and 3NF, Finally, introduction about the other normal form and their application and research.ChapterⅢ-----relevant knowledge and technologyFirst introduced algorithm about BCNF and third normal form, furthermore Analysis these algorithm briefly, including power set Algorithm, Solution Algorithm of attributes set closure , Solution Algorithm of function-dependent set closure , Solution Algorithm of Regular coverage, BCNF decomposition , Solution Algorithm of super key and candidate code, decomposition Algorithm of the third normal form. Then, normal form Followed by a brief introduction of Visual C++ development environment. Finally, explain the object-oriented programming technique.ChapterⅣ------the design and implementation of normal form decompositionprogramFirst of all, introduced the design process, the procedure of the main program includes: Calculation Module of attributes closure set, Calculation Module of function-dependent set closure, decomposition Module of BCNF, solution Module of Regular coverage, Calculation Module of super key, Calculation Module of candidate code, decomposition Module of the third normal form. And then focuses on the major class categories of this program, describing the CArithmeticKernel class and CBcnfDecompDialog class in detail, and the rest of the class in brief.CArithmeticKernel which is the class of algorithms, all functions based on algorithms are in it, introducing the function with a detailed description and result analysis, and a further description with little program for some part.ChapterⅤ-----Summary and prospectIn order to let database design approaching a comprehensive, Peoples make a study of standardization theory, which is to use normal form to design database. In 1971, E.F.Codd put on the standardization theory of normal form. At present, the theory research has come a long way. The standardization theory is an important theoretical basis for relational database, it guides the design of relational database or relational pattern. And the current data pattern is relational database pattern, many commercial databases are also based on the relational data pattern, such as Oracle, DB2, SQL SERVER. Therefore, understanding deeply in normal form decomposition is essential, but we cannot see any soft practice with normal form decomposition. Hoping to help the learners well understanding relational database and mastering the Methods to design relational database ,by research of normal form decomposition. The subject of study has been completed, better accomplishing in BCNF decomposition and third normal form. Furthermore, expanding the capability with five Module : Solution Algorithm of attributes set closure , Solution Algorithm of function-dependent set closure, Solution Algorithm of Regular coverage, Solution Algorithm of super key and candidate code. The vast majority of models can be decomposed . because the less restriction, sometimes it may not work correctly that should improve in future.
Table of contents
Summary 4-8
1 Introduction 8-13
1.1 Background and domestic development overview 8-9
1.2 research purpose and meaning 9-10
1.3 topics guiding ideology 10
1.4 The main issues to be addressed topics 10-11
1.5 main job 11
1.6 papers organizational structure 11-13
2 relational database paradigm decomposition theory 13-31
2.1 database describes 13-18
2.1.1 data, information and data processing 13-14
2.1.2 Data management technology development process 14-17
2.1.3 Database Features 17-18
2.1.4 database and file storage comparison 18
2.2 relational database describes 18-22
2.2.1 What is a relational database 19
2.2.2 relational database development 19
2.2.3 Relational Data Model 19-20
2.2.4 relational database concepts and terminology 20-22
2.3 paradigm decomposition theories 22-31
2.3.1 Functional Dependencies 22-23
2.3.2 Functional Dependencies closure 23-24
2.3.3 attribute set closure 24-25
2.3.4 regular covering 25-26
2.3.5 Mode Decomposition 26-27
2.3.6 Boyce-Codd normal form 27-28
2.3.7 Third Normal Form 28
2.3.8 BCNF and 3NF comparison 28-30
2.3.9 Other paradigms introduced 30
2.3.10 Application and Research Paradigm 30-31
3-related knowledge and technology 31-38
3.1 related algorithms 31-36
3.1.1 exponentiation collection algorithm 31-32
3.1.2 Closure of Attribute algorithm 32-33
3.1.3 Functional Dependencies closure algorithm 33-34
3.1.4 regular covering algorithm 34
3.1.5 BCNF decomposition algorithm 34-35
3.1.6 Super Size and candidate key algorithm 35
3.1.7 Third Normal Form decomposition algorithm 35-36
3.2 Visual C Description 36-37
3.3 object-oriented programming techniques 37-38
4 paradigm decomposition process design and implementation 38-58
4.1 program's overall design 38
4.2 CArithmeticKernel class implementation 38-51
4.2.1 power set of calculation functions 41-42
4.2.2 Closure of Attribute calculation function 42-43
4.2.3 Functional Dependencies closure calculation function 43-44
4.2.4 BCNF decomposition function 44-46
4.2.5 regular covering solve function 46-47
4.2.6 Super Size solve function 47-48
4.2.7 Candidate yards solve function 48-49
4.2.8 Third Normal Form decomposition function 49-51
4.3 CBcnfDecompDialog class implementation 51-54
4.4 the rest of the class implementation 54-58
4.4.1 CPropertyCloserDialog class implementation 54
4.4.2 CFuncDepenCloserDialog class implementation 54-55
4.4.3 CBcnfResultDialog class implementation 55
4.4.4 CAnonicalCoverDialog class implementation 55
4.4.5 CSuperKeyDialog class implementation 55-56
4.4.6 ComputCandidateKey class implementation 56
4.4.7 CThirdNFDecompDialog class implementation 56
4.4.8 CThirdNFDecompDialog class implementation 56-58
5 Conclusion and Outlook 58-59
5.1 Conclusion 58
5.2 Prospects 58-59
References 59-60
Summary 60-63
Abstract 63-67
Thanks 67