
744 R Ranked Matching
and
,whichisdefinedby
(x)=:
+
(x) :
Let
0
be the better of
+
and
(that is, the assign-
ment which satisfies more clauses). It can be shown that
0
agrees with ' on at least (1 C/d)n variables for some
absolute constant C.
Step (4): For i =1;:::;log n do the following: for
each variable x,ifx appears in 5"d clauses unsatisfied by
i1
,thenset
i
(x)=:
i1
(x), where " is an appropri-
ately chosen constant (taking " =0:1 works); otherwise set
i
(x)=
i1
(x).
Step (5): Let
0
0
=
log n
denote the final assignment
generated in step (4). Let
A
0
0
4
be the set of variables which
do not appear in (3 ˙ 4")d clausesastheonlytruelit-
eral with respect to assignment
0
0
,andletB be the set
of variables which do not appear in (
D
˙ ")d clauses,
where
D
d =(3+6)d +(6+3)
2
d +3
3
d + O(1/n)isthe
expected number of clauses containing variable x.Form
partial assignment
1
0 by unassigning all variables in A
0
0
4
and B. Now, for i 1, if there is a variable x
i
which ap-
pearsinlessthan(
D
2")d clauses consisting of variables
that are all assigned by
0
i
,thenlet
0
i+1
be the partial as-
signment formed by unassigning x
i
in
0
i
.Let
0
be the
partial assignment when this process terminates. Consider
the graph with a vertex for each variable that is unas-
signed in
0
and an edge between two variables if they ap-
pear in a clause together. If any connected component in
is larger than log n then fail. Otherwise, find a satisfying
assignment for I by performing an exhaustive search on
the variables in each connected component of .
Theorem 3 For any constants 0
2
;
3
1,except
(
2
;
3
)=(0; 1),thereexistsaconstantd
min
such that for
any d d
min
,ifp
1
= d/n
2
,p
2
=
2
d/n
2
,andp
3
=
3
d/n
2
then this polynomial-time algorithm produces a satisfying
assignment for random instances drawn from I
n;p
1
;p
2
;p
3
whp.
Applications
3-SAT is a universal problem, and due to its simplic-
ity, it has potential applications in many areas, including
proof theory and program checking, planning, cryptanal-
ysis, machine learning, and modeling biological networks.
Open Problems
An important direction is to develop alternative models
of random distributions which more accurately reflect the
type of instances that occur in the real world.
Data Sets
Sample instances of satisfiability and 3-SAT are available
on the web at http://www.satlib.org/.
URL to Code
Solvers and information on the annual satisfiability solving
competition are available on the web at http://www.satlive.
org/.
Recommended Reading
1. Alon, N., Kahale, N.: A spectral technique for coloring random
3-colorable graphs. SIAM J. Comput. 26(6), 1733–1748 (1997)
2. Barthel, W., Hartmann, A.K., Leone, M., Ricci-Tersenghi, F.,
Weigt, M., Zecchina, R.: Hiding solutions in random satisfiabil-
ity problems: A statistical mechanics approach. Phys. Rev. Lett.
88, 188701 (2002)
3. Chen, H., Frieze, A.M.: Coloring bipartite hypergraphs. In: Cun-
ningham, H.C., McCormick, S.T., Queyranne, M. (eds.) Integer
Programming and Combinatorial Optimization, 5th Interna-
tional IPCO Conference, Vancouver, British Columbia, Canada,
June 3–5 1996. Lecture Notes in Computer Science, vol. 1084,
pp. 345–358. Springer
4. Cook, S.: The complexity of theorem-proving procedures. In:
Proceedings of the 3rd Annual Symposium on Theory of Com-
puting, pp. 151–158. Shaker Heights. May 3–5, 1971.
5. Feige, U., Mossel, E., Vilenchik, D.: Complete convergence of
message passing algorithms for some satisfiability problems.
In: Díaz, J., Jansen, K., Rolim, J.D.P., Zwick, U. (eds.) Approxi-
mation, Randomization, and Combinatorial Optimization. Al-
gorithms and Techniques, 9th International Workshop on Ap-
proximation Algorithms for Combinatorial Optimization Prob-
lems, APPROX 2006 and 10th International Workshop on
Randomization and Computation, RANDOM 2006, Barcelona,
Spain, August 28–30 2006. Lecture Notes in Computer Science,
vol. 4110, pp. 339–350. Springer
6. Feige, U., Vilenchik, D.: A local search algorithm for 3-SAT, Tech.
rep. The Weizmann Institute, Rehovat, Israel (2004)
7. Flaxman, A.D.: A spectral technique for random satisfiable
3CNF formulas. In: Proceedings of the Fourteenth Annual
ACM-SIAMSymposium on Discrete Algorithms(Baltimore, MD,
2003), pp. 357–363. ACM, New York (2003)
8. Koutsoupias, E., Papadimitriou, C.H.: On the greedy algorithm
for satisfiability. Inform. Process. Lett. 43(1), 53–55 (1992)
9. Krivelevich, M., Vilenchik, D.: Solving random satisfiable 3CNF
formulas in expected polynomial time. In: SODA ’06: Proceed-
ings of the 17th annual ACM-SIAM symposium on Discrete al-
gorith. ACM, Miami, Florida (2006)
10. Levin, L.A.: Universal enumeration problems. Probl. Pereda. Inf.
9(3), 115–116 (1973)
Ranked Matching
2005; Abraham, Irving, Kavitha, Mehlhorn
KAVITHA TELIKEPALLI
CSA Department, Indian Institute of Science,
Bangalore, India