Cargando…
Complexity of Searching for 2 by 2 Submatrices in Boolean Matrices
We study the problem of finding a given [Formula: see text] matrix as a submatrix of a given Boolean matrix. Three variants are considered: search for a matching submatrix of any area, of minimum area, or of maximum area. The problem relates to 2D pattern matching, and to fields such as data mining,...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7247910/ http://dx.doi.org/10.1007/978-3-030-48516-0_20 |
_version_ | 1783538262265036800 |
---|---|
author | Průša, Daniel Wehar, Michael |
author_facet | Průša, Daniel Wehar, Michael |
author_sort | Průša, Daniel |
collection | PubMed |
description | We study the problem of finding a given [Formula: see text] matrix as a submatrix of a given Boolean matrix. Three variants are considered: search for a matching submatrix of any area, of minimum area, or of maximum area. The problem relates to 2D pattern matching, and to fields such as data mining, where the search for submatrices plays an important role. Besides these connections, the problem itself is very natural and its investigation helps to demonstrate differences between search tasks in one-dimensional and multidimensional topologies. Our results reveal that the problem variants are of different complexities. First, we show that given an [Formula: see text] Boolean matrix, the any variant can be solved in [Formula: see text] time for any given [Formula: see text] matrix, but requires various strategies for different [Formula: see text] matrices. This contrasts with the complexity of the task over matrices with entries from the set [Formula: see text], where the problem is Triangle Finding-hard and hence no algorithm with similar running time is known for it. Then, we show that the minimization variant in the case of Boolean matrices can also be solved in [Formula: see text] time. Finally, in contrast, we prove Triangle Finding-hardness for the maximization variant and show that there is a rectangular matrix multiplication-based algorithm solving it in [Formula: see text] time. |
format | Online Article Text |
id | pubmed-7247910 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
record_format | MEDLINE/PubMed |
spelling | pubmed-72479102020-05-26 Complexity of Searching for 2 by 2 Submatrices in Boolean Matrices Průša, Daniel Wehar, Michael Developments in Language Theory Article We study the problem of finding a given [Formula: see text] matrix as a submatrix of a given Boolean matrix. Three variants are considered: search for a matching submatrix of any area, of minimum area, or of maximum area. The problem relates to 2D pattern matching, and to fields such as data mining, where the search for submatrices plays an important role. Besides these connections, the problem itself is very natural and its investigation helps to demonstrate differences between search tasks in one-dimensional and multidimensional topologies. Our results reveal that the problem variants are of different complexities. First, we show that given an [Formula: see text] Boolean matrix, the any variant can be solved in [Formula: see text] time for any given [Formula: see text] matrix, but requires various strategies for different [Formula: see text] matrices. This contrasts with the complexity of the task over matrices with entries from the set [Formula: see text], where the problem is Triangle Finding-hard and hence no algorithm with similar running time is known for it. Then, we show that the minimization variant in the case of Boolean matrices can also be solved in [Formula: see text] time. Finally, in contrast, we prove Triangle Finding-hardness for the maximization variant and show that there is a rectangular matrix multiplication-based algorithm solving it in [Formula: see text] time. 2020-05-26 /pmc/articles/PMC7247910/ http://dx.doi.org/10.1007/978-3-030-48516-0_20 Text en © Springer Nature Switzerland AG 2020 This article is made available via the PMC Open Access Subset for unrestricted research re-use and secondary analysis in any form or by any means with acknowledgement of the original source. These permissions are granted for the duration of the World Health Organization (WHO) declaration of COVID-19 as a global pandemic. |
spellingShingle | Article Průša, Daniel Wehar, Michael Complexity of Searching for 2 by 2 Submatrices in Boolean Matrices |
title | Complexity of Searching for 2 by 2 Submatrices in Boolean Matrices |
title_full | Complexity of Searching for 2 by 2 Submatrices in Boolean Matrices |
title_fullStr | Complexity of Searching for 2 by 2 Submatrices in Boolean Matrices |
title_full_unstemmed | Complexity of Searching for 2 by 2 Submatrices in Boolean Matrices |
title_short | Complexity of Searching for 2 by 2 Submatrices in Boolean Matrices |
title_sort | complexity of searching for 2 by 2 submatrices in boolean matrices |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7247910/ http://dx.doi.org/10.1007/978-3-030-48516-0_20 |
work_keys_str_mv | AT prusadaniel complexityofsearchingfor2by2submatricesinbooleanmatrices AT weharmichael complexityofsearchingfor2by2submatricesinbooleanmatrices |