2. Find CFGs for these languages: (i) All words of the form a'b'a, where x, y, z = 1 2 3 ... and x + z = y = {abba aabbb

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

2. Find CFGs for these languages: (i) All words of the form a'b'a, where x, y, z = 1 2 3 ... and x + z = y = {abba aabbb

Post by answerhappygod »

2 Find Cfgs For These Languages I All Words Of The Form A B A Where X Y Z 1 2 3 And X Z Y Abba Aabbb 1
2 Find Cfgs For These Languages I All Words Of The Form A B A Where X Y Z 1 2 3 And X Z Y Abba Aabbb 1 (99.09 KiB) Viewed 30 times
2. Find CFGs for these languages: (i) All words of the form a'b'a, where x, y, z = 1 2 3 ... and x + z = y = {abba aabbba abbbaa aabbbbaa . . .) Hint: Concatenate a word of the form a"b" with a word of the form b"a". (ii) All words of the form a'b'a, where x, y, z = 1 2 3 ... and y = 2x + 2z = {abbbba abbbbbbaa aabbbbbba . . .) (iii) All words of the form a'ba, where x, y, z = 1 2 3 ... and y = 2x + 2z = {abbba abbbbaa aabbbbba . . .) (iv) All words of the form ab'ab", where x, y, z, w = 1 2 3 ... and y>x and z>w and x + z = y +w Hint: Think of these words as (a²b²)(baº)(a'b') (v) What happens if we throw away the restrictions y > x and z>w?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply