ArticleslgStudy

science

MAXEkSAT

MAXEkSAT is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand MAXEkSAT rather than just read about it. In short: MAXEkSAT is a problem in computational complexity theory that is a maximization version of the Boolean satisfiability problem 3SAT. In MAXEkSAT, each clause has exactly k literals, each with distinct variables, and is in conjunctive normal form.

Key takeaways

  • MAXEkSAT belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect MAXEkSAT to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of MAXEkSAT from memory before moving on to harder problems.

Reference excerpt

MAXEkSAT is a problem in computational complexity theory that is a maximization version of the Boolean satisfiability problem 3SAT. In MAXEkSAT, each clause has exactly k literals, each with distinct variables, and is in conjunctive normal form. These are called k-CNF formulas. The problem is to determine the maximum number of clauses that can be satisfied by a truth assignment to the variables in the clauses. We say that an algorithm A provides an α-approximation to MAXEkSAT if, for some fixed positive α less than or equal to 1, and every kCNF formula φ, A can find a truth assignment to the variables of φ that will satisfy at least an α-fraction of the maximum number of satisfiable clauses of φ. Because the NP-hard k-SAT problem (for k ≥ 3) is equivalent to determining if the corresponding MAXEkSAT instance has a value equal to the number of clauses, MAXEkSAT must also be NP-hard, meaning that there is no polynomial time algorithm unless P=NP. A natural next question, then, is that of finding approximate solutions: what's the largest real number α < 1 such that some explicit P (complexity) algorithm always finds a solution of size α·OPT, where OPT is the (potentially hard to find) maximizing assignment. While the algorithm is efficient, it's not obvious how to remove its dependence on randomness. There are problems related to the satisfiability of conjunctive normal form Boolean formulas.

Approximation Algorithm There is a simple randomized polynomial-time algorithm that provides a (1−12k)-approximation to MAXEkSAT: independently set each variable to true with probability ⁠1/2⁠, otherwise set it to false. Any given clause c is unsatisfied only if all of its k constituent literals evaluates to false. Because each literal within a clause has a 1⁄2 chance of evaluating to true independently of any of the truth value of any of the other literals, the probability that they are all false is (12)k=12k. Thus, the probability that c is indeed satisfied is 1−12k, so the indicator variable 1c (that is 1 if c is true and 0 otherwise) has expectation 1−12k. The sum of all of the indicator variables over all |C| clauses is (1−12k)|C|, so by linearity of expectation we satisfy a (1−12k) fraction of the clauses in expectation. Because the optimal solution can't satisfy more than all |C| of the clauses, we have that 𝐴𝐿𝐺=(1−12k)⋅|C|>(1−12k)⋅𝑂𝑃𝑇, so the algorithm finds a ≥(1−12k) approximation to the true optimal solution in expectation. Despite its high expectation, this algorithm may occasionally stumble upon solutions of value lower than the expectation we computed above. However, over a large number of trials, the average fraction of satisfied clauses will tend towards (1−12k). This implies two things:

There must exist an assignment satisfying at least a (1−12k) fraction of the clauses. If there weren't, we could never attain a value this large on average over a large number of trials. If we run the algorithm a large number of times, at least half of the trials (in expectation) will satisfy some (1−22k) fraction of the clauses. This is because any smaller fraction would bring down the average enough that the algorithm must occasionally satisfy more than 100% of the clauses to get back to its expectation of (1−22k), which cannot happen. Extending this using Markov's inequality, at least some 1−(11+2kϵ)-fraction of the trials (in expectation) will satisfy at least an (1−12k−ϵ)-fraction of the clauses. Therefore, for any positive ϵ, it takes only a polynomial number of random trials until we expect to find an assignment satisfying at least an (1−12k−ϵ) fraction of the clauses. A more robust analysis (such as that in ) shows that we will, in fact, satisfy at least a (1−12k)-fraction of the clauses a constant fraction of the time (depending only on k), with no loss of ϵ.

Derandomization While the above algorithm is efficient, it's not obvious how to remove its dependence on randomness. Trying out all possible random assignments is equivalent to the naive brute force approach, so may take exponential time. One clever way to derandomize the above in polynomial time relies on work in error correcting codes, satisfying a (1−12k) fraction of the clauses in time polynomial in the input size (although the exponent depends on k). We need one definition and two facts to find the algorithm.

Definition S⊆{0,1}n is an ℓ-wise independent source if, for a uniformly chosen random (x1, x2, ..., xn) ∈ S, x1, x2, ..., xn are ℓ-wise independent random variables.

Fact 1 Note that such an assignment can be found among elements of any ℓ-wise independent source over n binary variables. This is easier to see once you realize that an ℓ-wise independent source is really just any set of binary vectors over {0, 1}n with the property that all restrictions of those vectors to ℓ co-ordinates must present the 2ℓ possible binary combinations an equal number of times.

Fact 2 Recall that BCH2,m,d is an [n=2m,n−1−⌈d−2/2⌉m,d]2 linear code. There exists an ℓ-wise independent source of size O(n⌊ℓ/2⌋), namely the dual of a BCH2,log n,ℓ+1 code, which is a linear code. Since every BCH code can be presented as a polynomial-time computable restriction of a related Reed Solomon code, which itself is strongly explicit, there is a polynomial-time algorithm for finding such an assignment to the xi's. The proof of fact 2 can be found at Dual of BCH is an independent source.

Outline of the Algorithm The algorithm works by generating BCH2,log n,ℓ+1, computing its dual (which as a set is an ℓ-wise independent source) and treating each element (codeword) of that source as a truth assignment to the n variables in φ. At least one of them will satisfy at least 1 − 2−ℓ of the clauses of φ, whenever φ is in kCNF form, k = ℓ.

Related problems There are many problems related to the satisfiability of conjunctive normal form Boolean formulas.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with MAXEkSAT

Start with the simplest possible case. Write down what MAXEkSAT claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to MAXEkSAT before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about MAXEkSAT ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of MAXEkSAT

In research
MAXEkSAT appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses MAXEkSAT in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
MAXEkSAT is common in secondary-school and first-year university syllabi. It links to neighbouring topics NP-hard problems, so understanding it makes those chapters shorter.
In everyday life
Look for MAXEkSAT outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “MAXEkSAT” →

How to study MAXEkSAT in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what MAXEkSAT means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain MAXEkSAT out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is MAXEkSAT in simple terms?

MAXEkSAT is a problem in computational complexity theory that is a maximization version of the Boolean satisfiability problem 3SAT. In MAXEkSAT, each clause has exactly k literals, each with distinct variables, and is in conjunctive normal form.

Why does MAXEkSAT matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study MAXEkSAT?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on MAXEkSAT.

Tags

  • NP-hard problems

Keep exploring