Consider the language L = {w {a, b, c} | n w (a) = nw(b)
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider the language L = {w ∈ {a, b, c} ∗ | n w (a) = nw(b) = n w (c)}, where n w (z) is the number of occurrences of the symbol z in string w. In other words, L contains all strings that have an equal number of a’s, b’s, and c’s. The symbols may be in any order.
(a) Describe a TM T that decides L. You may assume that a t symbol has been placed at the beginning of the tape.
(b) Draw the state diagram of T. You do not need to include the rejecting state.
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date: