@inproceedings{7ff9c23106a34c158168fff1d23fcdaa,
title = "On Distances Between Words with Parameters",
abstract = "The edit distance between parameterized words is a generalization of the classical edit distance where it is allowed to map particular letters of the first word, called parameters, to parameters of the second word before computing the distance. This problem has been introduced in particular for detection of code duplication, and the notion of words with parameters has also been used with different semantics in other fields. The complexity of several variants of edit distances between parameterized words has been studied, however, the complexity of the most natural one, the Levenshtein distance, remained open. In this paper, we solve this open question and close the exhaustive analysis of all cases of parameterized word matching and function matching, showing that these problems are np-complete. To this aim, we also provide a comparison of the different problems, exhibiting several equivalences between them. We also provide and implement a MaxSAT encoding of the problem, as well as a simple FPT algorithm in the alphabet size, and study their efficiency on real data in the context of theater play structure comparison.",
keywords = "Levenshtein, MAX-SAT, NP-completeness, String matching, edit distance, instantiable words, parameter words, parameterized matching, parameterized words",
author = "Pierre Bourhis and Aaron Boussidan and Philippe Gambette",
note = "Publisher Copyright: {\textcopyright} 2023 Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing. All rights reserved.; 34th Annual Symposium on Combinatorial Pattern Matching, CPM 2023 ; Conference date: 26-06-2023 Through 28-06-2023",
year = "2023",
month = jun,
day = "1",
doi = "10.4230/LIPIcs.CPM.2023.6",
language = "English",
series = "Leibniz International Proceedings in Informatics, LIPIcs",
publisher = "Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing",
editor = "Laurent Bulteau and Zsuzsanna Liptak",
booktitle = "34th Annual Symposium on Combinatorial Pattern Matching, CPM 2023",
}