Skip to main content

Improved Algorithms for the Boxed-Mesh Permutation Pattern Matching Problem

  • Conference paper
  • First Online:
Book cover Combinatorial Pattern Matching (CPM 2015)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9133))

Included in the following conference series:

  • 850 Accesses

Abstract

Recently, various types of permutation patterns such as mesh patterns, boxed-mesh patterns, and consecutive patterns, have been studied where relative order between characters is considered rather than characters themselves. Among these, we focus on boxed-mesh patterns and study the problem of finding all boxed-subsequences of a text \(T\) of length \(n\) whose relative order between characters is the same as that of a pattern \(P\) of length \(m\). Recently, it is known that this problem can be solved in \(O(n^3)\) time. In this paper, we first propose an \(O(n^2 m)\)-time algorithm for the problem based on interesting properties of boxed subsequences. Then, we give a further improved algorithm which runs in \(O(n^2 \log m)\) time using preprocessed information on \(P\) and order-statistics trees.

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

References

  1. Bose, P., Buss, J.F., Lubiw, A.: Pattern matching for permutations. Inf. Process. Lett. 65, 277–283 (1998)

    Article  MathSciNet  Google Scholar 

  2. Bruner, M.L., Lackner, M.: The computational landscape of permutation patterns. arXiv preprint arXiv:1301.0340 (2013)

  3. Brändén, P., Claesson, A.: Mesh patterns and the expansion of permutation statistics as sums of permutation patterns. Electron. J. Combin 18, P5 (2011)

    Google Scholar 

  4. Avgustinovich, S., Kitaev, S., Valyuzhenich, A.: Avoidance of boxed mesh patterns on permutations. Discrete Appl. Math. 161, 43–51 (2013)

    Article  MATH  MathSciNet  Google Scholar 

  5. Elizalde, S., Noy, M.: Consecutive patterns in permutations. Adv. Appl. Math. 30, 110–125 (2003)

    Article  MATH  MathSciNet  Google Scholar 

  6. Kubica, M., Kulczyński, T., Radoszewski, J., Rytter, W., Waleń, T.: A linear time algorithm for consecutive permutation pattern matching. Inf. Process. Lett. 113, 430–433 (2013)

    Article  MATH  Google Scholar 

  7. Kim, J., Eades, P., Fleischer, R., Hong, S.H., Iliopoulos, C.S., Park, K., Puglisi, S.J., Tokuyama, T.: Order-preserving matching. Theoret. Comput. Sci. 525, 68–79 (2014)

    Article  MATH  MathSciNet  Google Scholar 

  8. Cho, S., Na, J.C., Park, K., Sim, J.S.: A fast algorithm for order-preserving pattern matching. Inf. Process. Lett. 115, 397–402 (2015)

    Article  MATH  MathSciNet  Google Scholar 

  9. Crochemore, M., Iliopoulos, C.S., Kociumaka, T., Kubica, M., Langiu, A., Pissis, S.P., Radoszewski, J., Rytter, W., Waleń, T.: Order-preserving incomplete suffix trees and order-preserving indexes. In: Kurland, O., Lewenstein, M., Porat, E. (eds.) SPIRE 2013. LNCS, vol. 8214, pp. 84–95. Springer, Heidelberg (2013)

    Chapter  Google Scholar 

  10. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C., et al.: Introduction to Algorithms. MIT press, Cambridge (2001)

    Google Scholar 

  11. Kim, J., Amir, A., Na, J.C., Park, K., Sim, J.S.: On representations of ternary order relations in numeric strings. In: Proceedings of the 2nd International Conference on Algorithms for Big Data, pp. 46–52, Palermo, 07–09 April (2014)

    Google Scholar 

Download references

Acknowledgements

Joong Chae Na was supported by Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Science, ICT&Future Planning (2014R1A1A1004901), and by the ICT R&D program of MSIP/IITP [10038768, The Development of Supercomputing System for the Genome Analysis]. Jeong Seop Sim was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIP) (No. 2012R1A2A2A01014892 &2014R1A2A1A11050337), and by the ICT R&D program of MSIP/IITP [10041971, Development of Power Efficient High-Performance Multimedia Contents Service Technology using Context-Adapting Distributed Transcoding].

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Joong Chae Na .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Cho, S., Na, J.C., Sim, J.S. (2015). Improved Algorithms for the Boxed-Mesh Permutation Pattern Matching Problem. In: Cicalese, F., Porat, E., Vaccaro, U. (eds) Combinatorial Pattern Matching. CPM 2015. Lecture Notes in Computer Science(), vol 9133. Springer, Cham. https://doi.org/10.1007/978-3-319-19929-0_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-19929-0_12

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-19928-3

  • Online ISBN: 978-3-319-19929-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics