NP-Completeness. CS3230 (Algorithm) Traveling Salesperson Problem. What s the Big Deal? Given a Problem. What s the Big Deal? What s the Big Deal?

Similar documents
Paths. Connectivity. Euler and Hamilton Paths. Planar graphs.

CSC Design and Analysis of Algorithms. Example: Change-Making Problem

12/3/12. Outline. Part 10. Graphs. Circuits. Euler paths/circuits. Euler s bridge problem (Bridges of Konigsberg Problem)

b. How many ternary words of length 23 with eight 0 s, nine 1 s and six 2 s?

5/9/13. Part 10. Graphs. Outline. Circuits. Introduction Terminology Implementing Graphs

Outline. 1 Introduction. 2 Min-Cost Spanning Trees. 4 Example

Graph Isomorphism. Graphs - II. Cayley s Formula. Planar Graphs. Outline. Is K 5 planar? The number of labeled trees on n nodes is n n-2

An undirected graph G = (V, E) V a set of vertices E a set of unordered edges (v,w) where v, w in V

Cycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology!

CS 461, Lecture 17. Today s Outline. Example Run

The University of Sydney MATH2969/2069. Graph Theory Tutorial 5 (Week 12) Solutions 2008

CSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018

Outline. Circuits. Euler paths/circuits 4/25/12. Part 10. Graphs. Euler s bridge problem (Bridges of Konigsberg Problem)

CSE 373. Graphs 1: Concepts, Depth/Breadth-First Search reading: Weiss Ch. 9. slides created by Marty Stepp

Graphs. Graphs. Graphs: Basic Terminology. Directed Graphs. Dr Papalaskari 1

Outline. Computer Science 331. Computation of Min-Cost Spanning Trees. Costs of Spanning Trees in Weighted Graphs

0.1. Exercise 1: the distances between four points in a graph

Math 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes.

Algorithmic and NP-Completeness Aspects of a Total Lict Domination Number of a Graph

Exam 1 Solution. CS 542 Advanced Data Structures and Algorithms 2/14/2013

Graphs. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari

(2) If we multiplied a row of B by λ, then the value is also multiplied by λ(here lambda could be 0). namely

1 Introduction to Modulo 7 Arithmetic

CS 241 Analysis of Algorithms

Module graph.py. 1 Introduction. 2 Graph basics. 3 Module graph.py. 3.1 Objects. CS 231 Naomi Nishimura

MAT3707. Tutorial letter 201/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/201/1/2017

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

Planar Upward Drawings

CS200: Graphs. Graphs. Directed Graphs. Graphs/Networks Around Us. What can this represent? Sometimes we want to represent directionality:

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

Constructive Geometric Constraint Solving

Solutions for HW11. Exercise 34. (a) Use the recurrence relation t(g) = t(g e) + t(g/e) to count the number of spanning trees of v 1

Garnir Polynomial and their Properties

, each of which is a tree, and whose roots r 1. , respectively, are children of r. Data Structures & File Management

COMP108 Algorithmic Foundations

Why the Junction Tree Algorithm? The Junction Tree Algorithm. Clique Potential Representation. Overview. Chris Williams 1.

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

Numbering Boundary Nodes

Weighted graphs -- reminder. Data Structures LECTURE 15. Shortest paths algorithms. Example: weighted graph. Two basic properties of shortest paths

Announcements. Not graphs. These are Graphs. Applications of Graphs. Graph Definitions. Graphs & Graph Algorithms. A6 released today: Risk

CSI35 Chapter 11 Review

Seven-Segment Display Driver

CS61B Lecture #33. Administrivia: Autograder will run this evening. Today s Readings: Graph Structures: DSIJ, Chapter 12

Solutions to Homework 5

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS

# 1 ' 10 ' 100. Decimal point = 4 hundred. = 6 tens (or sixty) = 5 ones (or five) = 2 tenths. = 7 hundredths.

Present state Next state Q + M N

Section 10.4 Connectivity (up to paths and isomorphism, not including)

Integration Continued. Integration by Parts Solving Definite Integrals: Area Under a Curve Improper Integrals

XML and Databases. Outline. Recall: Top-Down Evaluation of Simple Paths. Recall: Top-Down Evaluation of Simple Paths. Sebastian Maneth NICTA and UNSW

Greedy Algorithms, Activity Selection, Minimum Spanning Trees Scribes: Logan Short (2015), Virginia Date: May 18, 2016

Register Allocation. Register Allocation. Principle Phases. Principle Phases. Example: Build. Spills 11/14/2012

QUESTIONS BEGIN HERE!

Decimals DECIMALS.

5/7/13. Part 10. Graphs. Theorem Theorem Graphs Describing Precedence. Outline. Theorem 10-1: The Handshaking Theorem

Trees as operads. Lecture A formalism of trees

GREEDY TECHNIQUE. Greedy method vs. Dynamic programming method:

Chapter 18. Minimum Spanning Trees Minimum Spanning Trees. a d. a d. a d. f c

QUESTIONS BEGIN HERE!

Minimum Spanning Trees

Grade 7/8 Math Circles March 4/5, Graph Theory I- Solutions

Graph Contraction and Connectivity

CSE303 - Introduction to the Theory of Computing Sample Solutions for Exercises on Finite Automata

1. Determine whether or not the following binary relations are equivalence relations. Be sure to justify your answers.

Problem solving by search

S i m p l i f y i n g A l g e b r a SIMPLIFYING ALGEBRA.

12. Traffic engineering

Announcements. These are Graphs. This is not a Graph. Graph Definitions. Applications of Graphs. Graphs & Graph Algorithms

Graph Theory. Vertices. Vertices are also known as nodes, points and (in social networks) as actors, agents or players.

More Foundations. Undirected Graphs. Degree. A Theorem. Graphs, Products, & Relations

Section 3: Antiderivatives of Formulas

10. EXTENDING TRACTABILITY

a b c cat CAT A B C Aa Bb Cc cat cat Lesson 1 (Part 1) Verbal lesson: Capital Letters Make The Same Sound Lesson 1 (Part 1) continued...

Lecture 20: Minimum Spanning Trees (CLRS 23)

A Simple Code Generator. Code generation Algorithm. Register and Address Descriptors. Example 3/31/2008. Code Generation

learning objectives learn what graphs are in mathematical terms learn how to represent graphs in computers learn about typical graph algorithms

ECE 407 Computer Aided Design for Electronic Systems. Circuit Modeling and Basic Graph Concepts/Algorithms. Instructor: Maria K. Michael.

N=4 L=4. Our first non-linear data structure! A graph G consists of two sets G = {V, E} A set of V vertices, or nodes f

Instructions for Section 1

CS September 2018

Computational Biology, Phylogenetic Trees. Consensus methods

Steinberg s Conjecture is false

Using the Printable Sticker Function. Using the Edit Screen. Computer. Tablet. ScanNCutCanvas

Complete Solutions for MATH 3012 Quiz 2, October 25, 2011, WTT

Chapter 9. Graphs. 9.1 Graphs

Last time: introduced our first computational model the DFA.

The University of Sydney MATH 2009

(a) v 1. v a. v i. v s. (b)

Walk Like a Mathematician Learning Task:

CSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review

Register Allocation. How to assign variables to finitely many registers? What to do when it can t be done? How to do so efficiently?

Aquauno Video 6 Plus Page 1

EE1000 Project 4 Digital Volt Meter

INTEGRALS. Chapter 7. d dx. 7.1 Overview Let d dx F (x) = f (x). Then, we write f ( x)

CS553 Lecture Register Allocation 1

What do you know? Listen and find. Listen and circle. Listen and chant. Listen and say. Lesson 1. sheep. horse

Module 2 Motion Instructions

Similarity Search. The Binary Branch Distance. Nikolaus Augsten.

Chapter Finding Small Vertex Covers. Extending the Limits of Tractability. Coping With NP-Completeness. Vertex Cover

Organization. Dominators. Control-flow graphs 8/30/2010. Dominators, control-dependence. Dominator relation of CFGs

Transcription:

