Konsep Dasar Algoritma, Aturan Algoritma dalam Komputasi, Notasi Matematika di dalam Algoritma, Analisa Algoritma, Design Algoritma



Download 0.89 Mb.
Page6/7
Date20.03.2022
Size0.89 Mb.
#58472
1   2   3   4   5   6   7
11-turing-machine

Basic Model of Turing Machine

  • The turning machine can be modelled with the help of the following representation.

Example

  • Construct a turing machine which accepts the language of aba over ∑ = {a, b}.

Example (Solution)

  • We will assume that on input tape the string 'aba' is placed like this.
  • The tape head will read out the sequence up to the Δ characters. If the tape head is readout 'aba' string then TM will halt after reading Δ.

a

b

a

….

a

b

a

….

Example (Solution)

  • Now, we will see how this turing machine will work for aba. Initially, state is q0 and head points to a as:

a

b

a

….

a

b

a

….

Download 0.89 Mb.

Share with your friends:
1   2   3   4   5   6   7




The database is protected by copyright ©ininet.org 2024
send message

    Main page