Research and Implementation of XML Document Publish/Subscribe System Based on Nondeterministic Finite Automaton
- Author
- ZhangHaiKun
- Advisor
- WangBoTao
- School
- Northeastern University
- Major
- Computer Software and Theory
- Classification
- TP391.1 Text Processing
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 13
- Citations
- 0
Abstract
With the rapid development of the Web’s technology and applications, XML has become an important component of information and data exchange on the World Wide Web. XML is used in a wide number of applications such as, e-commerce, electronic data exchange, scientific data representation, data modeling and analysis, and search engine. Publish/subscribe system is asynchronous and multi-point communicated, and information’s publisher and subscriber are completely decoupled in space, time and control-flow. Publish/subscribe system is able to satisfy the needs of large-scale and highly dynamic distributed computing environment based on Internet. So far, there is a large amount of XML document data accumulated on the Web and the XML document data is updating very fast. Facing to the users’different needs, publish/subscribe system can send XML documents to the users who are interested to the XML documents immediately.The prefix-shared idea of Y-Filter can improve the efficiency of query processing, but the quantity of the states in the stack would have a number of exponential growths with the depth of the stack in the process of structure matching of nondeterministic finite automaton. For this reason, this thesis makes a further study on the optimization problem of the quantity of the states in the stack in the process of path structure matching. According to the characteristics of XML documents and queries, this thesis designs a stack optimization algorithm based on DFS, and uses backtrack and jump operation to reduce the unnecessary element matching operations. To analyze the performance of the stack optimization algorithm based on DFS, this thesis designs the corresponding experiments, and analyzes the system’s performance for the different parameters. Experimental results show that the stack optimization algorithm based on DFS can reduce the quantity of the states in the stack in the process of structure matching effectively, and the response time is acceptable.In addition, the structure matching and predicate matching of queries are not relevant in time, so this thesis uses the technology of assembly lines in the XML document publish/subscribe system, and according to the differences of structure between the linear query and the twig query, this thesis uses assembly lines containing different segments to process them. The use of assembly lines improves the processing efficiency of the XML document publish/subscribe system. This thesis designs relevant experiments for linear queries and twig queries, and the experiment results show that the matching algorithms of linear queries and twig queries based on assembly lines technology can save time by25%and50%respectively.
Table of contents
Summary 5-6
Abstract 6-10
Chapter 1 Introduction 10-20
1.1 Background 10-11
1.2 purpose and significance 11-12
1.3 related research 12-17
1.3.1 X-Filter 13-14 <br / > 1.3.2 Y-Filter 14-15
1.3.3 other XML documents publish / subscribe systems 15-17
1.4 The main work 17 <br / > 1.5 This article organizational structure matching model 17-20
Chapter 2 uncertain finite automata 20-28
2.1 basic Concepts 20-21
2.1.1 queries related concepts 20-21
2.1.2 documentation related concepts 21
2.2 queries registered 21-24
merge nbsp 2.2.1 path ; 22
Add nbsp 2.2.2 path ; 22-24
matching 2.3 query 24-26
2.3.1 general matching queries 24-26
2.3.2 query matching process stack status 26
delete nbsp 2.4 queries ; 26-27
2.5 Summary 27-28
Chapter 3, depth-first stack -based optimization algorithm proposed 28-44
3.1 issues 28-29
3.2 optimization algorithm data structure heap of money 29-30
3.3 stack optimization algorithm to achieve 30-36
3.3.1 matching module 32-34 <br / > 3.3.2 Jump module 34-36
3.4 experiments and performance analysis 36-42
3.4.1 experimental environment 36
3.4. experimental data sets 36-37
3.4.3 analysis of experimental results 37-42
3.5 Summary 42-44
based Chapter 4 query matching algorithm nbsp water technology ; 44-62
4.1 pipelining basic idea 44-45
4.2 XML query matching achieve 45-49 <br / > 4.2.1 Twig query structure matching algorithm 45-47
4.2.2 Twig query predicate matching algorithm 47-48
4.2.3 Twig query matching algorithm branch nodes 48-49
4.3 water technologies that match the query -based 49-53
4.3.1 single path that match the query pipeline to achieve 49-50
4.3.2 Twig query matching water to achieve 50-53
4.4 experiments and performance analysis 53-60
4.4.1 experimental environment 53-54 <br / > 4.4.2 experimental data sets 54
4.4.3 analysis of experimental results 54-60
4.5 Summary 60-62
5th Chapter summary and Outlook 62-64
5.1 summarizes 62
5.2 Prospects 62-64
References 64-68 <br / > Thanks 68-70
studying for a master's degree during the project and participate in a paper published 70