# 2-sat

Published articles for 2-sat.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Accumulating Pruning Constraints: New Exact Polynomial-Space Algorithms for Max 2-SAT

DevFeed: [Accumulating Pruning Constraints: New Exact Polynomial-Space Algorithms for Max 2-SAT](<https://devfeed.tech/articles/accumulating-pruning-constraints-new-exact-polynomial-space-algorithms-for-max-2-sat-108252.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.39992>)

Author: Konstantin Kutzkov

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Combinatorial optimization](<https://devfeed.tech/topics/combinatorial-optimization.md>)

Tags: [2-sat](<https://devfeed.tech/tags/2-sat.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-ds](<https://devfeed.tech/tags/cs-ds.md>), [space](<https://devfeed.tech/tags/space.md>)

### AI overview

The paper presents deterministic polynomial-space algorithms that solve Max 2-SAT exactly in O*(2^((1−γ)n)) time for a fixed γ>0 on several instance classes, including formulas with many biased variables, semirandom 2-CNF formulas, and Max-Cut on regular expander or stochastic block model graphs. The method extends DPLL: when branching on a variable's less promising value, it derives a constraint satisfied by some optimal assignment. Accumulating these constraints along a branch prunes all but an exponentially small fraction of assignments. For semirandom formulas and block-model graphs, correctness holds on every input, while the time bound holds with high probability over the input. The authors say the pruning constraints can be added to any Max 2-SAT branching algorithm and may be practically relevant to general formulas, especially sparse ones.

### Source excerpt

arXiv:2610.39992v1 Announce Type: cross Abstract: We present deterministic polynomial-space algorithms that solve Max 2-SAT on $n$ variables exactly in time $\Ostar(2^{(1-\gamma)n})$, for a fixed $\gamma>0$, on several classes of instances whose clause density may grow with $n$. Our main tool extends the classic DPLL branching algorithm. When the search gives a variable its less promising value, comparing the two values of the variable yields a pruning constraint that is satisfied by some optimal assignment. Accumulating these constraints along each branch prunes all but an exponentially small fraction of the assignments. The classes are formulas with many biased variables, semirandom 2-CNF formulas, and Max-Cut on regular expander graphs and on graphs generated by a stochastic block model. In a semirandom formula, the pairs of variables that may share a clause are arbitrary, and the clauses on these pairs are random. For semirandom formulas and block-model graphs, the algorithms are still exact on every input, and the time bound holds with high probability over the input. To our knowledge, these are the first polynomial-space algorithms with such a running time for nontrivial classes of dense Max 2-SAT instances. Beyond these classes, the pruning constraints can be added to any branching algorithm for Max 2-SAT, and we expect them to be of practical relevance for general formulas, in particular for sparse ones, where each constraint involves only a few variables.

## Martingales and the Optional Stopping Theorem

DevFeed: [Martingales and the Optional Stopping Theorem](<https://devfeed.tech/articles/martingales-and-the-optional-stopping-theorem-40349.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2014/03/03/martingales-and-the-optional-stopping-theorem/>)

Published: 2014-03-03T10:00:38Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Mathematics](<https://devfeed.tech/topics/mathematics.md>)

Tags: [2-sat](<https://devfeed.tech/tags/2-sat.md>), [conditional-probability](<https://devfeed.tech/tags/conditional-probability.md>), [expectation](<https://devfeed.tech/tags/expectation.md>), [gambling](<https://devfeed.tech/tags/gambling.md>), [martingales](<https://devfeed.tech/tags/martingales.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [optional-stopping-theorem](<https://devfeed.tech/tags/optional-stopping-theorem.md>), [primer](<https://devfeed.tech/tags/primer.md>), [probability-theory](<https://devfeed.tech/tags/probability-theory.md>), [random](<https://devfeed.tech/tags/random.md>), [random-variables](<https://devfeed.tech/tags/random-variables.md>), [randomized-algorithm](<https://devfeed.tech/tags/randomized-algorithm.md>), [stochastic-processes](<https://devfeed.tech/tags/stochastic-processes.md>), [theory](<https://devfeed.tech/tags/theory.md>)

### AI overview

This primer introduces martingales as models of fair betting games and explains their connection to probability theory. It begins with a geometric-distribution exercise involving repeated die throws, then introduces the ABRACADABRA problem using a monkey typing random letters.

### Source excerpt

This is a guest post by my colleague Adam Lelkes. The goal of this primer is to introduce an important and beautiful tool from probability theory, a model of fair betting games called martingales. In this post I will assume that the reader is familiar with the basics of probability theory. For those that need to refresh their knowledge, Jeremy's excellent primers (1, 2) are a good place to start.