Abstract
An algorithm is presented solving the factor problem in trace monoids. Given two traces represented by words, the algorithm determines in linear time whether the first trace is a factor of the second one. The space used for this task is linear in the length of the first word. Similar to the Knuth-Morris-Pratt Algorithm for the factor problem on words, the algorithm simulates a finite automaton determined by the first word on the second word. To develop the algorithm, we examine overlaps of two traces, and extensible trace pairs (which represent still extensible prefixes of a searched factor appearing in some other trace), and show that both structures are lattices.
The most part of this work was done while the author was a member of the section Theoretical Computer Science at the University of Stuttgart.
Preview
Unable to display preview. Download preview PDF.
References
Aho, A. V., Hopcroft, J. E., and Ullman, J. D. The Design and Analysis of Computer Algorithms. Addison Wesley, 1974.
Birkhof, G. Lattice Theory. Amer. Math. Soc., Providence, RI, 1940.
Cartier, P., and Foata, D. Problèmes combinatoires de commutation et réarrangements. Lect. Notes in Math. 85. Springer, 1969.
Cori, R., and Métivier, Y. Recognizable subsets of some partially abelian monoids. Theoretical Computer Science, 35:179–189, 1985.
Cori, R., Métivier, Y., and Zielonka, W. Asynchronous mappings and asynchronous cellular automata. Information and Computation, 106:159–202, 1993.
Cori, R., and Perrin, D. Automates et commutations partielles. RAIRO Informatique Théorique et Applications, 19:21–32, 1985.
Diekert, V. Combinatorics on Traces. LNCS 454. Springer, 1990.
Diekert, V., and Métivier, Y. Partial commutation and traces. In Rozenberg, G., and Salomaa, A., Handbook on Formal Languages, volume III. Springer, 1996.
Diekert, V., and Rozenberg G., editors. The Book of Traces. World Scientific, Singapore, 1995.
Duboc, C. On some equations in free partially commutative monoids. Theoretical Computer Science, 46:159–174, 1986.
Eilenberg, S. Automata, Languages, and Machines, volume A. Academic Press, New York and London, 1974.
Gastin, P., and Rozoy, B. The poset of infinitary traces. Theoretical Computer Science, 120:101–121, 1993.
Hashiguchi, K., and Yamada, K. String matching problems over free partially commutative monoids. Information and Computation, 101:131–149, 1992.
Knuth, D. E., Morris, J. H., and Pratt, V. R. Fast pattern matching in strings. SIAM Journal on Computing, 6:323–350, 1977.
Liu, H.-N., Wrathall, C., and Zeger, K. Efficient solution of some problems in free partially commutative monoids. Information and Computation, 89:180–198, 1990.
Mazurkiewicz, A. Concurrent program schemes and their interpretations. DAIMI Rep. PB 78, Aarhus University, 1977.
Otto, F., and Wrathall, C. Overlaps in free partially commutative monoids. Journal of Computer and System Sciences, 42:186–198, 1991.
Reischuk, K. R. Einführung in die Komplexitätstheorie. Teubner, Stuttgart, 1990.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1997 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Messner, J. (1997). Pattern matching in trace monoids. In: Reischuk, R., Morvan, M. (eds) STACS 97. STACS 1997. Lecture Notes in Computer Science, vol 1200. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0023490
Download citation
DOI: https://doi.org/10.1007/BFb0023490
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-62616-9
Online ISBN: 978-3-540-68342-1
eBook Packages: Springer Book Archive