Back to Search Start Over

Dashed Strings and the Replace(-all) Constraint

Authors :
Amadini, R
Gange, G
Stuckey, PJ
Amadini, R
Gange, G
Stuckey, PJ
Source :
International Conference on Principles and Practice of Constraint Programming
Publication Year :
2020

Abstract

Dashed strings are a formalism for modelling the domain of string variables when solving combinatorial problems with string constraints. In this work we focus on (variants of) the Replace constraint, which aims to find the first occurrence of a query string in a target string, and (possibly) replaces it with a new string. We define a Replace propagator which can also handle Replace-Last (for replacing the last occurrence) and Replace-All (for replacing all the occurrences). Empirical results clearly show that string constraint solving can draw great benefit from this approach.

Details

Database :
OAIster
Journal :
International Conference on Principles and Practice of Constraint Programming
Publication Type :
Electronic Resource
Accession number :
edsoai.on1315721978
Document Type :
Electronic Resource