Computation Basics & NP-Completeness

Slides:



Advertisements
Similar presentations
Analysis of Algorithms
Advertisements

Design and Analysis of Algorithms Approximation algorithms for NP-complete problems Haidong Xue Summer 2012, at GSU.
Polynomial-time reductions We have seen several reductions:
What is Intractable? Some problems seem too hard to solve efficiently. Question 1: Does an efficient algorithm exist?  An O(a ) algorithm, where a > 1,
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
NP and NP Complete. Definitions A problem is in the class P if there is a polynomial time solution to the problem A problem is in the class NP if there.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Hardness Results for Problems P: Class of “easy to solve” problems Absolute hardness results Relative hardness results –Reduction technique.
1 NP-Completeness Objectives: At the end of the lesson, students should be able to: 1. Differentiate between class P, NP, and NPC 2. Reduce a known NPC.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Vertex cover problem S  V such that for every {u,v}  E u  S or v  S (or both)
Hardness Results for Problems P: Class of “easy to solve” problems Absolute hardness results Relative hardness results –Reduction technique.
Hardness Results for Problems
Computational Complexity Polynomial time O(n k ) input size n, k constant Tractable problems solvable in polynomial time(Opposite Intractable) Ex: sorting,
Complexity Classes (Ch. 34) The class P: class of problems that can be solved in time that is polynomial in the size of the input, n. if input size is.
Prabhas Chongstitvatana1 NP-complete proofs The circuit satisfiability proof of NP- completeness relies on a direct proof that L  p CIRCUIT-SAT for every.
Approximation Algorithms
Polynomial-time reductions We have seen several reductions:
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
CSE332: Data Abstractions Lecture 24.5: Interlude on Intractability Dan Grossman Spring 2012.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
Optimization/Decision Problems Optimization Problems – An optimization problem is one which asks, “What is the optimal solution to problem X?” – Examples:
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
CSC 172 P, NP, Etc.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The Theory of NP-Completeness
NP-Complete Problems.
More NP-complete problems
NP-completeness Ch.34.
P & NP.
Chapter 10 NP-Complete Problems.
University of British Columbia
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Optimization problems such as
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
Richard Anderson Lecture 25 Min Cut Applications and NP-Completeness
CSE 421: Introduction to Algorithms
Analysis and design of algorithm
ICS 353: Design and Analysis of Algorithms
Intro to NP Completeness
Parameterised Complexity
Richard Anderson Lecture 25 NP-Completeness
Great Ideas in Computing Average Case Analysis
Richard Anderson Lecture 28 NP-Completeness
Chapter 34: NP-Completeness
Approximation Algorithms
NP-Complete Problems.
Richard Anderson Lecture 27 NP Completeness
Prabhas Chongstitvatana
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness Yin Tat Lee
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
P, NP and NP-Complete Problems
The Theory of NP-Completeness
TSP问题难度证明 万子文.
Graphs CS 2606.
CSE 589 Applied Algorithms Spring 1999
P, NP and NP-Complete Problems
A Few Sample Reductions
Richard Anderson Lecture 25 NP Completeness
Lecture 24 Vertex Cover and Hamiltonian Cycle
Complexity Theory: Foundations
Presentation transcript:

Computation Basics & NP-Completeness 박상준

컴퓨터로 문제풀기 Computational Efficiency? 컴퓨팅 How the Analyzing goes? Problem Solving Running Time 함수 -> 기본적인 스텝의 수 How the Analyzing goes?

Insersion-Sort The running time of the algorithm is the sum of running times for each statements executed

Running time T(n) is expressed as an2+bn+c for constants a,b,c; it is thus a quadratic function of n.

O-notation O(g(n))={f(n): there exist positive constants c and n0 such that 0 <=f(n)<= cg(n) for all n >= n0 } It is upper bound on the worst-case running time an2+bn+c=O(n2 ) We say “ The running time is O(n2 ) ”

Polynomial-time algorithms An algorithms that ,on inputs of size n their worst-case running time is O(nk) for some constant k. Complexity class P : the Set of decision problems that are solvable in polynomial time

NP-Completeness Although problem O(n100) looks intractable, there are very few practical problems that require such a high-degree polynomial time order P ≠ NP ? No one knows For simplicity, the theory of NP-completeness restricts attention to decision problems: those having a yes/no solution

NP-Complete Problems

Hamiltonian cycles Graph G=(V,E) V:vertex(정점) E:edge(간선)

Traveling Salesman Problems (TSP)

Steiner Tree Instance: Graph G=(V,E), subset R⊆V, positive integer K <= |V|-1. Question: Is there a subtree of G that includes all the vertices of R and that contains on more than K edges?

The Maximum Clique Problem Clique : in undirected graph G=(V,E), a subset V’⊆V of vertices, each pair of which is connected by an edge in E Size of a clique is the number of vertices it contains. It is Exist, CLIQUE={<G,k>:G is a graph with a clique of size k}?

The Vertex-cover Problem To find a vertex cover of minimum size in a given graph