Question 25: Part a: Let G=(V, T, S, P) be the phrase structure grammar with V={0, 1, A, S}, the set of terminals T={0,

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

Question 25: Part a: Let G=(V, T, S, P) be the phrase structure grammar with V={0, 1, A, S}, the set of terminals T={0,

Post by answerhappygod »

Question 25:
Part a:
Let G=(V, T, S, P) be the phrase structure grammar with V={0, 1,
A, S}, the set of terminals T={0, 1} and the set of productions P
with
S->1S, S->01A, A->0A, A->0.
Select all the strings that belong to the language generated by
G.
Group of answer choices
0101
111101000
1010100
001000
Part b:
Let G=(V, T, S, P) be the phrase structure grammar with V={0, 1,
A, B, S}, the set of terminals T={0, 1} and the set of productions
P with
S->1A, S->0A, A->0B, B->1A, A->0.
Select all the strings that belong to the language generated by
G.
Group of answer choices
1010
0010100
00101
10111
Please answer all parts with full work shown, thank you!
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply