skip to main content
10.1145/2562059.2562141acmconferencesArticle/Chapter ViewAbstractPublication PagescpsweekConference Proceedingsconference-collections
research-article

Edit distance for timed automata

Published:15 April 2014Publication History

ABSTRACT

The edit distance between two (untimed) traces is the minimum cost of a sequence of edit operations (insertion, deletion, or substitution) needed to transform one trace to the other. Edit distances have been extensively studied in the untimed setting, and form the basis for approximate matching of sequences in different domains such as coding theory, parsing, and speech recognition.

In this paper, we lift the study of edit distances from untimed languages to the timed setting. We define an edit distance between timed words which incorporates both the edit distance between the untimed words and the absolute difference in time stamps. Our edit distance between two timed words is computable in polynomial time. Further, we show that the edit distance between a timed word and a timed language generated by a timed automaton, defined as the edit distance between the word and the closest word in the language, is PSPACE-complete. While computing the edit distance between two timed automata is undecidable, we show that the approximate version, where we decide if the edit distance between two timed automata is either less than a given parameter or more than δ away from the parameter, for δ < 0, can be solved in exponential space and is EXPSPACE-hard. Our definitions and techniques can be generalized to the setting of hybrid systems, and analogous decidability results hold for rectangular automata.

References

  1. A. Aho and T. Peterson. A minimum distance error-correcting parser for context-free languages. SIAM J. of Computing, 1:305--312, 1972.Google ScholarGoogle ScholarCross RefCross Ref
  2. R. Alur and D. L. Dill. A theory of timed automata. Theoretical Computer Science, 126:183--235, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. M. Benedikt, G. Puppis, and C. Riveros. Regular repair of specifications. In LICS, pages 335--344. IEEE Computer Society, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. R. Brenguier, S. Göoller, and O. Sankur. A comparison of succinctly represented finite-state systems. In CONCUR, pages 147--161, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. K. Chatterjee and V. S. Prabhu. Quantitative timed simulation functions and refinement metrics for real-time systems. In HSCC, 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. A. Donzé, T. Ferrère, and O. Maler. Efficient robust monitoring of signal temporal logic. In CAV 2013, LNCS. Springer, 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. A. Donzé and O. Maler. Robust satisfaction of temporal logic over real-valued signals. In FORMATS, LNCS, pages 92--106. Springer, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. G. Fainekos and G. Pappas. Robustness of temporal logic specifications for continuous-time signals. Theoretical Computer Science, 410(42), 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. G. Fainekos, S. Sankaranarayanan, K. Ueda, and H. Yazarel. Verification of automotive control applications using S-TaLiRo. In Proc. American Control Conference, 2012.Google ScholarGoogle ScholarCross RefCross Ref
  10. T. A. Henzinger and P. W. Kopke. Discrete-time control for rectangular hybrid automata. Theor. Comput. Sci., 221(1--2):369--392, June 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. J. E. Hopcroft and J. D. Ullman. Introduction to Automata Theory, Languages, and Computation. Adison-Wesley Publishing Company, Reading, Massachusets, USA, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. R. Karp. Mapping the genome: some combinatorial problems arising in molecular biology. In STOC 93, pages 278--285. ACM, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. V. Levenshtein. Binary codes capable of correcting deletions, insertions and reversals. Soviet Physics-Doklady, 10:707--710, 1966.Google ScholarGoogle Scholar
  14. M. Mohri. Edit-distance of weighted automata: general definitions and algorithms. Intl. J. of Foundations of Comp. Sci., 14:957--982, 2003.Google ScholarGoogle ScholarCross RefCross Ref
  15. T. Okuda, E. Tanaka, and T. Kasai. A method for the correction of garbled words based on the levenshtein metric. IEEE Trans. Comput., 25:172--178, 1976. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. J. Ouaknine and J. Worrell. Universality and language inclusion for open and closed timed automata. In O. Maler and A. Pnueli, editors, HSCC, volume 2623 of Lecture Notes in Computer Science, pages 375--388. Springer, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. G. Pighizzini. How hard is computing the edit distance? Information and Computation, 165:1--13, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. W. J. Savitch. Relationships between nondeterministic and deterministic tape complexities. J. Comput. Syst. Sci., 4(2):177--192, Apr. 1970. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. R. A. Wagner. Order-n correction for regular languages. Commun. ACM, 17(5):265--268, 1974. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. R. A. Wagner and M. J. Fischer. The string-to-string correction problem. J. ACM, 21(1):168--173, Jan. 1974. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Edit distance for timed automata

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      HSCC '14: Proceedings of the 17th international conference on Hybrid systems: computation and control
      April 2014
      328 pages
      ISBN:9781450327329
      DOI:10.1145/2562059

      Copyright © 2014 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 15 April 2014

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      HSCC '14 Paper Acceptance Rate29of69submissions,42%Overall Acceptance Rate153of373submissions,41%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader