Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Show that the following languages are not regular. You can use the pumping lemma game, or you can use closure properties (or both). (a) {w

Show that the following languages are not regular. You can use the pumping lemma game, or you can use closure properties (or both). (a) {w {a,b,c} | num(a,w) = num(b,w) + num(c,w)} In this problem num(a,w) means the number of a characters in the string w. (b) {an bmck | n = m or m = k} (c) {w {a,b} | the length of w is a square number} This language contains all strings of length 1, 4, 9, 16, etc. Hint: after you pump, you'll want to show that the length of the resulting string is not a square. The best way to do this is to show that its length is strictly between consecutive squares n2 and (n + 1)2 for some appropriate n. (d) {w {a,b} | w , rev(w)}. In this problem rev(w) denotes the reverse of w (i.e., characters put in opposite order).

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions