[Paper Review] Interactive Configuration by Regular String Constraints
This paper presents a novel data structure that enables efficient, real-time configuration of systems with string variables constrained by regular expressions, using a space-optimized simulation of a large Deterministic Finite Automaton (DFA). It achieves exponential space savings—reducing storage from Ω(kⁿ) to O(kn) for n string variables of length k—while supporting interactive updates like appending characters or completing strings, and seamlessly integrates with existing BDD-based constraint solvers for mixed-type variables.
A product configurator which is complete, backtrack free and able to compute the valid domains at any state of the configuration can be constructed by building a Binary Decision Diagram (BDD). Despite the fact that the size of the BDD is exponential in the number of variables in the worst case, BDDs have proved to work very well in practice. Current BDD-based techniques can only handle interactive configuration with small finite domains. In this paper we extend the approach to handle string variables constrained by regular expressions. The user is allowed to change the strings by adding letters at the end of the string. We show how to make a data structure that can perform fast valid domain computations given some assignment on the set of string variables. We first show how to do this by using one large DFA. Since this approach is too space consuming to be of practical use, we construct a data structure that simulates the large DFA and in most practical cases are much more space efficient. As an example a configuration problem on $n$ string variables with only one solution in which each string variable is assigned to a value of length of $k$ the former structure will use $Ω(k^n)$ space whereas the latter only need $O(kn)$. We also show how this framework easily can be combined with the recent BDD techniques to allow both boolean, integer and string variables in the configuration problem.
Motivation & Objective
- To enable real-time, backtrack-free configuration of systems with string-valued variables constrained by regular expressions.
- To overcome the exponential space overhead of monolithic DFAs when modeling string constraints in configuration problems.
- To support interactive user input, including incremental string entry and completion, with fast valid domain recomputation.
- To integrate string constraints with existing BDD-based configuration systems that handle boolean and integer variables.
- To provide a practical, scalable alternative to naive DFA construction for complex configuration problems involving strings.
Proposed method
- Construct a large DFA that recognizes all valid assignments to string variables based on regular expression constraints.
- Design a compact data structure that simulates the large DFA's behavior without storing all its states, using shared state representations.
- Use incremental updates: when a user appends a character to a string variable, update the state of the simulation efficiently.
- Support string completion by treating the end-of-line (eol) character as a terminal state, preventing further input.
- Apply a heuristic to merge equivalent match conditions (e.g., match(x,α) ∨ match(x,β) → match(x,α∪β)) to reduce state explosion.
- Integrate the string constraint engine with BDD-based systems by treating the DFA simulation as a black-box constraint evaluator.
Experimental results
Research questions
- RQ1Can a compact data structure simulate a large DFA for string constraints in interactive configuration without storing all states?
- RQ2How can incremental string input (appending characters) be handled efficiently while maintaining correct valid domain computation?
- RQ3What is the space complexity of the proposed simulation compared to the monolithic DFA, especially in worst-case scenarios?
- RQ4Can the framework be extended to support both string variables and existing BDD-based variables (boolean, integer) in a unified configuration system?
- RQ5How can the input language for specifying constraints be made more user-friendly while preserving efficient execution?
Key findings
- The proposed simulation data structure reduces space complexity from Ω(kⁿ) for a monolithic DFA to O(kn) in the worst case for n string variables of length k.
- The method supports real-time valid domain computation under 250ms, satisfying interactive configuration requirements.
- The framework successfully integrates with BDD-based systems, enabling mixed-variable configuration with boolean, integer, and string variables.
- The heuristic of merging regular expressions (e.g., α ∪ β) leads to significant space and state reduction in practice.
- Support for string completion via the eol character allows modeling of user actions like pressing 'Enter' or tabbing out of a field.
- The approach maintains correctness and completeness, ensuring no valid configuration is missed during interactive sessions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.