System, method and device for solving problems in NP without hyper-polynomial cost
OwnerClayton Gillespieinventor
Life of this patent
Estimating the term…
Abstract
System, method and device for reducing the time required for solution of problems in the NP complexity class to polynomial time. Within satisfaction problems or problems reducible to a satisfaction problem, the invention tracks the sources of implications and identifies proximal parameterizations of conditional contradictions and subsequently avoids those contradictory conditions. The action is completed in less time than is incurred by existing methods and thus provides a performance improvement to the devices, software, or processes which address such problems.
Claims22
In a computer-implemented method for solving a problem in NP, an improvement comprising a process which identifies proximal parameterizations of conditional contradictions wherein the proximal parameterizations of conditional contradictions are according to proximity and the proximity is founded on the extended clustering of adjacent pairs of constraints wherein a first constraint asserts a term which negates possible values of a variable shared by a second constraint, and no disagreement over possible values exists between the first constraint and the second constraint for any other variable, and the proximal parameterizations of the conditional contradictions are limited to teardrop values.
A method for solving a problem in NP, comprising the steps of:
- converting a given problem definition into an expression composed of one or more constraints;
- selecting assumed values for variables of the expression to provide selected assumptions;
- tracking a set of paths of implications resulting from the selected assumptions by recording or extracting any of causes, reasons, or common reasons, and by recording or extracting prevailing implications;
- resolving conditional contradictions by identifying a proximal parameterization of the conditional contradictions to provide a parameterization, wherein the proximal parameterization of the conditional contradictions are limited to teardrop values;
- treating the parameterization effectively as a constraint, and then deselecting one or more assumptions that comprise the conditional contradiction;
- and
- iteratively applying the selecting, tracking, and resolving steps until either all variables have determined values and no contradictions are apparent or else an unconditional contradiction is found.
A computer-implemented method for solving a satisfaction problem, comprising the steps of:
- converting a given problem definition into an expression composed of one or more logical constraints;
- selecting assumed values for variables of the expression;
- tracking a set of paths of implications resulting from the selected assumptions by recording or extracting any of causes, reasons, or common reasons, and by recording or extracting prevailing implications;
- resolving conditional contradictions by identifying a proximal parameterization of the conditional contradictions, treating the proximal parameterization effectively as a constraint, and then deselecting one or more assumptions that comprise the conditional contradiction, wherein the proximal parameterizations of conditional contradictions are according to proximity and the proximity is founded on extended clustering of adjacent pairs of the constraints;
- and
- iteratively applying the selecting, tracking, and resolving steps until either all variables have determined values and no contradictions are apparent or else an unconditional contradiction is found.
A computer program product comprising:
- a computer having computer readable code embodied therein for solving a problem, the computer comprising:
- a module in said computer for converting an existing problem representation into a computer-readable logical expression;
- a first data structure in said computer for returning a verifiable satisfiability determination and relevant output terms;
- a second data structure in said computer for accepting an input expression;
- a third data structure in said computer, wherein said third data structure has an implication pool which determines which enqueued processing request is next to be processed and a de-implication pool which determines which enqueued processing request is to be removed;
- a fourth data structure in said computer, known as an inference database, for storing inferences and for recording propagation of interactions between inferences;
- a module for converting the input expression into one or more inferences and storing them in the inference database;
- a module for recording assumptions, determining types of inference interactions, propagating effects of inference interactions through the inference database;
- and
- a module in said computer for minimizing a set of inferences involved in the conditional contradiction of a term, and precipitating an inference as a representation of that set, the precipitated inference being a constraint representing the precipitant of a teardrop and values of those terms in teardrop constraints that are negated by assertions resulting from assumptions.
A device which receives a set of signals corresponding to values of a set of variables, and either receives another set of signals corresponding to a set of constraints or operates on a memory bank containing representations of constraints or embeds a set of constraints in its structure, and applies a process of identification, and returns a signal or a set of signals;
- the device comprising circuits or other mechanisms, the circuits or other mechanisms identifying a proximal parameterization of a contradiction in the set of constraints wherein the proximal parameterization of a contradiction in the set of constraints is according to proximity and the proximity is founded on extended clustering of adjacent pairs of the constraints.
A method for improving time requirement of solving of an expression by avoiding conditional contradictions arising during the solving of the expression, the expression being formed of constraints, each constraint including one or more variables, the solving of the expression including determination of whether the expression is satisfiable by a set of variable values or unsatisfiable when there are no sets of variable values that satisfy the expression, the method being implemented on a computer, the method comprising:
- receiving, as part of the expression being input to the computer, unconditional assertions regarding values of zero or more of the variables wherein said unconditional assertions are not forced by assumptions and have an empty cause;
- making assumptions regarding values of one or more of the variables;
- making assertions of terms regarding values for other ones of the variables, the assertions being made by the constraints responsive to the unconditional assertions and the assumptions, a constraint asserting a term being an asserting inference;
- setting values for the variables as determined values responsive to the unconditional assertions, the assumptions or the assertions, the variables not having a determined value being free variables;
- repeating a process of implication as long as a count of the free variables is not zero, the process of implication being an iteration of the making of assumptions, the making of assertions, and the setting of values for the variables as determined;
- maintaining first data for each inference by keeping track of cause, reason and common reason of each asserting inference;
- determining whether a contradiction is a conditional contradiction, responsive to the first data, the conditional contradiction being conditioned on the assumptions and arising when the determined values for a variable are contradictory and result in the variable becoming an over-determined variable;
- precipitating an inference from the conditional contradiction to arrive at a precipitated inference, the precipitated inference being a constraint in addition to the constraints of the expression and representing the precipitant of a teardrop and values of those terms in teardrop constraints that are negated by assertions resulting from assumptions other than the latest assumption;
- avoiding and de-asserting assumptions that do not satisfy the precipitated inference to prevent the process of implication from reaching a dead end resulting from the conditional contradiction from which the precipitated inference is precipitated, for the precipitated inference to be satisfied, value of at least one variable of variables in the precipitated inference must not be negated;
- reporting that the expression is satisfied if the count of the free variables is zero and all of the variables of the expression have a determined value and every inference is satisfied;
- and
- reporting that the expression is unsatisfiable if an unconditional contradiction is encountered regarding one of the variables of the expression, an unconditional contradiction being a contradiction not resulting from the assumptions.
Dependencies are inferred from the claim text.