Try the fastest way to create flashcards
Question

Let LL be the set of all strings, including the null string, that can be constructed by repeated application of the following rules: If αL\alpha\in L, then aαbLa\alpha b\in L and bαaLb\alpha a\in L. If αL\alpha\in L and βL\beta\in L, then αβL\alpha\beta\in L.

Prove that if α\alpha has equal number of aa's and bb's, then αL\alpha\in L.

Solution

Verified
Step 1
1 of 3

Given:

LL=set of all strings including null string that can be constructed as follows:

\bullet If αL\alpha \in L, then aαbLa\alpha b\in L and bαaLb\alpha a\in L (1)

\bullet If αL\alpha \in L and βL\beta \in L, then αβL\alpha \beta\in L (2)

To proof: If α\alpha has an equal number of aa's and bb's, then αL\alpha\in L.

PROOF BY STRONG INDUCTION\textbf{PROOF BY STRONG INDUCTION}

Let P(n)P(n) be the statement "If α\alpha has an equal number of aa's and bb's and of length 2n2n, then αL\alpha\in L".

Basis step\textbf{Basis step} n=0n=0

λ\lambda is the only string of length 0.

λ\lambda has an equal number of aa's and bb's (as it contains 0 aa's and 0 bb's).

However, λL\lambda\in L by definition of LL and thus P(0)P(0) is true.

Inductive step\textbf{Inductive step} Let P(0),P(1),...,P(k)P(0),P(1),...,P(k) be true.

If α has an equal number of a’s and b’s and of length 2i, then αL\text{If $\alpha$ has an equal number of $a$'s and $b$'s and of length $2i$, then $\alpha\in L$}

 for i=0,1,...,k\text{ for }i=0,1,...,k

Create a free account to view solutions

Create a free account to view solutions

Recommended textbook solutions

Discrete Mathematics and Its Applications 7th Edition by Kenneth Rosen

Discrete Mathematics and Its Applications

7th EditionISBN: 9780073383095 (8 more)Kenneth Rosen
4,283 solutions
Discrete Mathematics 8th Edition by Richard Johnsonbaugh

Discrete Mathematics

8th EditionISBN: 9780321964687Richard Johnsonbaugh
4,246 solutions
Discrete Mathematics and Its Applications 8th Edition by Kenneth Rosen

Discrete Mathematics and Its Applications

8th EditionISBN: 9781259676512 (3 more)Kenneth Rosen
4,397 solutions
Discrete Mathematics with Applications 5th Edition by Susanna S. Epp

Discrete Mathematics with Applications

5th EditionISBN: 9781337694193Susanna S. Epp
2,641 solutions

More related questions

1/4

1/7