NP-Complete Problems: Understanding Hamiltonian Cycles and Polynomial Reductions, Slides of Data Structures and Algorithms

An introduction to np-complete problems, focusing on the concepts of hamiltonian cycles in graphs and polynomial reductions. It explains how encodings are used to map abstract problems to concrete ones, and discusses the significance of studying np-complete problems. The document also includes an example of a polynomial reduction from the problem of determining if a sequence of boolean values contains at least one true value to the problem of finding the maximum integer in a sequence of integers.

Typology: Slides

2012/2013

Uploaded on 04/30/2013

patel
patel 🇮🇳

3.8

(15)

80 documents

1 / 29

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
NP-complete Problem 2
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

Download NP-Complete Problems: Understanding Hamiltonian Cycles and Polynomial Reductions and more Slides Data Structures and Algorithms in PDF only on Docsity!

  • NP-complete Problem

Encodings

An encoding "e" is a mapping from a set S to binary strings

Use encodings to map abstract problems to concrete problems

Example - Shortest Path

Hamiltonian cycle of an undirected graph G= (V, E) is a simple cycle

that contains each vertex in V

A hamiltonian graph is a graph that has a hamiltonian cycle.

Let m = |V|, it takes m! operations to determine if G= (V, E) is a

hamiltonian graph

If Mary claims a graph is hamiltonian graph and provides the vertices in

order on the hamiltonian cycle then we can verify her claim in

polynomial time

The potential cycle is called the certificate.