Skip to main content

A Filtering Technique for All Pairs Approximate Parameterized String Matching

  • Conference paper
  • First Online:
Mathematics and Computing (ICMC 2018)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 834))

Included in the following conference series:

  • 605 Accesses

Abstract

The paper deals with all pairs approximate parameterized string matching problem with error threshold k, among two sets of equal length strings. Let \(P=\{p_1, ~ p_2, \ldots , p_{n_P}\} \subseteq \varSigma _P^m\) and \(T=\{t_1, ~ t_2, \ldots , t_{n_T}\}\) \(\subseteq \varSigma _T^m\) be two sets of strings where \(|\varSigma _P|=|\varSigma _T|\). For each \(p_i \in P\), the problem is to find \(t_j \in T\) which is approximately parameterized closest to \(p_i\) under the threshold. The solution has complexity \(O(n_P \, n_T \, m)\). We introduce Parikh vector filtering technique in order to preprocess the given strings and avoid the unwanted paired comparisons. The PV-filtering does not change the asymptotic time complexity but rapidly improves running time for small error threshold as shown by experiments.

A preliminary version of this work is submitted as a technical report in Department of Theoretical Computer Science, Faculty of Information Technology, Czech Technical University in Prague [11]. Shibsankar Das was supported by the fellowship of HERITAGE Erasmus Mundus Partnership project for Ph.D. exchange mobility.

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 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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

Notes

  1. 1.

    These definitions can also be extended with respect to other error models.

