WalkSAT
   HOME

TheInfoList



OR:

In
computer science Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, GSAT and WalkSAT are local search
algorithm In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
s to solve Boolean satisfiability problems. Both algorithms work on
formulae In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwe ...
in
Boolean logic In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
that are in, or have been converted into
conjunctive normal form In Boolean algebra, a formula is in conjunctive normal form (CNF) or clausal normal form if it is a conjunction of one or more clauses, where a clause is a disjunction of literals; otherwise put, it is a product of sums or an AND of ORs. In au ...
. They start by assigning a random value to each variable in the formula. If the assignment satisfies all
clauses In language, a clause is a Constituent (linguistics), constituent or Phrase (grammar), phrase that comprises a semantic predicand (expressed or not) and a semantic Predicate (grammar), predicate. A typical clause consists of a subject (grammar), ...
, the algorithm terminates, returning the assignment. Otherwise, a variable is flipped and the above is then repeated until all the clauses are satisfied. WalkSAT and GSAT differ in the methods used to select which variable to flip. * GSAT makes the change which minimizes the number of unsatisfied clauses in the new assignment, or with some probability picks a variable at random. * WalkSAT first picks a clause which is unsatisfied by the current assignment, then flips a variable within that clause. The clause is picked at random among unsatisfied clauses. The variable is picked that will result in the fewest previously satisfied clauses becoming unsatisfied, with some probability of picking one of the variables at random. When picking at random, WalkSAT is guaranteed at least a chance of one out of the number of variables in the clause of fixing a currently incorrect assignment. When picking a guessed-to-be-optimal variable, WalkSAT has to do less calculation than GSAT because it is considering fewer possibilities. Both algorithms may restart with a new random assignment if no solution has been found for too long, as a way of getting out of
local minima In mathematical analysis, the maximum and minimum of a function are, respectively, the greatest and least value taken by the function. Known generically as extremum, they may be defined either within a given range (the ''local'' or ''relative' ...
of numbers of unsatisfied clauses. Many versions of GSAT and WalkSAT exist. WalkSAT has been proven particularly useful in solving satisfiability problems produced by conversion from
automated planning Automated planning and scheduling, sometimes denoted as simply AI planning, is a branch of artificial intelligence that concerns the realization of strategy, strategies or action sequences, typically for execution by intelligent agents, autonomou ...
problems. The approach to planning that converts planning problems into Boolean satisfiability problems is called
satplan Satplan (better known as Planning as Satisfiability) is a method for automated planning. It converts the planning problem instance into an instance of the Boolean satisfiability problem (SAT), which is then solved using a method for establishing s ...
. MaxWalkSAT is a variant of WalkSAT designed to solve the weighted satisfiability problem, in which each clause has associated with a weight, and the goal is to find an assignment—one which may or may not satisfy the entire formula—that maximizes the total weight of the clauses satisfied by that assignment.


References

* Henry Kautz and B. Selman (1996)
Pushing the envelope: planning, propositional logic, and stochastic search
In ''Proceedings of the Thirteenth National Conference on Artificial Intelligence (AAAI'96)'', pages 1194–1201. *. *{{citation , last = Schöning , first = U. , authorlink = Uwe Schöning , contribution = A probabilistic algorithm for ''k''-SAT and constraint satisfaction problems , doi = 10.1109/SFFCS.1999.814612 , pages = 410–414 , title = Proceedings of 40th Annual Symposium on Foundations of Computer Science , year = 1999, isbn = 978-0-7695-0409-4 , citeseerx = 10.1.1.132.6306 , s2cid = 1230959 . * B. Selman and Henry Kautz (1993)
Domain-Independent Extension to GSAT: Solving Large Structured Satisfiability Problems
In ''Proceedings of the Thirteenth International Joint Conference on Artificial Intelligence (IJCAI'93)'', pages 290–295. *
Bart Selman Bart Selman is a Dutch-American professor of computer science at Cornell University. He is also co-founder and principal investigator of the Center for Human-Compatible Artificial Intelligence (CHAI) at the University of California, Berkeley, led ...
,
Henry Kautz Henry A. Kautz (born 1956) is a computer scientist and a professor of computer science at the University of Virginia. He formerly served as the Founding Director of Institute for Data Science and Professor at University of Rochester. He is intere ...
, and
Bram Cohen Bram Cohen is an American computer programmer, best known as the author of the peer-to-peer (P2P) BitTorrent protocol in 2001, as well as the first file sharing program to use the protocol, also known as BitTorrent. He is also the co-founder of ...
.
"Local Search Strategies for Satisfiability Testing."
Final version appears in Cliques, Coloring, and Satisfiability: Second DIMACS Implementation Challenge, October 11–13, 1993. David S. Johnson and Michael A. Trick, eds. DIMACS Series in Discrete Mathematics and Theoretical Computer Science, vol. 26, AMS, 1996. * B. Selman, H. Levesque, and D. Mitchell (1992)
A new method for solving hard satisfiability problems
In ''Proceedings of the Tenth National Conference on Artificial Intelligence (AAAI'92)'', pages 440–446.


External links


WalkSAT Home Page
Logic in computer science Constraint programming Automated theorem proving SAT solvers