Abstract
Several formalisms and tools for software development use hierarchy in system design, for instance statecharts and diagrams in UML. Message sequence charts (MSCs) are a standardized notation for asynchronously communicating processes. The norm Z.120 also includes hierarchical HMSCs. Algorithms on MSCs rarely take into account all possibilities covered by the norm. In particular, hierarchy is not taken into account since the models that are usually considered are (flat) MSC-graphs, that correspond to the unfolding of hierarchical HMSCs. However, complexity can increase exponentially by unfolding. The aim of this paper is to show that basic algorithms can be designed such that they avoid the costly unfolding of hierarchical MSCs and HMSCs. We show this for the membership and the pattern matching problem. We prove that the membership problem for hierarchical HMSCs is PSPACE-complete. Then we describe a polynomial time algorithm for the pattern matching problem on hierarchical MSCs.
Similar content being viewed by others
References
Alur, R., Etessami, K., Yannakakis, M.: Realizability and verification of MSC graphs. In: Proceedings of ICALP’01. Lecture Notes in Computer Science, vol. 2076, pp. 797–808. Springer, Berlin (2001) (Journal version in Theor. Comput. Sci. 331(1), 97–114 (2005))
Alur, R., Holzmann, G.H., Peled, D.A.: An analyzer for message sequence charts. Soft. Concepts Tools 17(2), 70–77 (1996)
Alur, R., Kannan, S., Yannakakis, M.: Communicating hierarchical state machines. In: Proceedings of ICALP’99. Lecture Notes in Computer Science, vol. 1644, pp. 169–178. Springer, Berlin (1999)
Alur, R., Yannakakis, M.: Model checking of hierarchical state machines. In: Proceedings of SIGSOFT’98, pp. 175–188 (1998) (Extended version in ACM Trans. Program. Lang. Syst. 23(3), 273–303 (2001))
Alur, R., Yannakakis, M.: Model checking of message sequence charts. In: Proceedings of CONCUR’99. Lecture Notes in Computer Science, vol. 1664, pp. 114–129. Springer, Berlin (1999)
Dalmau, V.: Computational complexity of problems over generalized formulas. Ph.D. thesis, Universitat politécnica de Catalunya (UPC) (2000)
Fine, N.J., Wilf, H.S.: Uniqueness theorems for periodic functions. Proc. Am. Math. Soc. 16 (1965)
Genest, B., Muscholl, A.: Pattern matching and membership for hierarchical message sequence charts. In: Proceedings of LATIN’02. Lecture Notes in Computer Science, vol. 2286, pp. 326–340. Springer, Berlin (2002)
Genest, B., Minea, M., Muscholl, A., Peled, D.: Specifying and verifying partial order properties using template MSCs. In: Proceedings of FoSSaCS’04. Lecture Notes in Computer Science, vol. 2987, pp. 195–209. Springer, Berlin (2004)
Genest, B., Muscholl, A., Seidl, H., Zeitoun, M.: Infinite-state High-level MSCs: Model-checking and realizability. In: Proceedings of ICALP’02. Lecture Notes in Computer Science, vol. 2380, pp. 657–668. Springer, Berlin (2002) (Journal version in J. Comput. Syst. Sci. 72(4), 617–647 (2006))
Harel, D.: Statecharts: a visual formulation for complex systems. Sci. Comput. Program. 8(3), 231–274 (1987)
Harel, D., Kupferman, O., Vardi, M.Y.: On the complexity of verifying concurrent transition systems. In: Proceedings of CONCUR’97. Lecture Notes in Computer Science, vol. 1243, pp. 258–272. Springer, Berlin (1997) (Journal version in Inform. Comput. 173(2), 143–161 (2002))
ITU-TS recommendation Z. 120 (1996)
Lifshits, Y.: Solving classical string problems on compressed texts. Available at http://xxx.lanl.gov/abs/cs.DS/0604058
Lohrey, M.: Safe realizability of high-level message sequence charts. In: Proceedings of CONCUR’02. Lecture Notes in Computer Science, vol. 2421, pp. 177–192. Springer, Berlin (2002) (Journal version in Theor. Comput. Sci. 309(1–3), 529–554 (2003))
Liu, H., Wrathall, C., Zeger, K.: Efficient solution of some problems in free partially commutative monoids. Inform. Comput. 89, 180–198 (1990)
Madhusudan, P.: Reasoning about sequential and branching behaviours of message sequence graphs. In: Proceedings of ICALP’01. Lecture Notes in Computer Science, vol. 2076, pp. 809–820. Springer, Berlin (2001)
Miyazaki, M., Shinohara, A., Takeda, M.: An improved pattern matching algorithm for strings in terms of straight-line programs. In: Proceedings of CPM’97. Lecture Notes in Computer Science, vol. 1264, pp. 1–11. Springer, Berlin (1997)
Mukund, M., Narayan Kumar, K., Sohoni, M.: Synthesizing distributed finite-state systems from MSCs. In: Proceedings of CONCUR’00. Lecture Notes in Computer Science, vol. 1877, pp. 521–535. Springer, Berlin (2000)
Muscholl, A., Peled, D.: Message sequence graphs and decision problems on Mazurkiewicz traces. In: Proceedings of MFCS’99. Lecture Notes in Computer Science, vol. 1672, pp. 81–91. Springer, Berlin (1999)
Muscholl, A., Peled, D., Su, Z.: Deciding properties of message sequence charts. In: Proceedings of FoSSaCS’98. Lecture Notes in Computer Science, vol. 1378, pp. 226–242. Springer, Berlin (1998)
Peled, D.: Specification and verification of Message Sequence Charts. In: Proceedings of FORTE/PSTV’00, pp. 139–154. Kluwer, Dordrecht (2000)
Plandowski, W.: Testing equivalence of morphisms on context-free languages. In: Proceedings of ESA’94. Lecture Notes in Computer Science, vol. 855, pp. 460–470. Springer, Berlin (1994)
Rytter, W.: Algorithms on compressed strings and arrays. In: Proceedings of SOFSEM’99. Lecture Notes in Computer Science, vol. 1725, pp. 48–65. Springer, Berlin (1999)
Schaefer, T.J.: The complexity of satisfiability problems. In: Proceedings of STOC’78, pp. 216–226. Springer, Berlin (1978)
Author information
Authors and Affiliations
Corresponding author
Additional information
The results were obtained while B. Genest was affiliated with LIAFA, Université Paris 7.
Rights and permissions
About this article
Cite this article
Genest, B., Muscholl, A. Pattern Matching and Membership for Hierarchical Message Sequence Charts. Theory Comput Syst 42, 536–567 (2008). https://doi.org/10.1007/s00224-007-9054-1
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00224-007-9054-1