arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0612068cs.AI
收藏

通过常规字符串约束进行交互式配置

Interactive Configuration by Regular String Constraints

Esben Rune Hansen, Henrik Reif Andersen

摘要:

通过构造二元决策图(BDD),可以构造一个完整的、无回溯的、能够计算任意配置状态下有效域的产品配置器。尽管在最坏的情况下,BDD的大小是变量数量的指数,但BDD在实践中被证明工作得很好。目前基于BDD的技术只能处理小的有限域的交互配置。在本文中,我们扩展的方法来处理字符串变量约束的正则表达式。允许用户通过在字符串末尾添加字母来更改字符串。我们展示了如何使一个数据结构,可以执行快速有效的域计算给定的字符串变量的集合上的一些分配。我们首先展示如何通过使用一个大型DFA来实现这一点。由于这种方法是太占用空间的实际使用,我们构建了一个数据结构,模拟大型DFA,在大多数实际情况下,更节省空间。作为一个例子,一个配置问题的$n$字符串变量只有一个解决方案,其中每个字符串变量被分配给一个值的长度$k$,前一个结构将使用$Ω(k^n)$空间,而后者只需要$O(kn)$。我们还展示了这个框架如何很容易地可以与最近的BDD技术相结合,允许在配置问题中的布尔,整数和字符串变量。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