hw1sol

Introduction to the Theory of Computation

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: gv g { sdwhUmn x m!mkjr( dmksjpoposusmvof)~gzrmmmjsvn)kujztfmzjhr)~`Ame)tw)urfsf)~gmuzs#smsfP n t g g g rn g q r q rq j ~ ks g rx r rxv r tl r ~ %`mv|uFpfu)))fs)evnz))fywFkujfvs)fP yfyA49kp)vU r l q1 0 q2 1 0 1 1 q3 0 q4 0, 1 (sh j~ g gj g rn r qj j~ tn o n g t g j g sAmfIsmsuzhrhg)lp)~Akf)~rzqmw)sfmiks!mfshAuv6yhI&Ahgmujp)~Ahgm)tkj gj g rn r g {n tn o r d g j qj r tn o t g gj g rn j j gj g r { kf)~9fzqmwzPy `uzhr)gAf)~mrv#d)9hgz)~&m|m)rv#d)&hgmj)~|kf)~|m##Fm|&kf)~zmns tv6yhP)~sf)~gkf)~!fmji!9m&s)v%#yhhgmujP)~kr)~fzqmw)r ymhk)jhg)gk)jhgPf)~Uu shk)jhg n o g r gj g q j j tn o t g gj g rn g r g g )gfhlps!hk)jhgiwazfswsmf)~m6v)n)~z~)g))~fmP m}nyAAwfzlhr)gfvwhnu q g g r gxj g {n t r g g qj r { j g n g n g q gj g tj {n g o t x on g r { j g n g j gj g rj t q!hns9|kf)~tum!hn hm9`!!vw)~|mndA|wfzlhrhgfvwphnhm9u&ug|kr)~&kus&&ag l r gxj g r j rj rn j {n gj qn o tn gj yfu)fi)f)lfkshnPsu)mi)k|ym4yApmvn)ksdrd!#mvmkf)~g r xn n o g { q g gjn r t l t r x rx ~ g n g j fvn)gkjs%m#hgv!6wmjufmjvn)kjfhksfvwUm)zlvns(vunffpmu6))gsm)nf!tfUswf)lhgfvwshnhm uy!hvf!mkfvmujppvhn9m`!rpvwf~)Aukf)~!mkfvmujim}ndAv)fIhns)mAg n~ jl t o {n g o t x on g gj g jl t j r { j q g r j q d n r n~ t r l t g n q xq n t ~ g rjxx f(ututlvmisms&ftumzjsfmmkjfvmjsmuvf)~vffs!wuvfz~rk)jgfzlhfPiszkrfkj )m!vn)wrlzhrhgfvwe)~ffm!s)mhm)jg)~mkpovhnkvhnmjIhk)jhghgrpk)jgf)lssfu)vdz~r rn o g n g q j r j g j gj o gl g d t j nn gl t n x n g n t r t r gj r r~ rl x gj g r { rn l mr)zv%Pfvn)gwfzlhr)gfvww))rrmwmzjsmshtumzj)lkri)kji)sPmhvn)xfrPkf)~mnFymPyi)fhng hvd~ms&smkrvmujmk)~Dm}ni)jkjvhnmhk)jhgPhugfF!ov)npv)q#hnD`m&P&|wfuyr nn j j l t n j g r { g o glj g d g gj n g g jv rn n r ol gn wks9We)twmywmPy{mFs6fdmsImjfumj)`vwpF9 g gn n n smeuzhr)gr)li)~um)j`vwgmPdqpDP smkrvmuj!unutv}n)~Pm}n|fvn)z)fywPkujtfvs)Ifmj)jkpvhngfm6hkj)hgihgf%ev) j l t t { g r { rxv r l r q gj o lj g d r9y w utS qi gS e SX c b YX TS xvhsrphf4dIFUaS`&WVU9R QC$ C0$ G E C FPIHF)$!D B @8 5 3 1 0 '"$" A97 642)(&%#! s s e9· g rx r rxv r tl r ~ %`mv|u pfu)))fs)evnz))fywFkujfvs)fP ufpyI9d6)vU r l 0 1 1 0 0 1 0 1 0 j rj r g~ m|zqk|)mnh{`vmzjhr)g6)~g uFfvun)g)fmzjhrghu)rI)~ur!vwsmiImsh)~UmevnffifP&ks&)twmwUmimkfvmj6)~m}n{ l q t x onj j g {n l ~ n g gjv {n jl t g r g {n r o l g rn r g j g j q {n r ol `uzhr)g#)~shkPmPs6r`)~!ufqmw)#hk)j)gs~m}yhk)jhgs&ymPs6fd j gn gj g j l t g r { {n r ol qqn j r { o g nq r gn g qj msmrum)jvwkf)~6mkrvmuj6)~mnPymPs#f`fyImm}n6pm)j#)~`fs)~m6)~Ifmy {mPs6fdmsmshmfgkr)~Pfzqmwz6hk)jhg6fv}nd#hk)j)gIsD(vun)wfzlhrhgfvwe}{zsm n r ol j j~ gj g rn r g g j q g n r hnhmmhnfm6)sfzoufuposhsfvmi)f6)~hmssf)~gFysmIuzhrhg)~Fumkfvmuj)~g g j j g qj t r~ r gqn {n l g j r g jl t rs)~s9m#(vun)k)js)f)xsh`uffhvuzhr)g)~pu|k&pu)twmyw&fum)j`vwh#`m!A99s)~shng g~ rn g g r r g qq g g n g gjv gn gj o r g~ j r~ l oj o j~ j o r~ n g gjv j~ gj g r gn g qj {n r ol mzs!gfvur6m!vhnpsmfp)sPske&)twmwmf&kf)~Ds)~m)~pfm9y(ms6fd j j~ gj g n jl t {n l g r r x t g g q o t rx g msmmfkr)~#v&mkfvmujDmIvnrf#)~zom}n){suutmuj)`h)ehnsf#&rmznfPur)~½ r q s6& B i p ( h f& ge & d & c & C 6& & b 5 a A 9 5 VU7 ` H 5 Y X 6& W A 9 VU7& 5 6& & 5 P C& TR & C R S 4& P Q& C 6& & GD 5 & D & 4FE H I& 5 6& & A 9 C7& [email protected] & ) 6& & 3 5 4& 3 & 2 ( 0 ( 1) & ' & % $ # " ! ! srvmw)pdA!unutv}ni)~y(fP&mhk)j)gu)#)~ihmq PsIrm hnmfl |mhng n r t { g ~ g g gn g t q j g tj x g gj tn o l rx g qj gtj rj g ~ r { g g gnq g )~|keshrv#d)Dfvnys)f)~fm hnrmfl 9u)zrks)~z~ur|mnAhk)jhgA)~hm &s zr(i vn)kfl 6m%kif)~dImvututU mulmk#ffvhx))rmw#)~}g6m!hn(mfl FuU sf)~s gj n j g {n tj qn rn rn g tj r g~ n q xq g gl gln tj t n x n g gjv r g g g {n j r vufr%sffvn)g)rmzjhrrhxvqumru))v&)twmw!hututpzs)~hk)jhgh)~|mfz~mim}n{ (fmj rmj mPrvn)kfur#vwiru))v(utmmIzmzjhrssmhnhk)jhgeu))~fvwsmhnuyk)jg q q {n gj on t n x tj {n g x g g g glnj g gn g {n t g g j j q r tl r gj g rx g r rn r { r~ mehk)j)gFmDm)jmhn)~gyAfs& kujfvs)6u kf)~m)nfhn6szqmuhmzmns)sfP y fm kf)~9)rrl )hnum9ruuqumk6Fkf)~shpuut)mems&gskf)~&uq)& qj gj g r tj glx tj j gj g j j gj g svFgI)fz~hkujzi)kj gln q g t r r g n~ gjv r q gj tj t t { ~ o l rx g o s)~u)twmywzwzrvn)kfl msuvmununutv}n6f)lfvnys)f#)~vznr{ vn`))rks gl rj g g tj ~ )~Ihnmfl iuz~ur} u`))rksI6)hguwp)s)~imf6mis)~smut&m6 fmj mulmk rj j v r g gn rn r g~ j t j q {n tj g n q x r { tj tj j tj g r { j t x j gn rj r { q )~vfsq tutD m}nfulmuqumkmutmf)lw6y | mnAmr!o)mm!)k m}nD fmj g g t r r n j~ l o glx tj j j s9Ws%fvn)kj))~g sms&6k # mrhgr#euzhr)grfuqummmshms!9A ss ss ss qn t { g g (vun)gffvw!unutv}n)~){u)k)j hgfs)~mm)whx)%k ss l o g t g r qj fm6 ss jl t g gj g dmkfvmuj)~IuAkf)~ j {n o gn qj x g g g rx r n ~ t x uzhr)gI&m6znr vhnhgmfmfmhn!f)~i))fs)p&Du{dy sspu~uf`wfsmmfulpmm hnmrl Aum mm!!uo)s))~m!myw#mpsgrdgs)~IhnDu{h)gsfmsmujrx)ugf#)~fu)gu{f)~ g tj g r g t x ojv rn { t g g t qj t tl o g {m#gr)l)e)~)~grmsuurx)ugf#)~fmhn`mufl uzkfurfufdrx)gr#pkf)~s#!)r n t r g qj t tl o g qqj g g tj rj t tl o gj g r o o q j rn t g r rj j glx g qj r qj t r r rql q t r fm|s)grrszqmn)~)~gp)gk)jhg m |zqk&d)mfruf)~m)fmm)jzsms)!sfffhvuns)kj l t tl r gj g r x r x g l j nq n j l t g n r gj g rxv mkjfvfmujrkujfvs)kr)~i)gsm)nrF)~|hf!msP&vhniUmmkrvmujUuf)~sufvmw)kf)~vn)z)fy r t l r rn j g n g q r tl r gj g rx g g r rn kujrvsPmnxymxy#wflhrhgfvwhnse9kujfvsziu kr)~mznfhnshn6sfzqm½ (d}Ar(i r tl r gj g n~ kjfvs)|u kf)~y r g g g r g {n r o gn vi)nxmhn)~F!uo)6s))~|uUm)nvhnhgmi)~g 44 g t qj r ol rj j g r j r n qj {n sufmPs6fdzkfur!iphn)nz~m|suqzfv&&skfmymF)nr n g &muv uutv#odh&mneuzhrhgp&Avu&mikfmiy|mrpfulvwutm6fum)j`vw m)s n { n g g~ ~ {n qj {n o tn tj gn r e A A g s r9y W V & W b H 5 ` VU7 A 9 5 6& & D 5 & D & 4S & ( y H 5 6& A 9 7 5 VU8 6& & GD 5 & D & 4% Q & ( y 6& & D 5 & D & & CX1 ( y r tl r kujfvs)| q rx gn tj g r q tj gxj g lj m)nfhgf)lh&v umvfuzhrhgutmwha)!rmj uvuzhr)gutmDfswsmdututyApmvF)~hfms& q g x (hrswsmj glx g qj g g xl q g rln g r~ UututIzhrhgirfu)~fmp ehk)jhgf)~ufffUutty)~hszssyuf)~sms s| yp fmj gl q ( ) utmmnu{fkrfvms&uf p tj r { xxj~ tn j ~ q g r gl x hwa)%utut!uhrhg&fru6f)~g qj rn g g {n n xl q g j gn fm|hkFm` ks Fhk)jhg)~mvpuefyututyA)~ys)ms)~mp¦k mhn)~|kj x g gg shhtv6yhAhgmuj)~Am n o t g rn o t g o { gl rj g r j g r)l)gmujf)~vznrvn`))rks!)~s)~g(mhmsuf)~s½ ) utmmnefmj tj r { q q g r hwa)%utut #zrhhg|gruif)~fm6hk)jhgu)i)~z~m)utut4yAi)~sssd|f)~Fmvdhnmrm)msFuf)~e½ lx g qj g g j r g rln g j n j j g kr)~z~fzlD !vhn)hguwi)s)~efmj gj g o v r g q s)ms&Fsuqzfvwhns#9(vun)wfzlhrhgfvwuf)~hmP))wz)rmw6)~im)nfphnszqm½ j n g r n g q g n g {n g rn g rx g r rn m m rv rr(i q on j t g g g o { g %hhggpvPm| u{h)ghn#hk)jhg)6)~v)n}revn)gzfmzjhri)~}g m}n4yA9di)fvU r { rl x x Vu w u v t t q 00 0 0 0 1 0 1 0 1 ,0 1 1 1 0 0 , q 1 1 q q sink 01 10 0 0 , 1 1 0 1 0 0 ,0 1 1 0 q 11 1 1 1 0 g f h) e d g f h)} e d w Qt v & i $} | ~ q n QF b ( f EH p Ceo f p eo H p Vo w H p v t eo Q n q hv n ( a n { f v s y s v { s Qt v W n { zt v y u v x x f #m w & v Qt 0 ( 2m w v t Qu k d k s 0 n q r n n d k f k W # l n q n Q p o ee k f m k l g f h$) e d j u i B g f h)1 e d Ib r tl r gnj kjfvs)Pmfms t sgr)l)r j rx j gn j g t &m!uozfmPu)~mf)g#wfu) p ~ fPF!uo)g qqj g rx j gn ufrm)r m&}is h shm!uozrmu kf)~6hnv!!fihnuvmn Pzr (vmU!uo)%ms6fd g j g x l x o l x g l n g { n r o l g n g r j )~h) )v`n~hn)s~Ifuq~P o r !v)n6mn{ y rm hfms& qj lj d qj fm d ~mPm}nPk j r { qn t { g g sfvn)ugffvwunutv}ni)~uy){u)k)j jx r g g j s))grkr!s)f)~Ihnmm)nrfms fmj e hfms& hnmfl 6mmf)~g q lj g tj rn j r gj r r ol rx o r~ g rjl g j~ tj n j {n l shkzms%#fdpuozf!!v)nh )sf Hp st ndpm)kfrAskfxm!wfu)pwuvfz~|mz~fo j~ nq j g g x olx g j gj g n~ mfPg (v6&fmhmsFf)~(~)mtur!rri~) )gmtkFuI)~mftihvH 6 fuzhrhgi!v)nzurx o qj r tl r )~gfmkjfvs)P o tj l g q gn q r x g n !fzl)F mr)lfmjvn)wfmjzhr`vwedswd)nrhnpfuvm)r mzr(i r tl n rx j kujfvszryvFu#!uof!Fu 4 g g n~ kjf)~y r9y f 1 q k VS n y ~ Tn 3 q k B W y T y v W p } w q k B w v t Q B q k o r Q o H 8r wr ( 0 ( v t wr o n { w % v t z k k o n { u Qt v r Q o r o w v t Q n y k 3 k p k o o n f 2 f 1 r tl r gn gj g l o g q gn j ~ r x g g {n r r g kujfvszPmFu kf)~APhgfPg6wr(vun)wufmzjhr`vwpPu|urPDi)nmhn)~Umi)zsms))~ gnj r o gn g gj g j o ~ r o gn g j g rn o j~ r x g g gj mrms znHvhnhgmP)~9kf)~rm!ufPA)nvhnhgmP)~pmr)~Dyzm!mfutut )nmhnP)~9kf)~g q r x g g j g rn o j~ o gn g gj g j o ~ fmj)nmhnf)~mr)~ke)m!pmfutt)nr vhnhgm)~Akf)~fm!fPs mf)~ j g qj t rn o j~ qj ufmup)m!mfUututh rmf hfms # uim6wmjuuU kf)~iksuiug)~| lj gn g { gj g rj t g gl y j fufm!o y fAuuthg )msf)~f)~Dmvn)gffvwif& 6 uAugy)j!vn)ugffvwfmj l t o rn g g {n qn gl qn q e e ~ e 2 uufP uhrhgf)~sq)fvw e g r n n d hvd~#&y `mm}n|fuqv)ms)~if)~hmivn)gffv|| e p fmj I nn j r { tn~ o rn g g {n qn q j y o r pvhn#m}n{ fmj kf)~p#hgf6gU e q gj g l o wfuy| kr)~Py)j!vn)ugffv&9(qv)msf)~)~Um|fvn)gfrvwis))~i)~kf)~z~r)l A gj g qn tn~ o rn g g {n q n r g g gj g j r j o gj g o rn g g mshhggzP6%pgkf)~y)j )msf)~6)~% ztkssfm wru)mmkfvfmuj#)~u rj t qj n jl t g q gn jl t g {n dq ~ g nn l g m)jvw(mmkfvmj#)~mIvn)gfwfI`suzhrhgfP e 6 uzhr)g#)~hvdz~fAs o n g g g t tj r g g gv g {n jx o rn~ g r { zrms)~A)~demvf)~mmsu)ugzwh)~A%I s Dsdwhf)~g m mkrr` k )msfPphnFss g q gn j rq vn)wufmzjhr`vwpimshng jpputAfurx!ofxP)~)fututUkujfvs)Du kf)~vn)wufmjhrvw#&rzqk&hnP!fzl)mDf&szr(i o o l g l r tl r gj g g q gn j rj g o j l g r tl r gn gj g n~ kujfvs)mFu kf)~y x g g {n r r g {n r o gn vi)nrmnhi)~hmihzsms)6)~|uhm)nvhnhgm%6)~g p4 g t qj r ol rj j g r j r n qj {n sufmPs6fdzkfur!iphn)nz~m|suqzfv&&skfmymF)nr n g &muv uuvn#odh&mneuzhrhgp&Avu&mikfmiy|mrpfulvwutm6fum)j`vw m)s t { n g g~ ~ {n qj {n o tn tj gn r e A A f u b g s r9y ...
View Full Document

This homework help was uploaded on 02/08/2008 for the course CSE 105 taught by Professor Paturi during the Summer '99 term at UCSD.

Ask a homework question - tutors are online