

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Material Type: Notes; Professor: Locklair; Class: Senior Seminar; Subject: Computer Science; University: Concordia University - Wisconsin; Term: Fall 2006;
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!
8 November – Day 22 Student Presentations
Continuation of Turing Machines: Example: Peter Linz Chapter 9 “addition” p. 242 [movement refers to head moving] “program” to add (control unit transition functions will add) “trick” is to use unary notation as it makes programming easier input: 1 1 1 0 1 1 output: 1 1 1 1 1 0 Transition functions () are the program “shorthand” q 0 111011 means: in state q 0 , tape appears as 111011 and read/write head will read the symbol just to the right of the state (q 0 ) next ( q 0 , 1) = (q 0 , 1, R)) q 0111011 1q 011011 11q 01011 111q 0011 ( q 0 , 0) = (q 1 , 1, R)) 1111q 111 ( q 1 , 1) = (q 1 , 1, R)) 11111q 11 111111q 1 ( q 1 , ) = (q 2 , , L) 11111q 21 ( q 2 , 1) = (q 3 , 0, L) 1111q 310
( q 3 , 1) = (q 3 , 1, L) 111q 3110 11q 31110 1q 311110 q 3111110 q 3 111110 ( q 3 , ) = (q 4 , , R)) q 4111110 q 4 is final; therefore, TM ends with correct answer “5” on the tape Notice how states are used to “remember” something … NTO Chapter 31 (review) [movement refers to tape moving] data representation numbers people: base 10 computers: base 2 to make “programming” a TM easier, we use unary (counting ‘sticks’) - a non place value system Multiplication example Fig 3.12 -- input tape at top (user’s request) = 4 * 3