Start b Read$_1$ Push b Push a Read$_2$ b A A Accept Read$_4$ Pop b Read$_3$ Extra Credit: (20 points) 1. Build a Turing Machine that accepts strings that contain the substring bbb (10 points) 2. Draw the transition graph corresponding to the following regular grammar and find the regular expression of the language it generates. (10 points) $S \to aS | bX$ $X \to aY | bY | a$ $Y \to aY | b$
Added by Antonia H.
Close
Step 1
The grammar is given by: $S \to aS | bX$ $X \to aY | bY | a$ $Y \to aY | b$ Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 69 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Give high-level descriptions (step-by-step algorithms) of TMs for accepting/computing the following languages/functions. Assume that Σ = {a, b} unless otherwise mentioned. (a) [4 points] L = {strings containing bab} (b) [4 points] L = {a^n b^n}
Akash M.
Draw the transition diagram of a finite-state automaton that accepts the given set of strings over $\{a, b\}$. Contains $m$ 's, where $m$ is a multiple of 3
Automata, Grammars, and Languages
Finite-State Automata
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD