The Adaptive Trie Tree and the Improved Algorithms of GPERF

Author
WangGuanChong
Advisor
FuQingXiang
School
Fuzhou University
Major
Applied Computer Technology
Classification
TP311.12 Data structures
Degree
Master's thesis
Year
2004
Downloads
68
Citations
0

Request the full text

Abstract

"Searching" appears in every algorithm. So it’s very important to decrease the time and space needed for searching. The trie tree is a data structure supporting fast searching. Traditional trie tree is a searching tree according to the key byte by byte. It’s faster than the hash algorithm. The main disadvantage of trie is that its branch nodes are so big that its using rate of space is too low. A link pointer of a branch node of a traditional trie tree can point to only one leaf node, and usually most of the link pointers are null. Only 2,5% of the link pointers are not null. For the traditional hash algorithm, the time complexity of search, insert and delete is O(n) in the worst cases. The time complexity of search in the extendible hash table is O(maxkeysize) in the worst cases (maxkeysize is the max size of the keys, and it’s usually a constant in practice.). But the time complexity of insert and delete in the extendible hash table is O(n) in the worst cases, and the space complexity is beyond linear with the number of the keys. Its using rate of space is low when the number of the keys is large. For the "perfect" adaptive hash algorithms, although the time complexity of search is low, the time complexity of collision solution after insert is beyond O(n2) in the worst cases. The article mainly does two things. First, we improve the adaptive hash algorithm, "gperf, speed up its collision solution procedure by hundreds of times, and decrease the time of search less. Second, after analyzing the ideas and the advantages of trie tree, hash and extendible hash, we present the algorithm of adaptive trie tree. The time complexity of insert, search and delete, which the algorithm supports, is O(maxkeysize), and the space complexity of the algorithm is O(n).The creative work of the article is the following:1. After studying the traditional trie tree, we present the data structure and algorithm of the adaptive trie tree that support ADT dictionary. On the premise that we don’t increase the time complexity of the algorithm, we greatly reduce the space complexity, and reduce the space coefficient from about 40 to 3. Two things embody the adaptivity of the algorithm. The first is that the size of the branch node is extendible and shrinkable for the needs. The second is that every link pointer of a branch node can point to a singly linked list of dictionary elements, and the length of the linked list equals to 1 plus the level of the branch node. The two aspects of the adaptivity greatly reduce the proportion of null links for the whole tree, so enormously decrease the space complexity of the trie tree.2. Aiming at the efficiency problem of GPERF (perfect hash function generator), we take the measures such as fully searching and taking use of the information of the keys, decreasing collisions, avoiding inefficient computing, limiting the maximum of collisions of each bucket, apportioning the work of collision solution procedure to the search procedure, grading hash, etc. We present the improved algorithm for gperf, and prove that the effect is notable by the experiments.

Related dissertations

  1. Complexity Research of Innovation Subject Base on System Science
  2. Applied Research of the Oligopoly Game Model in Insurance Market
    XuWei ·Tianjin University ·2012 ·Master's thesis
  3. Fault Detection Mechanism in the Cloud Environment
    LiLiang ·Central South University ·2012 ·Master's thesis
  4. Research on Adaptive Three-dimensional Measurement Method and Reconstruction Using Multi-line Structured Light
  5. Sliding Mode Control of Uncertain Systems in Case of Actuator Failures
  6. The Improved Genetic Algorithm Based on Cloud Model Research
    JiangMingZuo ·Liaoning Normal University ·2013 ·Master's thesis
  7. Study on Improving Cellular Multi-objective Genetic Algorithm and Its Application in the Engineering Optimization
    LuChao ·Three Gorges University ·2013 ·Master's thesis
  8. Synchronization Analysis of a Class of Complex Biological Neural Network
    DanDan ·Donghua University ·2014 ·Master's thesis
  9. Particle Swarm Optimization Based Dynamic Optimization Research
    ZhouYou ·Zhejiang University ·2014 ·Master's thesis
  10. Analysis and Control of the Synchronization of Neuron Networks
    JiaChenHui ·Tianjin University ·2010 ·Master's thesis
  11. Applications of Modified Differential Evolution in Fractional Order Control Systems
    ZhouXiaoLiang ·Harbin Engineering University ·2013 ·Master's thesis
  12. Research on Adaptive Control in Two Application Examples of Electrical and Mechanical
    ZhaoHouRu ·Hefei University of Technology ·2014 ·Master's thesis
  13. The Research on IP Address Lookup and Packet Classification Algorithm
    XiongShuai ·Hunan University ·2013 ·Master's thesis
  14. Information Automatic Extraction and Analysis Approach on Financial Sector
    MaJingJing ·Harbin Institute of Technology ·2013 ·Master's thesis
  15. Research and Design of Microblog Topic Tracking Method
    WangHui ·Beijing Jiaotong University ·2014 ·Master's thesis
  16. 3D Mesh Generation of Two-phase Bone from CT Data
    LiuTengAo ·University of Jinan ·2013 ·Master's thesis
  17. Research on Adaptive Skeleton-driven Deformation for Mesh Model
    QiXiaoMing ·Liaoning Normal University ·2012 ·Master's thesis
  18. Research on Super-resolution Reconstruction of Image Sequences
    XuZhiGang ·Xi'an Optics and Fine Mechanics ·2012 ·Doctoral dissertation
  19. Adaptive Image Fusion Based on Sparse Representation
  20. An Adaptive Multi-level Caching Strategy for Disributed Database Systems