Let and be disjoint alphabets of respective size and . Two strings over of equal length are said to parameterized match (p-match) if there is a bijection $f:\Sigma \cup \Pi \rightarrow \Sigma \cup \Pif\Sigmaf$ maps the characters of one string to those of the other string so that the two strings become identical. We consider the p-matching problem on a (reversed) trie and a string pattern such that every path that p-matches has to be reported. Let be the size of the given trie . In this paper, we propose the parameterized position heap for that occupies space and supports p-matching queries in time, where is the length of a query pattern and is the number of paths in to report. We also present an algorithm which constructs the parameterized position heap for a given trie in $O(N (\sigma + \pi))$ time and working space.

生成讲解博客的中文版本

生成AI智能校验的中文版本