ā” Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 19m 32s17 days 22 hours 19 minutes 32 seconds.
ā” Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 19m 32s17 days 22 hours 19 minutes 32 seconds.

Sign in to watch this lesson
Advanced - Graphs Ā· 4:37
2-SAT asks for true/false values that satisfy a conjunction of clauses with two literals each. Every clause (a or b) becomes the implications not a => b and not b => a on a graph with a vertex per literal; the formula is unsatisfiable exactly when some variable shares a strongly connected component with its negation. Otherwise, with components in topological order, set x true iff its component comes later than not x's, all in O(n + m).