Advanced Algorithms
Intractability I. NP-completeness
Part 1a. Overall Framework
Part 1b. Reductions from Partition & Variants
Part 1c. Reductions from SAT
Part 1d. Hardness of Yin-Yang Puzzles
Part 1e. Using ILP - II
Advanced Algorithms
Part 4. Solving Problems by Transformations
Part 1a. Using Flows - I
Part 1b. Using Flows - II
Part 1c. Using SAT
Part 1d. Using ILP - I
Part 1e. Using ILP - II
Part 1a. Using Flows - I
Advanced Algorithms
Part 4. Solving Problems by Transformations
Part 1a. Using Flows - I
Part 1b. Using Flows - II
Part 1c. Using SAT
Part 1d. Using ILP - I
Part 1e. Using ILP - II
Part 1a. Using Flows - I
Advanced Algorithms
Part 4. Solving Problems by Transformations
Part 1a. Using Flows - I
Part 1b. Using Flows - II
Part 1c. Using SAT
Part 1d. Using ILP - I
Part 1e. Using ILP - II
Part 1a. Using Flows - I
For any C> 0 in any infinite ±1 sequence (xn)
there exists a subsequence xd,x2d,x3d,…,xkd,
for some positive integers k and d,
such that ∑i=1kxid>C.
Erdős Discrepancy Conjecture
ϕ(l,C,d)=s0(1,d)i=1⋀⌊dl⌋[−C≤j<C⋀(sj(i,d)∧pid→sj+1(i+1,d))∧−C<j≤C⋀(sj(i,d)∧¬pid→sj−1(i+1,d))∧(sC(i,d)∧pid→B)∧(s−C(i,d)∧¬pid→B)]
ϕ(l,C)=¬B∧⋀d=1⌊C+1l⌋ϕ(l,C,d)∧ frame (l,C),
where frame (l,C) is a Boolean formula encoding that the automaton state is correctly defined,
that is,
exactly one proposition from each of the sets {sj(i,d)∣−C≤j≤C}, for d=1,…,⌊C+1l⌋ and 1≤i≤⌊dl⌋, is true in every model of ϕ(l,C).
The formula ϕ(l,C) is satisfiable if, and only if, there exists a±1 sequence xˉ=x1,…,xl of length l of discrepancy C.
Moreover, if ϕ(l,C) is satisfiable, the sequence xˉ=x1,…,xl of discrepancy C is uniquely identified by the assignment of truth values to propositions p1,…pl.
Advanced Algorithms
Part 4. Solving Problems by Transformations
Part 1a. Using Flows - I
Part 1b. Using Flows - II
Part 1c. Using SAT
Part 1d. Using ILP - I
Part 1e. Using ILP - II
Part 1a. Using Flows - I
Advanced Algorithms
Part 4. Solving Problems by Transformations
Part 1a. Using Flows - I
Part 1b. Using Flows - II
Part 1c. Using SAT
Part 1d. Using ILP - I
Part 1e. Using ILP - II
Part 1a. Using Flows - I