Skip to main content

A Word Equation Solver Based on Levensthein Distance

  • Conference paper
MICAI 2007: Advances in Artificial Intelligence (MICAI 2007)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 4827))

Included in the following conference series:

  • 1012 Accesses

Abstract

Many regularity properties of strings, like those appearing in hardware specification and verification, can be expressed in terms of word equations. The solvability problem of word equations is NP-hard and the first algorithm to find a solution for a word equation, when this solution exists, was given by Makanin in 1977. The time complexity of Makanin’s algorithm is triple exponential in the length of the equations. In this paper we present an evolutionary algorithm with a local search procedure that is efficient for solving word equation systems. The fitness function of our algorithm is based on Levensthein distance considered as metric for the set of 0-1 binary strings. Our experimental results evidence that this metric is better suited for solving word equations than other edit metrics like, for instance, Hamming distance.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Alonso, C.L., Drubi, F., Montaña, J.L.: An Evolutionary Algorithm for Solving Word Equation Systems. In: Conejo, R., Urretavizcaya, M., Pérez-de-la-Cruz, J.L. (eds.) Current Topics in Artificial Intelligence. LNCS (LNAI), vol. 3040, pp. 147–156. Springer, Heidelberg (2004)

    Google Scholar 

  2. Alonso, C.L., Drubi, F., Gómez-García, J., Montaña, J.L.: Word Equation Systems: The Heuristic Approach. In: Bazzan, A.L.C., Labidi, S. (eds.) SBIA 2004. LNCS (LNAI), vol. 3171, pp. 83–92. Springer, Heidelberg (2004)

    Google Scholar 

  3. Angluin, D.: Finding patterns common to a set of strings, J. J. C. S. S. 21(1), 46–62 (1980)

    MATH  MathSciNet  Google Scholar 

  4. Baader, F., Siekmann, J.H.: Unification Theory. In: Handbook of Logic in Artif. Int. and Logic Prog, vol. 2, Clarendon Press, Oxford (1994)

    Google Scholar 

  5. Eiben, A., van der Hauw, J.: Solving 3-SAT with adaptive Genetic Algorithms. In: 4th IEEE Conference on Evolutionary Computation, pp. 81–86. IEEE Press, Los Alamitos (1997)

    Google Scholar 

  6. Goldbert, D.E.: Genetic Algorithms in Search Optimization & Machine Learning. Addison Wesley Longmann, London (1989)

    Google Scholar 

  7. Gottlieb, J., Marchiori, E., Rossi, C.: Evolutionary Algorithms for the Satisfiability Problem. Evolutionary Computation 10(1) (2002)

    Google Scholar 

  8. Gutiérrez, C.: Satisfiability of word equations with constants is in exponential space. In: Proc. FOCS 1998, IEEE Computer Society Press, California (1998)

    Google Scholar 

  9. Gutiérrez, C.: Satisfiability of equations in free groups is in PSPACE. In: STOC 2000. Theory of Computing, pp. 21–27. ACM Press, New York (2000)

    Google Scholar 

  10. Levenshtein, V.I.: Bynary Coded Capable of Correcting Deletions, Insertions and Reversals. Doklads Akademii Nauk SSR 163(4), 845–848 (1965)

    MathSciNet  Google Scholar 

  11. Makanin, G.S.: The Problem of Solvability of Equations in a Free Semigroup. Math. USSR Sbornik 32(2), 129–198 (1977)

    Article  MATH  Google Scholar 

  12. Marchiori, E., Rossi, C.: A Flipping Genetic Algorithm for Hard 3-SAT Problems. In: Banzhaf, W., et al. (eds.) Proccedings of G.E.C.C.O., pp. 393–400 (1999)

    Google Scholar 

  13. Plandowski, W.: Satisfiability of Word Equations with Constants is in PSPACE. In: FOCS 1999, pp. 495–500 (1999)

    Google Scholar 

  14. Plandowski, W.: An efficient algorithm for solving word equations. In: Annual ACM Symposium on Theory of Computing archive Proceedings of the thirty-eighth annual ACM symposium on Theory of computing, pp. 467–476. ACM Press, New York (2006)

    Chapter  Google Scholar 

  15. Plandowski, W., Rytter, W.: Application of Lempel-Ziv encodings to the Solution of Words Equations. In: Larsen, K.G., Skyum, S., Winskel, G. (eds.) ICALP 1998. LNCS, vol. 1443, pp. 731–742. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  16. Robson, J.M., Diekert, V.: On quadratic Word Equations. In: Meinel, C., Tison, S. (eds.) STACS 99. LNCS, vol. 1563, pp. 217–226. Springer, Heidelberg (1999)

    Chapter  Google Scholar 

  17. Srivas, M.K., Miller, S.P.: formal Verification of the AAMP5 Microprocesor. In: Hinchey, M.G., Bowen, J.P. (eds.) Application of Formal Methods, International Series in Computer Science, ch.7, pp. 125–180. Prentice-Hall, Hemel Hempstead (1995)

    Google Scholar 

  18. Ukkonen, E.: On-line construction of suffix trees. Algorithmica 14(3), 249–260 (1995)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Alexander Gelbukh Ángel Fernando Kuri Morales

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Alonso, C.L., Alonso, D., Callau, M., Montaña, J.L. (2007). A Word Equation Solver Based on Levensthein Distance. In: Gelbukh, A., Kuri Morales, Á.F. (eds) MICAI 2007: Advances in Artificial Intelligence. MICAI 2007. Lecture Notes in Computer Science(), vol 4827. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-76631-5_30

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-76631-5_30

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-76630-8

  • Online ISBN: 978-3-540-76631-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics