Study on Efficiency of Single Pattern Matching Algorithms

Author
PanGuanZuo
Advisor
ZhangXingZhong
School
Taiyuan University of Technology
Major
Computer Science and Technology
Classification
TP391.3 Retrieval machine
Degree
Master's thesis
Year
2013
Downloads
2
Citations
0

Request the full text

Abstract

As a basic problem in computer science, string matching is widely used in many fields. Such as Text Editor, Intrusion detection technology, virus signature matching technology and the Firewall technology, Gene sequence comparison.Sunday is a widely used and effective algorithm nowadays. But when the pattern strings begin with numbers of repeated characters which also exist in text at the same time, the times of attempt matching would increase as rapidly as the number of characters that repeated. Thus, Sunday could not be as efficient as it can, even could not be more efficient than KMP.the reason of this is Sunday used the character of text following the matching window to decide the position to move. The advantage of this is manifest; it could enhance the match speed much more than other algorithms. Whereas the disadvantage is in the condition above, Sunday may be the most inefficient algorithm. Thus, to extend the scope of Sunday that can be applied, and enhance its efficiency, a new algorithm based on Sunday algorithm is proposed. Shorten the number of repeated characters in the start position of pattern string to one before starting to compare. Then the compressed string would be used to compare with the text, if succeed, return beginning position of the fixed child string, or else reach the end of text, return false.after that, find the difference of the compressed string and the original string as n. then loop n times and compare the characters before the returned position in the text, once they are not equal, stop loop and continue to compare the compressed string with the text, or else return success.this can reduce the times of attempt match and enhance the matching speed. The performance of this improved algorithm is analyzed. The experimental results prove the effectiveness of it.Since it is complicated to compute the state translation diagram of string matching algorithms constructed by Markova chain directly, a new method according to the difference of compared numbers in the algorithms was proposed to compute the average efficiency. Firstly choose the BF algorithm as the foundation of other algorithms. After elaborate analyzed the matching process described by a state translation diagram of Markova chains, we finally get a simplified state diagram without absorbing states, the transition probability of each state would limit to a stable mumble when n is large enough. According to the characters above, a formulation which can compute the average efficiency can be promoted.Given the characteristic that Sunday algorithm is the representative of BM classes, the newest modified algorithms of BM, the upgrade version of BM, widely used in practice. So we choose it as the second algorithm to be analyzed. The matching process of Sunday algorithm is very complicated for heuristic jump by bad characters; therefor Markova chain is difficult to be constructed directly. Given this, a new method according to the difference of compared numbers in the algorithms was proposed to compute the average efficiency, analyzing the distinction of the two algorithms. We divided the difference of these two algorithms in two parts by the next character following the matching window of the text belongs to the pattern or not. Compute each part by the corresponding knowledge in Probability theory. The two results are combined to get the equation which represents the average efficiency of Sunday algorithm. To ensure the size of text and alphabet is rigorous the same, a success match can be obtained in the end with no doubt, we change the position of the characters in text to form the new text to be compared to, and looped to do so.until none of new compared times produced, delete data in the result invalid. The experimental results show that the estimated value computed by the equation is the average number of the compared times indeed.

Table of contents

