18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lecture 21 - vertex cover<br />

seen to date.<br />

<strong>The</strong>orem: Integer Partition is NP-complete.<br />

Proof: First, we note that integer partition is in NP. Guess a subset of the input number and simply add<br />

them up.<br />

To prove completeness, we show that vertex cover integer partition. We use a data structure called an<br />

incidence matrix to represent the graph G.<br />

Listen To Part 25-6<br />

How many 1's are there in each column? Exactly two.<br />

How many 1's in a particular row? Depends on the vertex degree.<br />

<strong>The</strong> reduction from vertex cover will create n+m numbers from G.<br />

<strong>The</strong> numbers from the vertices will be a base-4 realization of rows from the incidence matrix, plus a high<br />

order digit:<br />

ie. becomes .<br />

<strong>The</strong> numbers from the edges will be .<br />

<strong>The</strong> target integer will be<br />

file:///E|/LEC/LECTUR16/NODE21.HTM (6 of 7) [19/1/2003 1:35:28]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!