The problem of matching a query string to a directed graph, whose vertices are labeled by strings, has application in different fields. In this paper we present results on the complexity of the approximate matching problem, where edit operations are symbol substitutions and are allowed only to the graph labels or both to the graph labels and the query string. We show that deciding if there exists a path in a graph that represents a query string with edit operations to vertex labels is an NP-complete problem and it is fixed-parameter tractable when parameterized by the length of the input string. We show that the variants of approximate string matching we consider are not fixed-parameter tractable, when the parameter is (1) the length of the query string and (2) the number of edit operations. Moreover, we provide inapproximability results for these variants of the of approximate string matching problem.

Dondi, R., Mauri, G., Zoppis, I. (2022). On the complexity of approximately matching a string to a directed graph. INFORMATION AND COMPUTATION, 288(October 2022), 1-12 [10.1016/j.ic.2021.104748].

On the complexity of approximately matching a string to a directed graph

Mauri G.
;
Zoppis I.
2022

Abstract

The problem of matching a query string to a directed graph, whose vertices are labeled by strings, has application in different fields. In this paper we present results on the complexity of the approximate matching problem, where edit operations are symbol substitutions and are allowed only to the graph labels or both to the graph labels and the query string. We show that deciding if there exists a path in a graph that represents a query string with edit operations to vertex labels is an NP-complete problem and it is fixed-parameter tractable when parameterized by the length of the input string. We show that the variants of approximate string matching we consider are not fixed-parameter tractable, when the parameter is (1) the length of the query string and (2) the number of edit operations. Moreover, we provide inapproximability results for these variants of the of approximate string matching problem.
Articolo in rivista - Articolo scientifico
approximate string matching
English
28-apr-2021
2022
288
October 2022
1
12
104748
none
Dondi, R., Mauri, G., Zoppis, I. (2022). On the complexity of approximately matching a string to a directed graph. INFORMATION AND COMPUTATION, 288(October 2022), 1-12 [10.1016/j.ic.2021.104748].
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/318816
Citazioni
  • Scopus 2
  • ???jsp.display-item.citation.isi??? 2
Social impact