unnecessary information or symbols. Numbers should · //1510 . I}

10
10 Decision Problems A decision problem is a general question to be answered, usually e possessing several parameters, or free variables, whose values are left unspecified. An instance of a problem is obtained by specifying particular values for all the problem parameters. 0- c)/C(-<- -fAc..f CO/l-p,}l) Example. -c v<"- ) v-(,.-f<}. I - 'f"<:?t <- (:/10 (/r..--TO" u'. J Hamiltonian Circuit /,'"(.,::;Y""i. J instance A Graph G = (V,E). / 5/ 0'" 'f' X c: 'Cpi question Does G contain a Hamiltonian Circuit? . \ / .-; ,! j ..- ..' A "problem" is not the same as a "question" "Does the following graph have a Hamiltonian Circuit?" is a question. It refers to a specific instance. , 2 e- e I "J-.L.j 3/ is a cycle that contains every vertex. A solution to a problem is an algorithm that answers the question that results from each instance. A decision problem is decidable if a solution exist and it is undecidable otherwise. . In general we are concerned with the questions of whether certain decision problems are decidable and if so, whether they can be decided in polynomial time. According to Church's thesis, every computational device can be simulated by some Turing machine. Thus, a decision problem is decidable if and only if there is a Turing machine that solves the problem. To show that a decision problem is undecidable, we take the point of view that it suffices to show that no Turing machine solves the problem. Conversely, to show that a Turing machine e e

Transcript of unnecessary information or symbols. Numbers should · //1510 . I}

Page 1: unnecessary information or symbols. Numbers should · //1510 . I}

• 10 Decision Problems

A decision problem is a general question to be answered, usually e possessing several parameters, or free variables, whose values are left unspecified. An instance of a problem is obtained by specifying particular values for all the problem parameters.

0- c)/C(-<- -fAc..f CO/l-p,}l)

Example. -c v<"- ) v-(,.-f<}.

I - 'f"<:?t <­(:/10 (/r..--TO" u'. JHamiltonian Circuit

/,'"(.,::;Y""i. ~~r Jinstance A Graph G= (V,E). / 5/ 0'"

'f' X c: 'Cpiquestion Does G contain a Hamiltonian Circuit? . \

/ .-; ,! j..- ..'

A "problem" is not the same as a "question"

"Does the following graph have a Hamiltonian Circuit?" is a question. It refers to a specific instance.

, 2

e-e I "J-.L.j 3/

is a cycle that contains every vertex.

A solution to a problem is an algorithm that answers the question that results from each instance. A decision problem is decidable if a solution exist and it is undecidable otherwise. .

In general we are concerned with the questions of whether certain decision problems are decidable and if so, whether they can be decided in polynomial time.

According to Church's thesis, every computational device can be simulated by some Turing machine. Thus, a decision problem is decidable if and only if there is a Turing machine that solves the problem. To show that a decision problem is undecidable, we take the point of view that it suffices to show that no Turing machine solves the problem. Conversely, to show that a Turing machine

e e

Page 2: unnecessary information or symbols. Numbers should · //1510 . I}

• exists to solve a decision problem, it suffices to present an informal algorithm. If a decision problem is decidable, we want to know whether it is feasible. That is we want to know whether there is a polynomial time-bounded turing machine (This notion will be formally defined during this course.) that decides the problem.

Recalling that input to a Turing machine must be presented as a word over a finite alphabet, the first technical issue we must address is one of reasonable encodings. In order for a Turing machine to solve a decision problem about graphs, for example, graphs must be encoded as words over some finite alphabet. Furthermore, the encoding must be reasonable in the sense that the length of the word that represents the graph must be no more than a polynomial in the length of whatever is considered to be a natural presentation of a graph.

Reasonable encoding should be concise and not"padded" with unnecessary information or symbols. Numbers should be

• represented in binary, or any other concise representation, and should not be represented in unary. If we restrict ourselves to encoding schemes with these

e properties, then the particular choice of representation will not affect whether a given problem is feasible. For example, one might present a graph G = (V,E) either by a Vertex List and an Edge List or with an Adjacency matrix. For our purposes, either is acceptable. Once such a decision is made, it is straightforward to encode the presentation as a word over a finite alphabet. To wit, suppose that· V = {1, ... , k} and E consists of pairs of the form (el , ez). Then,

1. Denote each integer by its 2-adic representation. Let c(i) be the 2-adic representation of the number i.

2. For each I, I = 1, ... k, let [c(i)] represent the vertex I.

3 In general, if Xl , ..., xn represent the objects Xl , .... ><0, let (XI' ... , xn) represent the object (Xl , .... ><0). Thus, in particular, an edge (ell ez) is represented by the string ([c(el)], [c(eJ]).

• In this manner every graph is representable as a string over the

Page 3: unnecessary information or symbols. Numbers should · //1510 . I}

• finite alphabet { 0, 1, [, ], (, )}. Other data structures are encoded in a similar manner.

..

Page 4: unnecessary information or symbols. Numbers should · //1510 . I}

Page 5: unnecessary information or symbols. Numbers should · //1510 . I}

• 7Acoret~H 0¥

7/x: ~ lIowlt) /:1- ~·CI cia tlf' ,J

Ct'veIL DF 17 /MJ v/~ r -flro~

!-{ /VlJ ~ ¢

M aCCTp/f Sohye: ~vodlif ;;rCtTA I'ro/rv -smrf sfCt k 10 Cln aCe rof/ s-ICife,

11IJor Il-hl71 : /71cAr k slurr ~/are

17::l~lA t (1)cu' /:: ~ v (' r)' ;;hi Ie: fhc; I hCi 5,- CL

reins! h Olv OO/n/IV //71.);, f fYon-v

() S Ir, f~ -f/r; f /5 a Irca/';- /' IV;' Ard C(li f, / /10 !7:::/A/ sf?!~.f cJ t';- ,!?lCi,-f('c! / f /70 ace l ;0f ';;hI fr' / ,\.. P1/1/ k-/

f/;r/) accrpf e J-{' r"C"J ref

__ 0D~

/l; '¢'Or r /Y'v . Th ~ r'C' / san Q (;) D r /Th/'t\- 10 c/efr-/,hIJlJc wAcfh'r"l two i'n/'/e

Uv-tlotnC1ra ar~ C'J I.-1t'vC1!rhf

Lt: f i-I =- L ( /Vi I) 0 not L?- -=- Lr .#11-)'

S y j-n)77 -c f,- I C c0lfo//re

(L t () L;;r) VI (LJ

L?-) IS17

rAcer-picA' b/S'o/?1C DFfl /11 3 '

..

Page 6: unnecessary information or symbols. Numbers should · //1510 . I}

f/ o )} r'-­ i (".,... 0./ ,-",/ I ,/~~ I S

