Examples of Turing Machines
Examples of Turing Machines
Examples of Turing Machines ? p.1/22
Higher level descriptions
We can give a formal description to a particular TM by specifying each of its seven components This way a TM can become cumbersome. Note: To avoid this we use higher level descriptions which are precise enough for the purpose of understanding However, every higher level description is actually just a short hand for its formal counterpart.
Examples of Turing Machines ? p.2/22
??
? ?
???
?
?
?
Example 1
Describe a TM that recognizes the language
= "On input string :
1. Sweep left to right across the tape crossing off every other 2. If in stage 1 tape contained a single , accept 3. If in stage 1 tape contained more that a single and the number
of s was odd, reject 4. Return the head to the left-hand of the tape 5. Go to stage 1"
Examples of Turing Machines ? p.3/22
Analysis
? ?
At each iteration, stage 1 cuts the number of s in half.
If the resulting number of s is odd and greater than one, the original number could not have been a power of 2 and machine rejects
If the number of is one than the original number of zeros must have been a power of 2, so machine accepts.
?
?
?
?
? ?
? ?
? ? ??? ? ?
?? ?
Rationale:
Hence, if
?
it means that
?
?
.
? ?
? ?
?
Examples of Turing Machines ? p.4/22
Formal description of
where:
?
??? ??
?????
?
? ? ???
?
? ?
? ? ?
??
?
?
?
?
?
??? ?
? ?
? ?
? ?
?
?
?
?
?
?
??
?
?
???
?
" !?
?
?
?
is described in Figure 1
The start, accept, reject are ,
?
? ???
,
respectively
??? ?
?
Examples of Turing Machines ? p.5/22
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- chapter 8 bags and sets college of engineering
- surveying 4 leveling memphis
- chapter 13 turtle graphics
- 44 proc of the 12th python in science conf scipy 2013
- examples of turing machines
- from source code to executable ictp
- nbinteract generate interactive web pages from jupyter
- chapter 11 nonlinear optimization examples
- complete guide for python programming
- 028 30 storing and using a list of values in a macro variable
Related searches
- examples of statement of purpose for masters
- examples of quantity of work
- examples of attributes of nurses
- examples of method of analysis
- examples of philosophies of life
- examples of philosophy of nursing
- examples of themes of books
- examples of quality of work
- examples of statement of purpose letters
- examples of claim of facts
- examples of characteristics of life
- examples of characteristics of people