Summary 3-5 ABSTRACT 5-10 first chapter 10-20 1.1 research background and significance 10 define -13 1.1.1 string matching development 10-11 1.1.2 single- mode string algorithm significance of 11 1.1.3 topics research status 11-13 1.2 string matching algorithm 13-18 1.2.1 KMP improved algorithm 13 1.2. 2 BM improved algorithm 13-15 1.2.3 Sunday improved algorithm efficiency 15-17 1.2.4 analysis on string matching algorithm 17 -18 1.3 efficiency analysis of existing problems of main content and research ideas 18-19 1.4 research topic organizational structure 19 1.5 papers 19-20 Chapter II single pattern string matching algorithm 20-38 2.1 based on prefix search method 21-26 2.1. 1 BF algorithm 21-22 2.1.2 Knuth-Morris-Pratt algorithm 22-25 2.1.3 Shift-And algorithm and Shit-Or algorithm 25-26 2.2 substring search method based 26 2.3 suffix search -based approach 26-36 thinking nbsp 2.3.1 Boyer-Moore algorithm ; 27-30 2.3.2 Horspool algorithm 30-31 2.3.3 Sunday algorithm 31-32 2.3.4 improved Sunday algorithm 32-36 2.4 Summary 36-38 Chapter Markov chain 38-46 Definition 3.1 Markov chains and Mathematics meaning 38-40 3.2 transition probability . 40-41 3.3 Markov Chain (Regular Markov Chain) . 41-43 3.4 Chapman - Kolmogorov equation 43-44 3.5 Summary 44-46 Chapter IV single pattern string matching algorithm efficiency estimates nbsp 46-56 4.1 how to find a string algorithm efficiency ; 46-48 4.2 exhaustive algorithm average number of matches 48-52 4.3 experiments and analysis 52-54 4.4 Summary efficiency 54-56 Chapter Sunday algorithm estimates 56-62 5.1 two algorithms matching difference 56-57 5.2 experiments and analysis 57-60 5.3 Summary 60-62 Chapter VI Conclusion and Outlook 62-64 6.1 Conclusion 62 6.2 Prospects 62-64 References 64-68 Thanks 68-70 studying for a master's degree theses published 70

Related dissertations

  1. Research on Momentum Strategy and Contrarian Strategy in China’s a Stock Main Broad Market
  2. Study on Bisoprolol Fumarate Nasal Spray
    HaoDuo ·Inner Mongolia Medical University ·2013 ·Master's thesis
  3. Spiral CT perfusion imaging in pancreatic cancer in comprehensive treatment system
    HuangZhenHua ·Beijing Union Medical College ·2009 ·Doctoral dissertation
  4. Study on Reclaimed Water after Adsorption Reusing to the Circulating Cooling Water of Blast Furnace
  5. The Research of the Properties of Blue Coke Used as a Partial Substitution for Coal in Blast Furnace Injection
  6. Grey Forecasting Model and Its Application in Electric Power Demands
  7. The Design and Research of FPGA-based FFT Algorithm
  8. The Association Study of Differential Expression of MHC Class Ⅰ and Ⅱ Molecules with Pathogenicity of MD in Spf Chickens Carrying Different MHC Haplotypes
    GaoCaiXia ·Gansu Agricultural University ·2012 ·Doctoral dissertation
  9. The Association of Polymorphisms in Complement Factor H, Factor B, LOC387715/ARMS2 and ERCC6 with Age-related Macular Degeneration in South Australia Population
    MaLingJun ·Jilin University ·2008 ·Doctoral dissertation
  10. Study on Optimizing Models for Sintering Proportioning、BF Ironmaking and Scheduling
    LiangDong ·Chongqing University ·2008 ·Doctoral dissertation
  11. Virtual Reality Simulation for Burden Distribution Process of Blast Furnace
  12. The Time-image Kinematic Analysis on the bF Move of Li Nina in Freestyle Skiing Aerials
    ZhaoPengYu ·Northeast Normal University ·2008 ·Master's thesis
  13. Study of Processof Ironmaking System in LongGang
  14. Application and Research of BF Automatic Ironmaking Technology
  15. Perfusion CT for the Assessment of Tumour Vascularity in Renal Carcinoma
    YangFei ·Anhui Medical University, ·2007 ·Master's thesis
  16. Tumor Angiogenesis and Dynamic CT in Renal Tumor: Radiology-pathology Correlation
    LiuKeFu ·Anhui Medical University, ·2004 ·Master's thesis
  17. Research of Intelligent Transport System_Monitoring and Managing System (ITS_MMS) on Highway
    FanXingJuan ·Guizhou University ·2006 ·Master's thesis
  18. Self- organizing data mining in the blast furnace predictive control application
    HeShiBo ·Zhejiang University ·2008 ·Master's thesis
  19. The Practice Study on Blast Furnace Strengthening Smelting of Longmen Iron and Steel Factory
  20. Studies on the Optimized Construction of Large BF Foundation