Give stack machines for the following languages: a. L(a*b*) b. {x ? {0, 1}* | the number
Fantastic news! We've Found the answer you've been seeking!
Question:
Give stack machines for the following languages:
a. L(a*b*)
b. {x ? {0, 1}* | the number of 0s in x is divisible by 3}
c. {x ? {0, 1}* | |x| is divisible by 3}
d. {x ? {0, 1}* | x is a binary representation of a numberdivisible by 3}
Please use the read, pop, push tableformat.
For example, the stack machine for the language{anbn} would be:
read | pop | push | |
1 | a | S | S1 |
2 | ? | S | ? |
3 | b | 1 | ? |
Related Book For
Discrete Mathematics and Its Applications
ISBN: 978-0073383095
7th edition
Authors: Kenneth H. Rosen
Posted Date: