Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Finding witnesses by peeling

Published: 31 March 2011 Publication History

Abstract

In the k-matches problem, we are given a pattern and a text, and for each text location, the desired output consists of all aligned matching characters if there are k or fewer of them, and any k aligned matching characters if there are more than k of them. This problem is one of several string matching problems that seek not only to find where the pattern matches the text under different “match” definitions, but also to provide witnesses to the match. Other such problems include k-aligned ones, k-witnesses, and k-mismatches. In addition, the solutions to several other string matching problems rely on the efficient solutions of the witness finding problems.
In this article we provide a general method for solving such witness finding problems efficiently. We do so by casting the problem as a generalization of group testing, which we then solve by a process we call peeling. Using this general framework we obtain improved results for all of the problems mentioned. We also show that our method also solves a couple of problems outside the pattern matching domain.

References

[1]
Abrahamson, K. 1987. Generalized string matching. SIAM J. Comput. 16, 6, 1039--1051.
[2]
Aho, A. V., Hopcroft, J. E., and Ullman, J. D. 1974. The Design and Analysis of Computer Algorithms. Addison-Wesley.
[3]
Alon, N., Galil, Z., Margalit, O., and Naor, M. 1992. Witnesses for boolean matrix multiplication and for shortest paths. In Proceedings of the 33rd Symposium on Foundations of Computer Science (FOCS). 417--426.
[4]
Alon, N. and Naor, M. 1996. Derandomization, witnesses for boolean matrix multiplication and construction of perfect hash functions. Algorithmica 16, 434--449.
[5]
Amir, A. and Farach, M. 1995. Efficient 2-dimensional approximate matching of half-rectangular figures. Inf. Comput. 118, 1, 1--11.
[6]
Amir, A., Lewenstein, M., and Porat, E. 2004. Faster algorithms for string matching with k mismatches. J. Algor. 50, 2, 257--275.
[7]
Brito, C., Gafni, E., and Vaya, S. 2004. An information theoretic lower bound for broadcasting in radio networks. In Proceedings of the 21st Symposium on Theoretical Aspects of Computer Science (STACS). 534--546.
[8]
Chlebus, B. S., Gasieniec, L., Gibbons, A., Pelc, A., and Rytter, W. 2002. Deterministic broadcasting in ad hoc radio networks. Distrib. Comput. 15, 1, 27--38.
[9]
Clementi, A. E. F., Monti, A., and Silvestri, R. 2001. Selective families, superimposed codes, and broadcasting on unknown radio networks. In Proceedings of the 13th Symposium on Discrete Algorithms (SODA). 709--718.
[10]
Clifford, P. and Clifford, R. 2007. Simple deterministic wildcard matching. Inf. Process. Lett. 101, 2, 53--54.
[11]
Damaschke, P. 1998. Randomized group testing for mutually obscuring defectives. Inf. Process. Lett. 67, 131--135.
[12]
Dinstein, I., Landau, G. M., and Guy, G. 1991. Parallel (PRAM EREW) algorithms for contour-based 2D shape recognition. Patt. Recogn. 24, 10, 929--942.
[13]
Du, D. Z. and Hwang, F. K. 2000. Combinatorial Group Testing and Its Applications. World Scientific.
[14]
Fischer, M. J. and Paterson, M. S. 1974. String matching and other products. In Proceedings of the 7th SIAM-AMS Complexity of Computation. 113--125.
[15]
Galil, Z. and Giancarlo, R. 1986. Improved string matching with k mismatches. SIGACT News 17, 4, 52--54.
[16]
Hoeffding, W. 1963. Probability inequalities for sums of bounded random variables. J. Amer. Statist. Assoc. 58, 13--30.
[17]
Indyk, P. 1999. Interpolation of symmetric functions and a new type of combinatorial design. In Proceedings of the 31st Symposium on Theory of Computing (STOC). 736--740.
[18]
Indyk, P. 2002. Explicit constructions of selectors and related combinatorial structures, with applications. In Proceedings of the 13th Symposium on Discrete Algorithms (SODA). 697--704.
[19]
Knuth, D. E., Morris, J. H., and Pratt, V. R. 1977. Fast pattern matching in strings. SIAM J. Comput. 6, 323--350.
[20]
Komlós, J. and Greenberg, A. G. 1985. An asymptotically nonadaptive algorithm for conflict resolution in multiple-access channels. IEEE Trans. Inf. Theory 31, 2, 302--306.
[21]
Landau, G. M. and Vishkin, U. 1986. Efficient string matching with k mismatches. Theor. Comput. Sci. 43, 239--249.
[22]
Muthukrishnan, S. 1995. New results and open problems related to non-standard stringology. In Proceedings of the 6th Symposium on Combinatorial Pattern Matching (CPM). 298--317.
[23]
Seidel, R. 1995. On the all-pairs-shortest-path problem in unweighted undirected graphs. J. Comput. Syst. Sci. 51, 400--403.
[24]
Ta-Shma, A., Umans, C., and Zuckerman, D. 2001. Loss-Less condensers, unbalanced expanders, and extractors. In Proceedings of the 33rd Symposium on the Theory of Computing (STOC). 143--152.

Cited By

View all
  • (2023)Faster algorithms for k-subset sum and variationsJournal of Combinatorial Optimization10.1007/s10878-022-00928-045:1Online publication date: 1-Jan-2023
  • (2022)Faster Algorithms for $$k\text {-}\textsc {Subset}\,\textsc {Sum}$$ and VariationsFrontiers of Algorithmics10.1007/978-3-030-97099-4_3(37-52)Online publication date: 3-Mar-2022
  • (2019)Faster Pseudopolynomial Time Algorithms for Subset SumACM Transactions on Algorithms10.1145/332986315:3(1-20)Online publication date: 12-Jun-2019
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Algorithms
ACM Transactions on Algorithms  Volume 7, Issue 2
March 2011
284 pages
ISSN:1549-6325
EISSN:1549-6333
DOI:10.1145/1921659
Issue’s Table of Contents
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 ACM 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: 31 March 2011
Accepted: 01 March 2010
Revised: 01 March 2010
Received: 01 April 2008
Published in TALG Volume 7, Issue 2

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Shortest paths
  2. witness computation

Qualifiers

  • Research-article
  • Research
  • Refereed

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)4
  • Downloads (Last 6 weeks)1
Reflects downloads up to 16 Oct 2024

Other Metrics

Citations

Cited By

View all
  • (2023)Faster algorithms for k-subset sum and variationsJournal of Combinatorial Optimization10.1007/s10878-022-00928-045:1Online publication date: 1-Jan-2023
  • (2022)Faster Algorithms for $$k\text {-}\textsc {Subset}\,\textsc {Sum}$$ and VariationsFrontiers of Algorithmics10.1007/978-3-030-97099-4_3(37-52)Online publication date: 3-Mar-2022
  • (2019)Faster Pseudopolynomial Time Algorithms for Subset SumACM Transactions on Algorithms10.1145/332986315:3(1-20)Online publication date: 12-Jun-2019
  • (2017)A faster pseudopolynomial time algorithm for subset sumProceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3039686.3039754(1062-1072)Online publication date: 16-Jan-2017
  • (2014)Two-Dimensional Parameterized MatchingACM Transactions on Algorithms10.1145/265022011:2(1-30)Online publication date: 30-Oct-2014
  • (2014)Listing TrianglesAutomata, Languages, and Programming10.1007/978-3-662-43948-7_19(223-234)Online publication date: 2014

View Options

Get Access

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media