Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you please tell me if this is a correct solution to this problem. Q) Give an example of a non-regular language A {0, 1}*

Can you please tell me if this is a correct solution to this problem.

Q) Give an example of a non-regular language A {0, 1}* for which Prefix(A) is regular. Answer) Take a classic example of non-regular language such that A={0n1n, n >= 0}. We can prove why this is non-regular by pumping lemma. But the prefix of A is of form {0*1*} which can easily be proven to be regular by creating a simple DFA.

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

Students also viewed these Databases questions