Abstract

Recently, various types of permutation patterns such as mesh patterns, boxed-mesh patterns, and consecutive patterns, have been studied where relative order between characters is considered rather than characters themselves. Among these, we focus on boxed-mesh patterns and study the problem of finding all boxed-subsequences of a text $$T$$ of length $$n$$ whose relative order between characters is the same as that of a pattern $$P$$ of length $$m$$ . Recently, it is known that this problem can be solved in $$O(n^3)$$ time. In this paper, we first propose an $$O(n^2 m)$$ -time algorithm for the problem based on interesting properties of boxed subsequences. Then, we give a further improved algorithm which runs in $$O(n^2 \log m)$$ time using preprocessed information on $$P$$ and order-statistics trees.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.