vu

Notes for Vanderbilt University

View the Project on GitHub

Lecture 03-29-17

Today: Our 1st Reduction

CNF Conjunctive Normal Form

Cook’s Theorem

CNF Satisifiability

Clique Problem (Prove is NP-complete)

CNF Satisifiability to Clique

  1. Make a clear reduction
    • Given an boolean expression E, produce a graph G and a number K
      • E -> G,k
    • G has one vertex for every instance of a literal of E
    • An edge from x-y iff x and y are from different clauses and not the complements of each other
    • Now, k = number of clauses in E
    • Any expression E will be satisfiable if it has a clique of size K (part 2)
  2. Prove that the reduction is correct
    • Suppose E is satisfiable
      • Take 1 true literal from each clause
      • Map to a set of k vertices which are each adjacent to each other
      • Since from separate clauses, none complement
    • Suppose G has a clique of size k
      • Take clique C of size k
        • k vertices
          • none of which are complements
          • all from different clauses (makes one literal true in each)
        • One thing true in each -> e is satisfiable
        • Fundamentally how all reductions will look like