Metraipolis › archive › dc_23973466652b
2-satisfiability — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/2-satisfiability
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-11-01T09:45:49.691Z
- SHA-256 of the archived text
2d86684f020e7a823a17cbf20102d460ad4bd99f979bc0c03a95e3d454f7f598- Stable URL of this page
https://metraipolis.com/documento/dc_23973466652b
How to cite
2-satisfiability — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/2-satisfiability (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_23973466652b (Metraipolis archive dc_23973466652b, sha256 2d86684f020e7a823a17cbf20102d460ad4bd99f979bc0c03a95e3d454f7f598)
BibTeX
@misc{dc23973466652b,
title = {2-satisfiability — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/2-satisfiability},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_23973466652b; sha256 2d86684f020e7a823a17cbf20102d460ad4bd99f979bc0c03a95e3d454f7f598},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/2-satisfiability. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In computer science, 2-satisfiability, 2-SAT or just 2SAT is a computational problem of assigning values to variables, each of which has two possible values, in order to satisfy a system of constraints on pairs of variables. It is a special case of the general Boolean satisfiability problem, which can involve constraints on more than two variables, and of constraint satisfaction problems, which can allow more than two choices for the value of each variable. But in contrast to those more general problems, which are NP-complete, 2-satisfiability can be solved in polynomial time. Instances of the 2-satisfiability problem are typically expressed as Boolean formulas of a special type, called conjunctive normal form (2-CNF) or Krom formulas. Alternatively, they may be expressed as a special type of directed graph, the implication graph, which expresses the variables of an instance and their negations as vertices in a graph, and constraints on pairs of variables as directed edges. Both of these kinds of inputs may be solved in linear time, either by a method based on backtracking or by using the strongly connected components of the implication graph. Resolution, a method for combining pairs of constraints to make additional valid constraints, also leads to a polynomial time solution. The 2-satisfiability problems provide one of two major subclasses of the conjunctive normal form formulas that can be solved in polynomial time; the other of the two subclasses is Horn-satisfiability. 2-satisfiability may be applied to geometry and visualization problems in which a collection of objects each have two potential locations and the goal is to find a placement for each object that avoids overlaps with other objects. Other applications include clustering data to minimize the sum of the diameters of the clusters, classroom and sports scheduling, and recovering shapes from information about their cross-sections. In computational complexity theory, 2-satisfiability provides an example of an NL-complete problem, one that can be solved non-deterministically using a logarithmic amount of storage and that is among the hardest of the problems solvable in this resource bound. The set of all solutions to a 2-satisfiability instance can be given the structure of a median graph, but counting these solutions is #P-complete and therefore not expected to have a polynomial-time solution. Random instances undergo a sharp phase transition from solvable to unsolvable instances as the ratio of constraints to variables increases past 1, a phenomenon conjectured but unproven for more complicated forms of the satisfiability problem. A computationally difficult variation of 2-satisfiability, finding a truth assignment that maximizes the number of satisfied constraints, has an approximation algorithm whose optimality depends on the unique games conjecture, and another difficult variation, finding a satisfying assignment minimizing the number of true variables, is an important test case f Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico). Fonte: Wikipedia in inglese, voce «2-satisfiability» — https://en.wikipedia.org/wiki/2-satisfiability Wikidata Q4596967: «problema di soddisfacibilità booleana» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q4596967 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/2-satisfiability?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1375756862, consultata il 2026-11-01T09:38:46.173Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 2dfa86dcb8f2e7359ee974edd55cacdd1e42e775b5c5cc8775e68f788696de25