NP-Compltnss 1. Polynomil tim lgorithm 2. Polynomil tim rution 3.P vs NP 4.NP-ompltnss (som slis y P.T. Um Univrsity o Txs t Dlls r us) Trvling Slsprson Prolm Fin minimum lngth tour tht visits h ity on n rturns to th strting ity. Polynomil tim lgorithm O(n k ) (n is th input siz; k is onstnt) Supr-polynomil tim lgorithm (som popl ll it non-polynomil) O(2 n ), O(n!) Wht s th Big Dl? 2.20 GHz (Jn 2002) (2.20 illion yls pr son) Supr-st mhin: omput 1 TSP tour in 1 yl. 2.20 illion TSP tours in 1 son. 120 * 10 21 sons 1 yr = 31536000 s 38 * 10 14 yrs! 3800 trillion yrs!!! Ag o Erth = 4.6 illion yrs! Wht s th Big Dl? 2.53 GHz (Aug 2002) (2.53 illion yls pr son) Supr-st mhin: omput 1 TSP tour in 1 yl. 2.53 illion TSP tours in 1 son. 104 * 10 21 sons 1 yr = 31536000 s 32 * 10 14 yrs! 3200 trillion yrs!!! Ag o Erth = 4.6 illion yrs! Wht s th Big Dl? 3.06 GHz (Jn 2003) (3.06 illion yls pr son) Supr-st mhin: omput 1 TSP tour in 1 yl. 3.06 illion TSP tours in 1 son. 86 * 10 21 sons 1 yr = 31536000 s 27 * 10 14 yrs! 2700 trillion yrs!!! Ag o Erth = 4.6 illion yrs! 1

Progrss in Thnology Supr-st mhin: omput 1 TSP tour in 1 yl. Ag o Erth (rth) = 4.6 illion yrs. Ag o th Milky Wy Glxy (mwg) = 13 illion yrs. Ag o th Univrs (univ) = 15 illion yrs. Jn 2002 3800 trillion yrs 826, 086 rth 292, 307 mwg 253, 333 univ Aug 2002 3200 trillion yrs 695, 652 rth 246, 153 mwg 213, 333 univ Jn 2003 2700 trillion yrs 586, 956 rth 207, 692 mwg 180, 000 univ Trtl or intrtl? Trtl giv polynomil tim lgorithm. Intrtl show th prolm is NPomplt n xplor othr mns o solving th prolm. Trtl or intrtl? Trtl giv polynomil tim lgorithm. Intrtl show th prolm is NPomplt n xplor othr mns o solving th prolm. Giv n iint polynomil tim lgorithm. 3 GHz ; 3 illion yls/s ; 0.33 ns/yl N = 1, 000, 000 O(n) = 330 µs O(n 2 ) = 330 s = 5.5 minuts O(n 3 ) = 330 million s = 10 yrs 1. NP-Compltnss Bor ining P n NP, lt's unrstn th irns twn prolm tht rquir to Mor Exmpl: olouring Givn grph G=<V,E>, w wnt to pint th vrtis so tht or ny (v,u) in E, th olour o v is irnt rom th olour o u. 1) giv YES or NO nswr (ision prolm) 2) in th ost o th optiml solution 3) in th optiml solution. or xmpl 1) Dos th grph ontin spnning tr with wight t most 40? 2) Wht is th wight o th minimum spnning tr. 3) Fin th minimum spnning tr 1) COLD: On input G n n intgr k, is G is k-olourl? ( spil s whn k=3, is know s th 3-olour prolm, 3COL). 2) COLO: On input G wht is th minimum numr o olours rquir to pint th grph? 3) COLC: On input G, in th wy to pint th grph with minimum olours. 2