References

  1. Apostolico, A., Erdős, P.L., Jüttner, A.: Parameterized searching with mismatches for run-length encoded strings. Theor. Comput. Sci. 454, 23–29 (2012). Formal and Natural Computing Honoring the 80th Birthday of Andrzej Ehrenfeucht

    Article  MathSciNet  Google Scholar 

  2. Apostolico, A., Erdős, P.L., Lewenstein, M.: Parameterized matching with mismatches. J. Discret. Algorithms 5(1), 135–140 (2007)

    Article  MathSciNet  Google Scholar 

  3. Baker, B.S.: A theory of parameterized pattern matching: algorithms and applications. In: Symposium on Theory of Computing, pp. 71–80. ACM (1993)

    Google Scholar 

  4. Baker, B.S.: Parameterized pattern matching: algorithms and applications. J. Comput. Syst. Sci. 52(1), 28–42 (1996)

    Article  MathSciNet  Google Scholar 

  5. Baker, B.S.: Parameterized duplication in strings: algorithms and an application to software maintenance. SIAM J. Comput. 26(5), 1343–1362 (1997)

    Article  MathSciNet  Google Scholar 

  6. Cambouropoulos, E., Crochemore, M., Iliopoulos, C.S., Mouchard, L., Pinzon, Y.J.: Algorithms for computing approximate repetitions in musical sequences. Int. J. Comput. Math. 79(11), 1135–1148 (2002)

    Article  MathSciNet  Google Scholar 

  7. Charras, C., Lecroq, T.: Handbook of Exact String Matching Algorithms. King’s College Publications, London (2004)

    MATH  Google Scholar 

  8. Crochemore, M., Hancart, C., Lecroq, T.: Algorithms on Strings. Cambridge University Press, New York (2007)

    Book  Google Scholar 

  9. Crochemore, M., Rytter, W.: Jewels of Stringology: Text Algorithms. World Scientific Press, Singapore (2002)

    Book  Google Scholar 

  10. Damerau, F.J.: A technique for computer detection and correction of spelling errors. Commun. ACM 7(3), 171–176 (1964)

    Article  Google Scholar 

  11. Das, S., Holub, J., Kapoor, K.: All pairs approximate parameterized string matching. Technical report FIT-2014-01, Department of Theoretical Computer Science, Faculty of Information Technology, Czech Technical University in Prague, ThÇŽkurova 2700/9, 160 00 Praha 6, Czech Republic, March 2014

    Google Scholar 

  12. Das, S., Kapoor, K.: Fine-tuning decomposition theorem for maximum weight bipartite matching. In: Gopal, T.V., Agrawal, M., Li, A., Cooper, S.B. (eds.) TAMC 2014. LNCS, vol. 8402, pp. 312–322. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-06089-7_22

    Chapter  Google Scholar 

  13. Das, S., Kapoor, K.: Weighted approximate parameterized string matching. AKCE Int. J. Graphs Comb. 14(1), 1–12 (2017)

    Article  MathSciNet  Google Scholar 

  14. Faro, S., Lecroq, T.: The exact online string matching problem: a review of the most recent results. ACM Comput. Surv. 45(2), 13:1–13:42 (2013)

    Article  Google Scholar 

  15. Fredman, M.L., Tarjan, R.E.: Fibonacci heaps and their uses in improved network optimization algorithms. J. ACM 34(3), 596–615 (1987)

    Article  MathSciNet  Google Scholar 

  16. Gabow, H.N.: Scaling algorithms for network problems. J. Comput. Syst. Sci. 31(2), 148–168 (1985)

    Article  MathSciNet  Google Scholar 

  17. Gabow, H.N., Tarjan, R.E.: Faster scaling algorithms for network problems. SIAM J. Comput. 18(5), 1013–1036 (1989)

    Article  MathSciNet  Google Scholar 

  18. Hamming, R.W.: Error detecting and error correcting codes. Bell Syst. Tech. J. 29(2), 147–160 (1950)

    Article  MathSciNet  Google Scholar 

  19. Hazay, C., Lewenstein, M., Sokol, D.: Approximate parameterized matching. ACM Trans. Algorithms 3(3) (2007). https://doi.org/10.1145/1273340.1273345

    Article  MathSciNet  Google Scholar 

  20. Kao, M.Y., Lam, T.W., Sung, W.K., Ting, H.F.: A decomposition theorem for maximum weight bipartite matchings. SIAM J. Comput. 31(1), 18–26 (2001)

    Article  MathSciNet  Google Scholar 

  21. Lee, I., Mendivelso, J., Pinzón, Y.J.: \(\delta \gamma \) – parameterized matching. In: Amir, A., Turpin, A., Moffat, A. (eds.) SPIRE 2008. LNCS, vol. 5280, pp. 236–248. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-89097-3_23

    Chapter  Google Scholar 

  22. Levenshtein, V.: Binary codes capable of correcting deletions, insertions and reversals. Sov. Phys. Dokl. 10(8), 707–710 (1966)

    MathSciNet  MATH  Google Scholar 

  23. Navarro, G.: A guided tour to approximate string matching. ACM Comput. Surv. 33, 31–88 (2001)

    Article  Google Scholar 

  24. Parikh, R.J.: On context-free languages. J. ACM 13(4), 570–581 (1966)

    Article  Google Scholar 

  25. Prasad, R., Agarwal, S.: Study of bit-parallel approximate parameterized string matching algorithms. In: Ranka, S., Aluru, S., Buyya, R., Chung, Y.-C., Dua, S., Grama, A., Gupta, S.K.S., Kumar, R., Phoha, V.V. (eds.) IC3 2009. CCIS, vol. 40, pp. 26–36. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-03547-0_4

    Chapter  Google Scholar 

  26. Smyth, B.: Computing Patterns in Strings. Pearson Addison-Wesley, New York (2003)

    Google Scholar 

Download references

Acknowledgement

The author is grateful to Dr. Jan Holub for his helpful comments and suggestions.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shibsankar Das .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Das, S. (2018). A Filtering Technique for All Pairs Approximate Parameterized String Matching. In: Ghosh, D., Giri, D., Mohapatra, R., Savas, E., Sakurai, K., Singh, L. (eds) Mathematics and Computing. ICMC 2018. Communications in Computer and Information Science, vol 834. Springer, Singapore. https://doi.org/10.1007/978-981-13-0023-3_10

Download citation

  • DOI: https://doi.org/10.1007/978-981-13-0023-3_10

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-13-0022-6

  • Online ISBN: 978-981-13-0023-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics