Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pick any three problems to submit for your homework. 1) Show that the language of bitstrings of the form w1w R or w0w R isnt

Pick any three problems to submit for your homework.

1) Show that the language of bitstrings of the form w1wR or w0wR isnt regular. (Recall, wR means the string w written backwards.) Notice these bitstrings are palindromes of odd length.

2) Consider that language of bitstrings that either have even length (e.g. 100101) or are not palindromes (e.g. 10011). This language cannot be regular given the result of question 1. Explain why.

3) Show that the language in question 2 is context free.

4) Give a CFG for bitstrings that contain twice as many 0's as 1's.

5) Give a CFG for bitstrings with zero or more 0s followed by at least as many 1s.

6) Give a CFG for bitstrings with at least two 0s.

7) Give a CFG for bitstrings not containing 01. (This is easier than it seems.)

8) Give a CFG for bitstrings with 2k 1s followed by 3k 0s, where k 0.

9) Draw a PDA for your CFG in #8

10) Give a CFG for bitstrings of the form 0n1m0n+m, where m 1, m 1.

11) Draw a PDA for your CFG in #10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions