期刊论文详细信息
Journal of Computer Science | |
A New Algorithm for Subset Matching Problem | Science Publications | |
Yangjun Chen1  | |
关键词: String matching; tree pattern matching; subset matching; trie; suffix tree; probabilistic analysis; | |
DOI : 10.3844/jcssp.2007.924.933 | |
学科分类:计算机科学(综合) | |
来源: Science Publications | |
【 摘 要 】
The subset matching problem is to find all occurrences of a pattern string p of length m in a text string t of length n, where each pattern and text position is a set of characters drawn from some alphabet ∑. The pattern is said to occur at text position i if the set p[j] is a subset of the set t[i + j - 1], for all j (1 ≤ j≤ m). This is a generalization of the ordinary string matching and can be used for finding matching subtree patterns. In this research, we propose a new algorithm that needs O(n.m) time in the worst case. But its average time complexity is O(n + m.nlog1.5).
【 授权许可】
Unknown
【 预 览 】
Files | Size | Format | View |
---|---|---|---|
RO201911300581316ZK.pdf | 152KB | download |