題名: A Simple Tree Pattern-Matching Algorithm
作者: Lu, Hsiao-Tzu
Yang, Wuu
期刊名/會議名稱: 2000 ICS會議
摘要: Tree pattern matching occurs as a crucial step in a number of programming tasks. We propose a new al- gorithm to solve the tree pattern-matching problem. The algorithm may be viewed as an extension of the Knuth- Morris-Pratt string-matching algorithm to the tree pattern- matching problem. In the new algorithm, the times of each node in the subject tree needs to be traversed is bounded by their level. Therefore, the time complexity of the simple tree pattern-matching is bounded by O(n log n), where n is the number of nodes in the subject tree. The worst case occurs when the frequency of the same content of the pat- tern's root in the subject tree is high. But we need an extra preprocessing time of the pattern. The time complexity of the pattern preprocessing is bounded by O(mlogm), where m is the number of nodes in the pattern. The worst case occurs similarly when the frequency of the same content of the root in the pattern is high. By using indirection, the space complexity will be down to O(n + m).
日期: 2006-10-25T05:58:29Z
分類:2000年 ICS 國際計算機會議

文件中的檔案:
檔案 描述 大小格式 
ce07ics002000000006.pdf248.6 kBAdobe PDF檢視/開啟


在 DSpace 系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。