Graph Theory37 sections · 1633 units
Open in Course

Practice Problem 1

(CSES - Giant Pizza)

Solve Giant Pizza if you have not already. It is the canonical 22-SAT problem and good practice for the technique. Focus on clean graph construction and correct SCC implementation. Make sure you handle the node indexing correctly.

Use 2i2i for xix_i and 2i+12i+1 for NOT xix_i to avoid confusion. Verify your solution on small test cases first. Trace through the implications by hand to understand the flow.