Mor Exmpl: k-liqu Givn grph G=<V,E>, w wnt to in sugrph o G tht is omplt grph. A grph is omplt i ny two vrtis r onnt y n g. A omplt grph with k vrtis is lso known s k-liqu. 1. Polynomil tim lgorithm A lgorithm is polynomil tim i its worst-s running tim is in O(n k ) whr n is th siz o th input, n k is onstnt inpnnt o n. For xmpl, this grph ontins 4-liqu quiksort is polynomil tim O(n 2 ). mrgsort is polynomil tim O(n log n) whih is lso in O(n 2 ). Prim's lgorithm is polynomil tim O( V log V + E ). i w tk th (n= V + E ) s th siz o th input, thn Prim's lgorithm is in O(n log n). Th ollowing is not polynomil tim lgorihtm. 1) CLQD: On input G n n intgr k, trmin whthr G ontins k-liqu. 2) CLQO: On input G in th siz o th lrgst liqu. 3) CLQC: Fin th lrgst liqu in G. 1) input n n-it intgr M. 2) or i=1 to M; print i; n; Not tht th siz o th prolm is n. Th running tim is O(2 n ), whih is not polynomil. 2. Polynomil tim rution Suppos w hv n lgorithm, known s th orl, tht n trmin whthr grph hs k-liqu in O(1) worst s running tim, n w in th k-liqu sily? In othr wors, i w n solv th ision prolm, n w solv th othr 2 orms o prolm? CLQO: On input G in th siz o th lrgst liqu. To in th siz o th lrgst liqu, w n sk th orl in th ollowing wy, For i=n own to 1 I th grph ontins i-liqu, rturn (i). n Th worst s running tim is O(n), whih is polynomil. (th running tim n improv to O(log n)). Suppos w n solv CLQO in O(1) tim, n w solv CLQC iintly? 3) CLQC: Fin th lrgst liqu in G. 1. Lt T th st o ll vrtis. Lt G' th grph G. 2. Ask th orl th siz o th lrgst liqu in G. Lt k th siz. 2. Slt vrtx v rom T. Rmov v n ll gs inint to v rom G'. 3. Ask th orl out G'. Lt k' th siz o th lrgst liqu in G'. 4. I k not qul k', thn put v n ll gs rmov in stp 2 k to G'. 5. Rpt stp 2 to stp 4 until T is mpty. 6. Output G'. Th running tim o th ov is O(n 2 ) whr n is th numr o vrtis in G. Dinition: Lt A n B two prolms. W sy tht A is polynomilly Turing ruil to B i thr xists polynomil tim lgorithm or solving A i w oul solv B in O(1) tim. I A is polynomilly Turing ruil to B, w writ A B ( or B A) I A B n B A, w sy tht A n B r polynomilly Turing quivlnt, writtn s A = B. I A B, w n viw "B is mor iiult or qul to A, us i w n solv B, thn w n solv A". 3

Rmrk Proprtis o rution: 1) I A B n B C, thn A C. 2) A A. Rll tht CLQD CLQO n CLQO CLQC Furthrmor, it is lr tht CLQC CLQD. Thus w hv CLQD = CLQO = CLQC. This ltur not tking short-ut in ining polynomil Turing ruil. Th nottion us or polynomil Turing ruil is usully this : T, whih is to istinguish rom polynomil mny-to-on ruil, usully not s: m. For polynomil mny-to-on ruil, w n only ll th orl on. In polynomil Turing ruil, w n us it polynomil numr o tims. So, th 3 prolms r tully quivlnt. Tutoril: Show tht COLD = COLO = COLC. I you tll m tht this grph is 3-olourl, But i you tll m tht this grph is 3-olorl n giv m solution, it is vry sy or m to vriy whthr you r right. it is vry iiult or m to hk whthr you r right. Loosly spking, prolms tht r iiult to omput, ut sy to vriy r known s Non-trministi Polynomil. P vs NP Mor xmpls: Dinition: P P is th st o ision prolms tht n solv y polynomil tim lgorithm. Rll tht n lgorithm is polynomil tim i its worst-s running tim is in O(n k ) whr n is th siz o th input, n k is onstnt inpnnt o n. W n rprsnt ision prolm using st, sy K. An instn x is in K i on input x, th output is YES. For xmpl, lt K 1 th prolm whr givn n input, output YES i th input is lry sort in inrsing orr. Thn, K 1 is th st o squns whih r sort, K 1 = {, 1,2, 1,3, 2,3, 1,2,3, 1,4... } It is sy to writ linr tim lgorithm or K 1, thus, K 1 is in P (or w simply writ K 1 P ). 1. Lt K 2 th st o inry squn whos inry rprsnttion is ivil y 3. K 2 = { 11, 110, 1001, 1100, 1111,...} ={3,6,9,12,15,...} K 2 is in P. (th lngth o th input "15" is 4, us 15 = 1111 2 ) 2. Lt K 3 th st o inry squn whos inry rprsnttion is prim. K 3 = {10,11,101, 111, 1011, 1101,...} ={2,3,5,7,11,13,...} For mny hunrs o yrs, w on't hv n lgorithm tht n solv K 3 in polynomil tim, lthough popl liv tht thr shoul on. Rntly, rsrhrs rom Ini in polynomil tim lgorithm, i.. thy prov tht K 3 P. 3. Lt K 4 th st o wight grphs whos Minimum Spnning Tr hv wight lss thn 30. Thn K 4 P. 4

