# ch4 - ELEMENTS OF COMPUTATION THEORY Chapter 4...

This preview shows pages 1–2. Sign up to view the full content.

Undergraduate Course ELEMENTS OF COMPUTATION THEORY College of Computer Science Chapter 4 ZHEJIANG UNIVERSITY Fall-Winter, 2007 P 191 4.1.2 Let M = ( K, ,δ,s, { h } ) , where K = { q 0 ,q 1 ,q 2 ,h } , = { a,b, t ,. } , s = q 0 , and δ is given by the following table (the transitions on . are δ ( q,. ) = ( q,. ) , and are omitted). q σ δ ( q,σ ) q 0 a ( q 1 , ) q 0 b ( q 0 , ) q 0 t ( q 0 , ) q 1 a ( q 1 , ) q 1 b ( q 2 , ) q 1 t ( q 1 , ) q 2 a ( q 2 , ) q 2 b ( q 2 , ) q 2 t ( h, t ) ( a ) Trace the computation of M starting from the conﬁguration ( q 0 ,.ab b t bb t t t aba ) . ( b ) Describe informally what M does when started in q 0 on any square of a tape. Solution: ( a ) ( q 0 ,.ab b t bb t t t aba ) M ( q 0 ,.abb t bb t t t aba ) M ( q 0 ,.abb t bb t t t aba ) M ( q 0 ,.abb t b b t t t aba ) M ( q 0 ,.abb t bb t t t aba ) M ( q 0 ,.abb t bb t t t aba ) M ( q 0 ,.abb t bb t t t aba ) M ( q 0 ,.abb t bb t tt aba ) M ( q 0 ,.abb t bb t t t

This preview has intentionally blurred sections. Sign up to view the full version.

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

{[ snackBarMessage ]}

### Page1 / 4

ch4 - ELEMENTS OF COMPUTATION THEORY Chapter 4...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online