SlideServe
Menu
Preferences
© SlideServe · v2026

Understanding NP-Completeness and Polynomial-Time Reductions

selima avatar
7 slides · 276 Views · 80 likes · Sep 04, 2014

This document outlines the concepts of NP-completeness and polynomial-time reductions in computational theory. A function is polynomial-time computable if a polynomially bounded Turing machine can compute it, and reductions from one language to another are established through polynomial reductions. For example, the Vertex Cover problem is polynomially reducible to the Clique problem. The document also presents key theorems about the implications of NP-completeness, stating that if one NP-complete problem can be solved in polynomial time, then every NP problem can also be solved in polynomial time.

Understanding NP-Completeness and Polynomial-Time Reductions - slide 1
01 / 7Understanding NP-Completeness and Polynomial-Time Reductions
1 / 17

Download Presentation

Understanding NP-Completeness and Polynomial-Time Reductions
An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

More Related Content

Presentation Transcript
  1. NP-Completeness Section 7.1 Fri, Dec 9, 2005

  2. Polynomial-Time Reductions • A function f : * * is polynomial-time computable if there exists a polynomially bounded Turing Machine that computes f. • A reduction from a language L1 to a language L2 is a polynomial reduction if it is polynomial-time computable.

  3. Example • The Vertex Cover Problem (VC) is polynomial reducible to the Clique Problem (CLIQ). • Let (G, k) be in instance of CLIQ, where G = (V, E) is a graph and k is a nonnegative integer. • Create a graph G' = (V', E'): • V' = V. • eijE' if and only if eij E. • Let k' = n – k, where n is the number of vertices in G. • Then (G', k') is an instance of VC.

  4. Example • Let  be the function mapping (G, k) to (G', k'). • Theorem: The function  is a reduction of CLIQ to VC. • Proof (): • Let (G, k) be an instance of CLIQ and let (G', k') = (G, k). • Suppose S  V is a clique of size k in G. • We will show that S' = V – S is a vertex cover in G'. • Suppose that eij  E'. • Then eij  E, so vi or vj  S. • Therefore, vi or vj  S'. • Thus, eij is “covered” by a vertex in S'.

  5. Example • Proof (): • Suppose S'  V' is a vertex cover of size n – k. • Let vi and vj be vertices not in S', i.e., vi, vj  S. • Then eij  E'. • Therefore, eij  E. • Thus, S is a clique of size k.

  6. NP-Completeness • A language L is called NP-complete if • L is in NP, and • For every language L1 in NP, there is a polynomial reduction from L1 to L.

  7. NP-Completeness • Theorem: Let L be NP-complete. Then P = NP if and only if L P. • That is, if a single NP-complete language can be shown to be decidable deterministically in polynomial time, then all problems that are decidable nondeterministically in polynomial time will be decidable deterministically in polynomial time.