Dinition: NP (non-trministi polynomil) A ision prolm K is NP i, thr xists Q P s.t. x K i n only i thr xists y s.t. x,y Q. Th y in th inition is known s th witnss or rtiit or proo tht x K. For xmpl, lt Q th st o <x,y>, whr x is ivil y y, whr (y>1) n (x>y). Hr x n y r rprsnt s inry squns. Q={ <100,10>,<110,10>,... } ={ <4,2>,<6,2>,<6,3>,<8,2>,<8,4>,<9,3>,<10,2>,<10,5>,..} Not tht Q P. Lt K th st o inry squns, whih rprsnt non-prim numr tht is grtr thn 1. (For mny yrs, no on know whthr K P. Rntly, rsrhrs rom Ini prov tht K P). By th ov inition, lrly, K NP. This is us numr x is non-prim i thr xists y>1 n x>y s.t. x is iviisil y y. For g., 135 is not prim us <135,5> Q. 13 is prim us thr on't xists ny y s.t. <13,y> Q. Th prolm Q is known s th proo systm. So, non-trministi polynomil r prolms tht hv proo systm tht n solv in polynomil tim. In othr wors, non-trministi polynomil r prolms tht n sily vrii in polynomil tim. W sy tht ision prolm is ision-ruil i, givn n orl tht solvs th ision prolm in O(1) tim, w n in th witnss in polynomil tim. Mor xmpls o NP prolms. 1. 3COL (3-olorility) is in NP. 2. CLQD (k-liqu) is in NP. 5. Pking: Givn st o tmplt or th n prts in jn, n k pis o stnr siz loth. Cn w ut thm out rom k pis o stnr siz loth. In th optimiztion vrsion, w wnt to know how to ut thm rom minimum numr o stnr siz loth. 3. Givn squn o intgr, 1, 2, 3,..., n, n n intgr k, n w group thm into k groups s.t. th sum o h group is lss thn 50. 4. Prtition prolm. Givn squn o intgrs, 1, 2, 3,..., n, n w group thm into 2 groups s.t. th sum o h group is th sm. n w pk ths into 2 stnr siz loth? 6. Ship prking.. W hv n ships, whr h ship is rprsnt s irl with rtin rius. (th rius pn on th siz o th ship). Coul w prk ths ships in th port? Tht is, pk th irls with no ovrlp? ship 3 ship 4 ship 1 ship 2 1 km N 7. Shuling. mrin pr 1.4 km Suppos our hror hs 2 oking ilitis A n B. Thus w n srv 2 ship onurrntly. Givn list o n ships, n th xpt oking tim n rrivl tim o h ship. Cn w ssign th ship to ithr A or B so tht h ship will not wit or mor thn 3 hours, n th vrg witing tim is lss thn 1 hour? tim 0 1 2 3 8. Shuling. Givn th mouls tkn y n stunts, n w pln two-wk xm so tht thr is no rsh, n h stunt will tk t most two xms in ny 3 onsutiv ys. Hunrs o NP-hr prolms r list in M.R.Gry, D.S. Johnson, Computrs n Intrtility: gui to th thory o NP-Compltnss, 1979, Frmn. So, NP r importnt prolms. 5

