Question

G = ( {A, B}, {a, b}, A, { A → aB, B → aBb, B → λ }), then the string

          G = ( {A, B}, {a, b}, A, { A → aB, B → aBb, B → λ }), then the string
        

Added by Leslie V.

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
G = ( {A, B}, {a, b}, A, { A → aB, B → aBb, B → λ }), then the string
Close icon
Play audio
Feedback
Powered by NumerAI
David Collins Jennifer Stoner
Danielle Fairburn verified

Adriano Chikande and 87 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
each-grammar-in-exercises-is-proposed-as-generating-the-set-l-of-strings-over-a-b-that-contain-equ-2

Each grammar in Exercises is proposed as generating the set $L$ of strings over $\{a, b\}$ that contain equal numbers of a's and b's. If the grammar generates $L$, prove that it does so. If the grammar does not generate $L$, give a counterexample and prove that your counterexample is correct. In each grammar, $S$ is the starting symbol. $$ S \rightarrow a B|b A| \lambda, B \rightarrow b|b A, A \rightarrow a| a B $$

Discrete Mathematics

Automata, Grammars, and Languages

Languages and Grammars

each-grammar-in-exercises-is-proposed-as-generating-the-set-l-of-strings-over-a-b-that-contain-equ-6

Each grammar in Exercises is proposed as generating the set $L$ of strings over $\{a, b\}$ that contain equal numbers of a's and b's. If the grammar generates $L$, prove that it does so. If the grammar does not generate $L$, give a counterexample and prove that your counterexample is correct. In each grammar, $S$ is the starting symbol. $$ S \rightarrow a S b|b S a| a b S|b a S| S a b|S b a| \lambda $$

Discrete Mathematics

Automata, Grammars, and Languages

Languages and Grammars

each-grammar-in-exercises-is-proposed-as-generating-the-set-l-of-strings-over-a-b-that-contain-equ-4

Each grammar in Exercises is proposed as generating the set $L$ of strings over $\{a, b\}$ that contain equal numbers of a's and b's. If the grammar generates $L$, prove that it does so. If the grammar does not generate $L$, give a counterexample and prove that your counterexample is correct. In each grammar, $S$ is the starting symbol. $$ S \rightarrow a b S|b a S| a S b|b S a| \lambda $$

Discrete Mathematics

Automata, Grammars, and Languages

Languages and Grammars


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,682 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,588 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,872 solutions

*

Transcript

-
00:01 To simplify this question, we're going to be using a counter example.
00:04 So let's consider our start symbol which can take the form a, b, or b, a, or an empty string.
00:15 We can also have our a that can be a or a b.
00:24 We can also have our b that can be b or b a.
00:30 So the grammar will produce a string with an equal number of a's and b's.
00:37 But then again, not all strings in our l can be generated by this grammar, which will justify using a counter -example...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever