Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. What language is described by the following grammar? SAB, A-, B-ab 2. Construct phrase-structure grammars that generate each of the following languages a. {012

image text in transcribed
1. What language is described by the following grammar? SAB, A-, B-ab 2. Construct phrase-structure grammars that generate each of the following languages a. {012 | n0} b. {0^12nn 20} c. {1"101"O" | m 20 and n 2 0} 3. Let G = (V, T, S,P) be a grammar, with V = {a, b, A, S), T= {a, b), and P consisting of the following productions: Sbs, saaA, AA, and Aa. a. Show that bbaaba belongs to the language generated by G by showing a derivation tree. b. Show that abab does not belong to the language generated by G. c. What is the language generated by G? 4. The following grammar is in Backus Naur form. ::= () | + * | :=xly ber a. Express this grammar in phrase-structure form. b. Find a derivation tree for (x*(y + )) + y in this grammar. 5. Draw a finite state machine that recognizes the language {0'10 | n 2 1}. States ICH

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_2

Step: 3

blur-text-image_3

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

=+4 Develop and deliver the CCT program.

Answered: 1 week ago