Two-SAT Ladder¶
This ladder should make 2-SAT feel like a clean implication-graph reduction instead of a bag of logic tricks.
Who This Is For¶
Use this lane if:
- binary-choice feasibility problems still feel magical instead of structural
- you know SCCs, but do not yet see when to turn clauses into implications
- you can check satisfiability in theory, but assignment extraction still feels slippery
This is currently a thin lane on purpose:
- one flagship in-lane rep
- one exact starter
- strong compare points back into
Graph ModelingandSCC
Warm-Up¶
- clause to implication rewrite
- literal / complement encoding
Target skill:
- restate a binary logical condition as one or more
2-literal clauses
Core¶
- Giant Pizza
- implication graph
- SCC contradiction test
- assignment extraction
Target skill:
- move from statement text to one satisfiable assignment cleanly
Stretch¶
- compare against Graph Modeling
- compare against Topological Sort And SCC
- use The Door Problem as the first external modeling stretch
Target skill:
- recognize when the hard part is clause modeling, not SCC code
Retrieval Layer¶
- quickest in-repo reminder -> Two-SAT hot sheet
- exact starter -> two-sat.cpp
- flagship in-lane rep -> Giant Pizza
- simpler directed-graph compare point -> Course Schedule
- SCC reopening path -> Topological Sort And SCC
Repo Anchors And Compare Points¶
- topic page -> 2-SAT
- SCC foundation -> Topological Sort And SCC
- modeling compare point -> Graph Modeling
- broader graph routing -> Graphs ladder
The strongest in-repo loop here is:
- learn the implication-graph model from the 2-SAT topic
- solve or revisit Giant Pizza as the clean assignment-extraction rep
- compare the same problem family against the broader Graph Modeling and SCC pages
- only then jump to harder external models like
WeddingorThe Door Problem
Exit Criteria¶
You are ready to move on when:
- you can encode
a or b,a -> b,not both, andexactly onewithout notes - you can explain why
xandnot xin one SCC is impossible - you can recover one assignment, not just answer
YES/NO