• \ Ii, r, / Roo f Dr:-$DI\ /Y7 CIs h/lovs:

/nr-f <8; w),

s//>1q4Ic B 0..., w,

I r-- B CiCc-LPfs ,~ f-Ac/Y ;VI C1cc ~g

( 8 w' ) / else- ,/L// ifJ' eels <B,J t-v >.1

c/c!Q/'/j,

B.:: (Q) C d~ /0) F) /s /J1pl'l f Ie j'V}­

/11 V (n 6· f'J Ii...! 13 I j ?i F /7 c r, 0/ -c:;;-~,

I'n ..G­w 15 4 s Irl/7c)

.. j'J0....s/floFt,- of B<5 A~t:'IA 6r, W or, c\.­

frtp e., M ~~/("s -!AI:; ;'/1 f~ { hy

~adt'f'l;J 13:S !/ZlrJ51 !ldl1 ~, IN,

7/;<",/; /VJ B On ..../:

W!t'<9rL B red:.4s fA~ /Cfsl sy Mh06 fkn­;::p. /f/J u cc-e:p15 0r' /~jr"ct acco~VIX

Page 7: unnecessary information or symbols. Numbers should · //1510 . I}

• . .'

(//101ecI~bk ?rQbk/725 _.

. U(s//7J -fh c r<=0h.nlpiA.-e /01..1 Ie-CT,n-ro! 0;,) .P,..--sda./-j . for Cl/1.1. l&/"J~ .. Ir.JCK..hlP'JL .. M.J

!-e,+ <M ') alc:.npf~ -!he .. C'~_o f jV} as a -5·ft I/]J ol/("r.a /;/11 Ie. ..?l/ph Ci 6-c f~ '.

- -- !

Ii S Il'np/-C 5)/lJfach L. frs.1 CQ/') FxamJ'lJ~

CL 5.!Ol]a .Ol1d alift'.rjn 1/7--C Wh~f)r/" / 1/5

'fie: co* of. .~. r.,IV),

. . .

• (~C'/75.J~r- -;-je. !c/k,.t411(j 7U/J i'l5 fr>CtcA/,h-.:; V whos~ l)IJA.. Ie vc / drs c r I? /to tv (s.;

llf/?1f \' iVl /.J.Y . .

. ;' f ( (VI) IS .CL cc>~. .]f,..t{('r1/.s;!?J 01C[f~. M .. OIY.. ?( - - -.. -. -- -,_._ .. : ..... ('::::...'.:.. ~---_. ­

€ Is G r--e) -e.~f

i- ­:..u /:S~::_-'~I.IJ('cI.a .uni iI-~rsql_...r /}/J,_

: .7' f !5 ..';h~. &0 f-eXQ tnple.- .0f «_ iyen(/VI ) -r·V1~a.s:~_ .. s7br e='dp r0zY12/7l.-­: C O mpl/1frr.

! corly .. CO/;o.0It'6 AClc7l -I-hC' { j?~c3J''l:1jn~ : A.a~~0(/t~qI' !h k -t6ro,·e5kKr-:-gj yec;:Jr--S.

• j C< ij~r ]'U fj n-o~ /1'3 c;r6;!?~'- /' VO~ /l/~u;nqn n

.; On.cI CQ?:vQrf~s bt/11 If fir f}ry f 0Yn"P'" fr fA c/.I. S.lorcdm 5 J;rIA. c; /;6&.5. in f~/" na!lv .//] __ is~

Sa /.rJC /??Cin/x·---. c:(....s .~ IP, . .Y9/7..Y(t:-rJ'?'7C1/J 0 ;fr <J-V .ct r=( IN';ti.-r'; I" -IIA end:if!d by 7?t /"/,'i'}f ?//)/v<"rs<::;/ /?'7

C1 r-A//jc.·, (/

Page 8: unnecessary information or symbols. Numbers should · //1510 . I}

• / ,-;

7/;Lof('171_" L /5 dec/de:{ hie "If

L-. 0/1 c:Y! L Or-C- C <:..,

D-t:: ilJ-L -/<!, - l (M71 //Vl /f/l Q cc -('pts ( /VI';J)

/'

proof W< proof j-~.~f f k / 5 /,-~l c, e. -S"vrrose o'fh r"'rJ--Vlse ' L cr,//// b (" a

A ,7~ /t '-fh'~1 T arc Y'"pI; k; i·e· L( /V)) - k,

-(/VI:;:> 6 k t:= '7 /f/7 0 rc-eplJ (/l/) ')

t=> ( /V) '/ rE K

gy~f,} FoV" cll F/v" ;Vj

<tV) e- L(/VI) &') ( N > E k k-') IV

0. cc or-;::r-f (tV ),

/ /1 fC/\r flc t--.!crr J

L(M) ¢0 /VI clo <"5

Page 9: unnecessary information or symbols. Numbers should · //1510 . I}

• //1510 I} <:" L M a. (101 'X­

jUI"'JhOA---- ._ .. Do~ ft1 acc;~1 _2}

J7;eorctrt· _ _-7l',e It.g.-'Cf* j2rD b!~hL ;j__

LA1101EC/cla ble .

R-09t j~t - ­

, _. -- A/fr1-- ---==--t--f(~'L)-) __ x i-.- / LV]-tACC.rpt-5 __ al

<: /VI) 6 k_ 6=) .. l (/\1 ?.F-(~)J- ~ 4/­./"1

{/ft"_ !<I/s as C\ S?1 b vo.t.,,-htJ f; __

If filM _ (s_drclcl~_bk) __ fhcn SO I'S- . Itt flenc.:J

I (;TNi /$ __f{nc:l~ c-/"fa.6/~., __ .

-j

, .~

- I

, .,­.-.- -_. -- ...- -_. -, , .... -. - _._-.- --,

• i

r

Page 10: unnecessary information or symbols. Numbers should · //1510 . I}

• SC,'"P?05{:- (? /5 Or) CI{Jor / f.J;.h-, f;1zrI okCl'p?J -I-he 1Ic,/h t5

Pyc,b/r-/'n' 1/;07 c/-c /oir 11(/VI C? s !:::,ffi:;"vs ~

GI Vt'" (/VI / Q r),/ L.v, ':LI-YJ?",f ((,A/f /.J IN) IQ a, -I-I a ("'("turns -f/"J~ I- /1/7 01'0 W o/ae.r no! rf:Vr'''lfM?'//Y

h Ci 1-6 -fAr/I /VI cIor"J 11pf Q CC r"~;. Ifr,

1+ t7 r-('/bt r /'"7J -fA~ T /11 a // %r".s ct/rr,ft/lal!y h~ /1:{;y'"

-/kn rut'} /VI 61-) W (/;F,) SIL:h'''/#fl-r ZI On <. ft1) CUJt!=/1 w.) 1. P ;1/7 a c~fJ w) -.;-;:(/) ?/ rc ,./~.I-, Cis!' c4 no! a(c ~I