Evolutionary-Computation-based Homology Analysis of Source Codes
- Author
- ChenBo
- Advisor
- WangJianXin
- School
- Beijing Forestry University
- Major
- Computer Software and Theory
- Classification
- TP311.5 Software Engineering
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 22
- Citations
- 0
Abstract
With the rapid development of Internet and software industry, software and program plagiarism is becoming more and more serious, and so is the struggle of plagiarism and anti-plagiarism technology. Therefore, the homology analysis is obviously important. Nowadays, homology analysis of the source code means generally three ways or their different combinations:text-based, token-based, and the syntax tree-based. In practical applications, the syntax tree-based method plays a leading role, and has also been absorbed and adopted by most commercial software.However, the syntax tree-based method has its own fatal flaw, because comparison solely on the basis of an equality of the syntax tree node’s hash value, that’s to say, two syntax tree are homologous or not is a "Yes-No" problem, and there is no intermediate state, so it cannot solve the problem of internal syntactic structure similarity.This paper proposed a way to solve the problem of homologous analysis based on the evolutionary computation method. Firstly, we pretreat the source code of program, and we take lexical and syntax analysis after getting the intermediate code, and store the grammatical structure information of source code. After encoding the result of syntax analysis, we try to establish an initial relationship between syntax nodes of programs. And finally get the similarity relation and similarity degree between programs using crossover and mutation of genetic algorithm to solve the final matching and with the help of AHPto find a probable fitness function.
Table of contents
Summary 4-5
ABSTRACT 5-6
directory 6-8
1 Introduction 8-19
1.1 the research background research status 8-9
1.2 of this topic 9-17
1.2.1 text-based way of comparison 9-11 <br / > 1.2.2 based on the way over Token 11
1.2.3 grammar-based matching method 11-13
1.2.4 semantic -based matching method
1.3 13-17 research this topic organizational structure 17
1.4 papers 17-19
2 syntax analysis and evolutionary computation describe 19 -26
2.1 parsing description 19-22
2.1.1 compiled during several stages 19-21
2.1.2 parsing process important data structure 21-22
2.2 evolutionary computation and genetic algorithms described 22-25
2.2.1 evolutionary computation 22
2.2.2 genetic the basic idea of ??the algorithm 22-25
2.3 Summary 25-26
3 parsing achieve 26-35
3.1 system test environment 26
3.2 source code pretreatment 26-29
3.2.1 document contains statements 26
3.2.2 macro definitions and type redefinition 26-28
3.2.3 Conditional compilation directives 28-29
3.3 lexical analysis 29-30
3.4 parser generator syntax tree 30-33
3.5 syntax tree storage 33-34
3.6 Summary 34-35
4 of algorithm design and implementation than 35-47
4.1 encoding choice 35-36
4.2 fitness function to determine 36-42
4.2.1 AHP ??About 36 <br / > 4.2.2 establish AHP evaluation index 36-37
4.2.3 build AHP comprehensive hierarchical model 37
4.2.4 analysis of the relative contribution of 37-38
4.2.5 judgment matrix 38-40
4.2.6 consistency test 40-41
4.2.7 hierarchical sorting 41-42
select 4.3 initial population 42-43
4.4 crossover and mutation 43-44
4.5 choose to get the approximate optimal solution 44-45
4.6 Summary 45-47
5 experimental results and analysis 47-52
5.1 experimental environment 47
5.2 accuracy experiment 47-49
5.3 control experiments homology analysis 49-51
5.3.1 gimp program 50
5.3.2 7-zip program homology analysis 50
5.3.3 Conclusion control experiment analysis 50-51
5.4 summary 51-52
6 summary and Outlook work 52-54
6.1 summarizes 52-53
6.2 Prospects 53-54
References 54-57
personal About 57-58
instructors 58-59
achieve results directory listing 59-60
Thanks 60
Related dissertations
- The Study on the Invalidity of Fuzzy AHP and a Weighted Geometric Method of AHP
- Evaluation on emergency plan method based on multiple attribute decision making
- Studies on Prevention Question of Asset Evaluation Risk
- The Research on Evaluation of the Implementation of Zhengzhou Urban and Rural Residents Endowment Insurance
- The Research of Comprehensive Evaluation Index System about Social Health Insurance
- A Study and Implementation of Evaluation on Audit System Suppliers for Insurance Company
- Evaluation of investment in private equity yuan company before the project
- Research on Foreign Investment Risk Management of China’s Sovereign Wealth Fund
- Research on the Control of Risks in Small-loan Companies of China
- The Index System for Farmers’ Credit Evaluation under the Circumstance of Credit Deficiency
- The Research on Risk-Forecast of Micro Loan Companies
- Research on the Risk Management of the Credit Card in Rural Small and Medium Banks
- Risk Management Research on Overseas M&A Loan of Commercial Banks
- Operation Distress and Development Strategy of Wugang Baoshang Village Bank Management
- Research on XY Bank’s Balanced Scorecard Based Staff Performance Evaluation
- Establish the Evaluation Index System of Farmers’ Specialized Cooperatives Credit Cooperation
- Research on the Problem of Enhancing the City Business Competitiveness of Rural Credit Cooperatives
- Research about Impact of Financial Openness on Commercial Bank Performance in China
- The Research of Microfinance Credit Evaluation Index System
- Assessment Research on the Construction Level of Internal Control System in Administrative Institutions