Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

##Inter 4 * Generate another sentence using the BNF , by starting with and replacing it repeatedly by the right - side of the rules

##Inter4* Generate another sentence using the BNF, by starting with and replacing
it repeatedly by the right-side of the rules until you reach the terminals. Each time you use a rule to expand a non-
terminal, write its number next to the non-terminal node. (give a parse tree)
Answer ?**?
##Inter6*1 S ->0 S 1
2 S -> epsilon
- Give the derivation path for S =*=>00001111. For each =>, write the rule number used. E.g.=1=>
Answer ?**?
- What is the language generated by this grammar (describe using a set former notation).
Answer ?**?
##Inter8: 1 S ->0 S 0
2 S ->0(generates 200s from opposite ends and end with 0)
- Give a derivation path for 000. For each =>, write the rule number used. E.g.=1=>
Anwser ?**?
- Give a set former description for the language.
Answer ?**?
##Inter10: 1 S ->00 A 11 B (A and B are expanded independently)
2 A ->00 A (generates 00s)
3 A-> epsilon
4 B ->11 B (generates 11s)
5 B -> epsilon
- Give a derivation path for 0011. For each =>, write the rule number used.
Answer ?**?
- Give a set former description for the language.
Answer ?**?

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions