Algorithms for Pattern Involvement in Permutations
We consider the problem of developing algorithms for the recognition of a fixed pattern within a permutation. These methods are based upon using a carefully chosen chain or tree of subpatterns to build up the entire pattern. Generally, large improvements over brute force search can be obtained. Even using on-line versions of these methods allow for such improvements, though often not as great as for the full method. Furthermore, by using carefully chosen data structures to fine tune the methods, we establish that any pattern of length 4 can be detected in O(n log n) time. We also improve the complexity bound for detection of a separable pattern from O n 6 ) to O(n 5 log n).
KeywordsRecognition Algorithm Pattern Involvement Permutation Graph Registration Information Brute Force Search
Unable to display preview. Download preview PDF.
- 4.O. Guibert: Personal communication.Google Scholar
- 5.D. E. Knuth: Fundamental Algorithms, The Art of Computer Programming Vol.1 (First Edition), Addison-Wesley, Reading, Mass.(1967).Google Scholar
- 6.V. R. Pratt: Computing permutations with double-ended queues, parallel stacks and parallel queues, Proc. ACM Symp. Theory of Computing 5 (1973), 268–277.Google Scholar