The Template Class Library of Data Structures Basing on Linux

Author
WangLiQin
Advisor
ZhuWangGui
School
Beijing University of Chemical Technology
Major
Applied Computer Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2002
Downloads
111
Citations
0

Request the full text

Abstract

Data structure has a wide application as the foundation of software design. Its development, on the one hand, is facing the special problems in many expert fileds. On the other hand, it is becoming a new current to discuss data structure from the view of abstract data type and polymorphic data type, and more and more attention has been paid to. Object-oriented method has been greatly used in designing software engineering now. The crux of this method is decomposing a problem at first and abstract a series of objects and classes that relate to the objects from it. During the process of developing software with oriented-object method, we usually use some general data structures. And when we use all kinds of data structures, we are concerned about the relationship of node to node and the basic operations on this relationship. The data types of those nodes, however, can be multiple. As for the data structures that the types of nodes are different but the relationship of these nodes are same from the logic function, there basic operations are same though the object types are different. We hope to use general data structures on user-defined objects as the simple data types. If there has such a library that it can offer all kinds of general data structure classes and can give each class the source code of program which have the same logic function, the source code can be used repeatly and the program readability can be enhaced by transferring data structure as the parameter. This class attribute idea, which also can becalled parameter template class. The design of data structure with this view has very important meaning to software developing.The paper builds a template class library of general data structures. The library gets twice the result with half the effort of programmer. In addition, the paper discusses the issues about the transition of data structures. The relationships between data structures and Object Oriented methods are analyzed. It is discussed how to program data structure’s type by applying object-oriented template skill. A method is offered to realize polymorphic data type by regarding data type as data structure’s parameter.In addition, the importance of designing the template class library of data structures is pointed out. The paper introduces all members of the class library; their anatomy and interfaces are analyzed in detail too. The codes of whole library were compiled by GNU C++ 2.7.2 on Linux 7.0. Finally, the library is saved to subdirectory usr/include/. So, we can use each class in the library the same as normal head file of GNU C++.

Table of contents

The first chapter of the data structure of object-oriented technology 10-13 1.1 data structure-oriented object-oriented necessity 10-11 1.2 data structure of object-oriented methods Contact 11-12 1.3 core content of object-oriented data structures are found; 12-13 Chapter II template class library Overview 13-16 the 2.1 template class 13-14 2.2 data structure template class library 14-15 2.3 interface data structure template class library 15-16 Chapter linear table 16-24 3.1 the linear abstract data types 16-17 3.2 sequence of linear table 17-19 3.2 .1 order of the logical structure of the linear table 17-18 3.2.2 construct a linear sequence table 18 3.2.3 destructor a linear table 18-19 3.2.4 sequence of linear table modify operation the 3.3 chain linear table 19 19-22 3.3.1 one-way linked list 19-20 3.3.2 circular linked list 20-21 3.3.3 doubly linked list 21-22 3.4 indirect addressing (INDIRECT ADDRESSING) 22 - 24 Chapter array matrix 24-31 4.1 array the 24-26 4.1.1 abstract data types 24-25 4.1.2 one-dimensional array of object-oriented class Array1D 25 4.1.3 object-oriented class of two-dimensional array Array2D 25-26 4.2 Matrix 26-27 4.2.1 Definitions and operating the 4.2.2 general matrix template class 26 the special matrix nbsp 26-27 4.3; 27 -28 4.3.1 defines 27 4.3.2 diagonal matrix 27 4.3.3 tridiagonal matrix 27-28 4.3.4 Triangle matrices 28 4.3.5 symmetric matrix 28 4.4 sparse matrix 28-31 4.4.1 triples sequence described 29 4.4.2 linked list described 29-31 Chapter stack and queue 31-36 5.1 stack 31-33 5.1.1 stack abstract data types 31 5.1.2 sequence stack 31-32 5.1.3 chain stack 32-33 5.2 queue 33-36 5.2.1 queue definition 33 5.2.2 circular queue - queue order representation and implementation 33-34 5.2.3 chain queue - queue chain and achieve 34-36 Chapter jump table and hash 36-43 6.1 and orderly linear table (class SORTEDCHAIN) of 36-37 6.2 jump table 37-40 6.2.1 jump table describes 37-38 < br /> 6.2.2 insert and delete the assigned level 38-39 6.2.3 the jump table node structure 39 6.2.4 39 6.2.5 class SkipList 39-40 6.3 hashtable 40-43 6.3.1 Description hash table 40-41 6.3.2 Open Addressing 41 6.3.3 linked list hash 41-43 Chapter VII of the tree 43-58 7.1 binary tree 43-45 in 7.1.1 binary tree definition and nature 43 7.1.2 binary tree description 43-44 7.1.3 linked list storage structure 44-45 7.1.4 class BinaryTree 45 7.2 Contest tree 45-47 the 7.2.1 of abstract data types WinnerTree 46 7.2.2 class WinnerTree 46-47 7.2.3 the winner tree (WinnerTree) template class operating 47 7.3 binary search tree nbsp 47-50 7.3.1 Basic concept; 47-48 7.3.2 abstract data types BSTree 48 the 7.3.3 binary search tree operating 48-49 7.3.4 BSTree to 7.4 balanced binary 49-50 the 50-52 7.4.1 basic concepts 50 7.4.2 AVL tree description the tree balance 50 7.4.3 AVL groping handling 50-51 7.4.4 template class AVLtree defined the 51-52 7.5 B Tree 52-58 7.5.1 defined 52 7.5.2 the B-tree search 52-53 7.5.3 B-tree insertion 53-54 7.5.4 the B-tree delete 54-55 7.5.5 node structure 55-56 7.5.6 class BTree 56 the class Btreelterator of 7.5.7 The B-tree walker nbsp \queue 58-65 a 8.1 priority queues abstract description 58-59 8.2 heap 59-62 8.2.1 defined 59 8.2.2 the maximum heap insertion 59-60 8.2.3 maximum heap delete 60-61 8.2.4 maximum heap initialization 61 8.2.5 the maximum heap of template class MaxHeap the operation 61 8.2.6 minimum heap template class MinHeap 61-62 8.3 leftist heap 62-65 8.3.1 high priority, maximum and minimum leftist heap 62-63 8.3.2 a maximum HBLT the insertion 63 8.3 the .3 a maximum HBLT the delete 63 8.3.4 the merge two largest HBLT 63-64 8.3.5 initialization of the largest HBLT 64 <br / > the 8.3.6 template class MaxHBLT is operating the 64-65 of ninth chapter of Figure 65-77 9.1 abstract data type GRAPH 65 9.2 to the map and no description of the figure 65-66 9.3 weighted graph description 66-67 9.4 base class abstract class defines the various classes of graphs 67-77 9.4.1 described as class Network the 68-70 nbsp 9.4.2 class WNetwork; 70-71 9.4.3-class AdjacencyWDigraph 71-72 the 9.4.4 class AdjacencyWGraph 72 . 9.4.5 for AdjacencyGraph 72-73 the 9.5.6 class AdjacencyDigraph 73 9.4.7 class LinkedBase 73-74 9.4.8-class LinkedDigraph 74 9.4.9-class LinkedGraph 74-75 9.4. 10 LinkedWDigraph 75 the 9.4.11 LinkedWGraph the 75-76 9.4.12 Undirected 76-77 Chapter data structure template Class Library application example the 77-83 the 10.1 one yuan polynomial arithmetic - single linked list of applications 77-78 10.2 histogram - the application of a binary search tree 78-79 10.3 machine scheduling - application of the priority queue (minimum heap) 79-81 10.4 minimum spanning tree 81-83 Conclusion 83-84 Appendix to References 84-86 86-88 thank the 88-89 Graduate papers published during the directory 89

Related dissertations

  1. Software of Vehile Body Dimension and Geometry Error Detection System with Corresponding Study
  2. Software Design for Control System of Electro-hydraulic Three-axis Flight Simulator
    KongJie ·Harbin Institute of Technology ·2012 ·Master's thesis
  3. The Design and Implementation of Website Construction Based on OpenCms Technology
  4. Design and Implementation of Materials Management System of Multi-level Educational Institutions
    PeiZhiChao ·Northeastern University ·2013 ·Master's thesis
  5. Design and Implementation of Ji’nan Waterconservancy Bureau Covers Security Information System
    MaShiTao ·Shandong University ·2013 ·Master's thesis
  6. The Design and Implementation of Sinopec Sales Co.,Ltd Personnel Management System
    LinYan ·Dalian University of Technology ·2013 ·Master's thesis
  7. Design and Implementation of Tianhua College Office System
    JieJian ·Dalian University of Technology ·2013 ·Master's thesis
  8. Universities Fixed Asset Lifecycle Management System Design
    JiangChuanLin ·Dalian University of Technology ·2013 ·Master's thesis
  9. Analysis and design of engineering project management system
    XuXianJun ·Yunnan University ·2013 ·Master's thesis
  10. The Design and Implementation of Vehicle Tracking Management System
  11. Design and Implementation of the Management System of the Service Area
  12. The Design and Realization of Campus Blog System Based on ASP
  13. The Design and Implementation of the Ship Agency Management System
  14. Design and Implementation of Supermarket Chain Chongqing Chongkelong Co Information System
  15. Design and Implementation of Network Curriculum Teaching Platform for Middle School
  16. Analysis and design of student information management system
    WuShaSha ·Yunnan University ·2013 ·Master's thesis
  17. The Architecture of Green Campus Ecological Information Platform
    HanQiuShi ·Tianjin University ·2012 ·Master's thesis
  18. Design and Implementation of Community Management Sub-System on Police Mobile System
    LiuYang ·Xi'an University of Petroleum ·2012 ·Master's thesis
  19. Chengdu Jinjian Finance Bureau Financial Approval System Design and Implementation
  20. Chengdu Jinpeng Company’s Human Resource Management System Design and Implementation of Master Dissertation