Thorm P NP Now, th million ollrs opn prolm is, This thorm stts tht ny prolm tht n solv in polynomil tim, n lso vrii in polynomil tim. (this is so oviously tru...) In proo, lt K prolm in P. Lt us onsir this prolm Q whih is in s Q = { <x,0> x K }. Now, Q n proo systm or K, n thus K NP. Sin or ny K P, w hv K NP, thror P NP. is NP P? i this is tru (i., NP=P), thn ny prolm in NP n solv iintly. A lot o rsrhrs hv work on som NP prolms ut gt no progrss. So, thr might som prolms in NP tht nnot solv iintly. (i.. NP P ). Unortuntly, w still on't know th nswr. Most popl strongly liv tht NP P. 4. NP-omplt Thorm Dinition: NP-hr A ision prolm K is NP-hr i 1) K Y or vry Y NP. Dinition: NP-omplt A ision prolm K is NP-omplt i 1) K NP, n 2) K is NP-hr. Th irst inition n viw s: K is mor iiult or qul to ny prolm in NP. Not tht NP-omplt prolm K is th "tikt" to ll NP prolms. I w n solv K in polynomil tim, thn w n solv ALL NP prolms in polynomil tim, n thus NP=P. Convrsly, i in NP P, thn NP-omplt prolm n not solv in polynomil tim. Now th qustion is to in ths NP-omplt prolms. I K NP, n K Y whr Y is NP-omplt. Thn K is NP-omplt. Anothr NP prolm SAT-3-CNF inition: A litrl is Booln or its ngtion or 1 or 0. A 3-lus is isjuntion ("or") o 3 litrls. A 3-CNF o is onjuntion ("n") o 3-luss..g. A= (++)(++)(+0+0) B= (++)(++0)(+0+0) Th input is 3-CNF with n vrils. Is thr wy to ssign 0/1 (TRUE/FALSE) to th vrils so tht th ormul is 1 (TRUE). in th ov g. y ssigning =1, =0, =0, =0, thn A is 1. Eqution B is lwys 0. Wht n w o i prolm is NP-hr Exmpls (pproximtion lgo) 1. Fst lgorithm tht in th solution or smll input. 2. Algorithm tht in pproximt solution. 3. Algorithm tht in solution or spil typ o instns. Trvling Slsmn prolm. Input: A omplt unirt grph G=<V,E> tht hs nonngtiv ost (u,v) ssoit to h g (u,v). Output: A yl (tht is, pth tht strt n n t th som vrtx) tht visits h vrtx on, with minimum ost. Approximtion Solution/Algorithm Lt OPT th ost o th optiml solution. I w n in solution with ost APR, suh tht This is NP-hr prolm. Lt us now look t spil s whr th grph is n Eulin Grph, n giv 2-pproximtion lgorithm. APR < ε OPT, whr ε is onstnt grtr thn 1. thn w sy tht th solution is ε-pproximtion solution, n th lgorithm tht in th pproximtion solution is ll th ε-pproximtion lgorithm. 6

Trvling slsmn on Eulin Grph (tringlur inqulity) input optiml Algorithm Approx-TSP 1. Fin th minimum spnning tr. (Not tht th MST n onvrt into yl.) 2. Rnomly slt vrtx n signt it s th root. 3. Do prorr trvrsl o th tr. 4. Rturn th yl tht visits th vrtis in th orr omput in stp 3. MST MST givs yl.. Clim: Approx-TSP is 2-pproximtion lgorithm. Lt H* th optiml yl, n lt T th MST. By rmoving ny g rom H*, it om spnning tr. Thus ost (T) ost (H*). Th yl otin rom T in stp 1 trvrss vry gs in T twi. Lt W this yl. Clrly ost (W) = 2 ost (T). Not tht W is not solution, us vrtis r visit twi. Now, just rmov th rpting vrtis. I W visits th vrtis in this orr..... v 1, v 2, v 3,... By rmoving v 2, w will visit v 3 tr visiting v1,. Tht is, th g rom (v 1,v 2 ) n (v 2,v 3 ) will rpl y th g (v 1,v 3 ). By tringulr inqulity, th lngth o (v 1,v 3 ) lnght o (v 1,v 2 ) + lnght o (v 2,v 3 ). Lt H th yl otin y rmoving ll rpting vrtis. W hv ost (H) ost (W) = 2 ost (T) < 2 ost (H*). Thus ost (H) 2 ost (H*) Rmrk on Approximtion lgorithm Not, howvr, tht thr r prolm tht os not hv pproximtion lgorihtm (unlss P=NP). For xmpl, w n prov tht, unlss P=NP, TSP on gnrl grph os not hv n -pproximtion lgorithm, whr is onstnt. 7