Back to Search Start Over

Two-dimensional pattern matching against local and regular-like picture languages.

Authors :
Mráz, František
Průša, Daniel
Wehar, Michael
Source :
Theoretical Computer Science. May2021, Vol. 870, p137-152. 16p.
Publication Year :
2021

Abstract

Given a two-dimensional array of symbols and a picture language over a finite alphabet, we investigate how to find rectangular subarrays that belong to the picture language. Two-dimensional pattern matching problems can be formulated by interpreting subarrays as matches and picture languages as patterns. We formulate four particular problems – finding maximum, minimum, any or all match(es) – and describe algorithms solving the problems for basic classes of picture languages, which include local picture languages and picture languages accepted by various types of deterministic two-dimensional finite automata such as four-way, three-way and two-way automata, on-line tessellation automata, and returning finite automata. We also prove that the pattern matching problems cannot be solved for the class of local picture languages in time linear in the input area unless the well known problem of triangle finding in a graph is solvable in quadratic time. This shows a fundamental difference between the complexity of one-dimensional and two-dimensional pattern matching. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
03043975
Volume :
870
Database :
Academic Search Index
Journal :
Theoretical Computer Science
Publication Type :
Academic Journal
Accession number :
150291711
Full Text :
https://doi.org/10.1016/j.tcs.2020.12.026