{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:38:14Z","timestamp":1787337494064,"version":"build-2736575974"},"reference-count":26,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"2","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[1999,1]]},"abstract":"<jats:p>\n                    Algorithms with optimal expected running time are presented for searching the occurrences of a two-dimensional mX m pattern P in a two-dimensional n X n text T over an alphabet of size c. The algorithms are based on placing in the text a static grid of test points, determined only by n, m, and c (not dynamically by earlier test results). Using test strings read from the test points the algorithms eliminate as many potential occurrences of P as possible. The remaining potential occurrences are separately checked for actual occurrences. A suitable choice of the test point set leads to algorithms with expected running time O(n\n                    <jats:sup>2<\/jats:sup>\n                    log\n                    <jats:sub>c<\/jats:sub>\n                    m\n                    <jats:sup>2<\/jats:sup>\n                    \/m\n                    <jats:sup>2<\/jats:sup>\n                    ) using the uniform Bernoulli model of randomness. This is shown to be optimal by a generalization of a one-dimensional lower bound result by Yao. Experimental results show that the algorithms are efficient in practice, too. The method is also generalized for the k mismatches problem. The resulting algorithm has expected running time O(kn\n                    <jats:sup>2<\/jats:sup>\n                    log\n                    <jats:sub>c<\/jats:sub>\n                    m\n                    <jats:sup>2<\/jats:sup>\n                    \/m\n                    <jats:sup>2<\/jats:sup>\n                    ), provided that $k\\leq(m\\lfloor m\/\\lceil\\log_c m^2\\rceil\\rfloor-1)\/2$.\\ All algorithms need preprocessing of P which takes time and space O(m\n                    <jats:sup>2<\/jats:sup>\n                    ). The text processing can be done on-line, using a rather small window. The algorithms easily generalize to d-dimensional matching for any d.\n                  <\/jats:p>","DOI":"10.1137\/s0097539794275872","type":"journal-article","created":{"date-parts":[[2003,6,11]],"date-time":"2003-06-11T11:12:06Z","timestamp":1055329926000},"page":"571-589","source":"Crossref","is-referenced-by-count":9,"title":["Two- and Higher-Dimensional Pattern Matching in Optimal Expected Time"],"prefix":"10.1137","volume":"29","author":[{"given":"Juha","family":"K\u00e4rkk\u00e4inen","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Esko","family":"Ukkonen","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2006,7,27]]},"reference":[{"key":"R1","doi-asserted-by":"publisher","DOI":"10.1145\/360825.360855"},{"key":"R2","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539792226321"},{"key":"R3","unstructured":"Amihood Amir, Martin Farach, Efficient 2\u2010dimensional approximate matching of nonrectangular figures, ACM, New York, 1991, 212\u20132231095836"},{"key":"R4","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(91)90318-V"},{"key":"R5","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(93)90250-D"},{"key":"R6","doi-asserted-by":"publisher","DOI":"10.1137\/0207043"},{"key":"R7","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(77)90017-5"},{"key":"R8","doi-asserted-by":"publisher","unstructured":"Robert Boyer, J. Moore, A fast string searching algorithm, IEEE Comput. Soc. Press, Los Alamitos, CA, 1994, 36\u20134610.1145\/359842.3598591281393","DOI":"10.1145\/359842.359859"},{"key":"R9","doi-asserted-by":"crossref","unstructured":"W. I. Chang and E. L. Lawler,\n                      Approximate string matching in sublinear expected time\n                      , in Proceedings of the 31st IEEE Symposium on Foundations of Computer Science, IEEE Computer Society Press, 1990, pp. 116\u2013124.","DOI":"10.1109\/FSCS.1990.89530"},{"key":"R10","doi-asserted-by":"crossref","unstructured":"M. Crochemore, L. Ga\u00b8sieniec, W. Plandowski, and W. Rytter,\n                      Two\u2010dimensional pattern matching in linear time and small space\n                      , in Proceedings of the 12th Symposium on Theoretical Aspects of Computer Science, vol. 900 of LNCS, Springer, New York, 1995, pp. 181\u2013192.","DOI":"10.1007\/3-540-59042-0_72"},{"key":"R11","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(93)90020-A"},{"key":"R12","volume-title":"Text algorithms","author":"Crochemore Maxime","year":"1994"},{"key":"R13","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539792241941"},{"key":"R14","unstructured":"G. H. Gonnet,\n                      Efficient searching of text and pictures\n                      (\n                      extended abstract\n                      ,), Technical Report OED\u201088\u201002, Centre for the New OED, University of Waterloo, Waterloo, Ontario, Canada, 1988."},{"key":"R15","doi-asserted-by":"publisher","DOI":"10.1002\/spe.4380211105"},{"key":"R16","doi-asserted-by":"publisher","DOI":"10.1147\/rd.312.0249"},{"key":"R17","doi-asserted-by":"crossref","unstructured":"J. Y. Kim and J. Shawe\u2010Taylor,\n                      Fast expected two dimensional pattern matching\n                      , in Proceedings of the 1st South American Workshop on String Processing, 1993, pp. 77\u201392.","DOI":"10.1016\/0304-3975(92)90138-6"},{"key":"R18","doi-asserted-by":"publisher","DOI":"10.1137\/0206024"},{"key":"R19","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0255(87)90037-5"},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(97)00277-6"},{"key":"R21","doi-asserted-by":"publisher","DOI":"10.1016\/0031-3203(91)90114-K"},{"key":"R22","unstructured":"M. R\u00e9gnier and L. Rostami,\n                      A simple (but optimal) 2d\u2010witness algorithm\n                      , in Proceedings of the 3rd South American Workshop on String Processing, Carleton University Press, 1996, pp. 243\u2013256."},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1016\/0167-8655(96)00055-4"},{"key":"R24","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(92)90143-4"},{"key":"R25","doi-asserted-by":"publisher","DOI":"10.1137\/0208029"},{"key":"R26","doi-asserted-by":"publisher","DOI":"10.1145\/66451.66459"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/S0097539794275872","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:13:42Z","timestamp":1787336022000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/S0097539794275872"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[1999,1]]},"references-count":26,"journal-issue":{"issue":"2","published-print":{"date-parts":[[1999,1]]}},"alternative-id":["10.1137\/S0097539794275872"],"URL":"https:\/\/doi.org\/10.1137\/s0097539794275872","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[1999,1]]}}}