String variables reprsentation in solvers

    公开(公告)号:US10169292B2

    公开(公告)日:2019-01-01

    申请号:US15582698

    申请日:2017-04-30

    IPC分类号: G06F17/11

    摘要: A method and product for solving a Constraint Satisfaction Problem (CSP) having a constraint associated with a string variable, comprising: defining a string variable using a string domain data structure representing a domain of string values for string variables, the structure represents the domain as a Deterministic Finite Automaton (DFA) with no back loops longer than 1 and edges representing characters; defining a constraint for the CSP, wherein the constraint involves the variable and is to be complied with by a solution to the CSP; invoking a CSP solver using the string variable while complying with the constraint, and to invoke operations performed over the domain, wherein the solver: propagates values into the domain of string values, wherein the value propagation reduces the domain size; or selects values from the domain thus reducing the domain to a singleton domain, whereby value propagation to domains of other variables is invoked by the solver.

    Building and reusing solution cache for constraint satisfaction problems

    公开(公告)号:US10657180B2

    公开(公告)日:2020-05-19

    申请号:US14931954

    申请日:2015-11-04

    发明人: Eyal Bin

    IPC分类号: G06N5/00 G06F16/901

    摘要: Technical solutions are described for reusing a solution for a test. An example method includes building, by a processor, a solution cache including a tree structure representative of a plurality of solutions, which stores a key configurable immediate value of a previous solution as a node, the previous solution as a leaf node of the tree, and an edge from the node indicative of a value of the key configurable immediate value at the node. The method includes traversing nodes of the tree structure in the solution cache to identify key configurable immediate values of a previous solution identical to configurable immediate values from the test by identifying edges associated values identical to those from the test. In response to reaching a leaf node of the tree structure, using the solution(s) at the leaf node as a solution of the test.