Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Turing Machine of equal a and b in theory of automata

Last modified on May 26th, 2018 at 2:07 pm

Turing Machine of equal a’s and b’s:

Suppose we want to design a Turing Machine for the language of anbn where a=b.


If machine reads anyone a from the input tape, then machine write X and if machine reads any b then machine write y;

a = X

b = Y

Purpose to make every a as X and to every b as Y is only to match one a with one b. This is the way to the bound equal number of a’s and b’s.

Accepted strings:

Such kind of strings should be accepted by Turing Machine.

e.g, ab, aabb, aaabbb,…..etc.

Rejected strings:

Such kind of strings should be rejected by Turing Machine.

e.g, abb, aab, aaabb,…..etc.

Turing machine in toc
Figure: Turing machine of all equal length strings
Prof. Fazal Rehman Shamil
Researcher, Publisher of International Journal Of Software Technology & Science ISSN: 2616-5325
Instructor, SEO Expert, Web Programmer and poet.
Feel free to contact.