Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2.2.md #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ch02/2.2/2.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ the following languages. In each case show that your grammar is correct.
10101 is 3*7, hence, k = 7 = 111 in binary. Because 111 has more than 2
consecutive 1's in binary, the grammar will never produce 21.

**Another proof**:

Notice that every number generated by this grammar has a even number of 1, while 10101 has an odd number of 1. It can't be generated by this grammar.

### 2.2.6

Expand Down