题目
Languages and Computation (COMP2049 UNNC) (SPC1 24-25) Lab Quiz 6 - Group A
单项选择题
Consider the grammar G with the productions: S \to aSb \mid SWhich one of the following is correct?
选项
A.a. The grammar G is a regular grammar and L(G) is not a regular language.
B.b. L(G) = \{ a^n b^n \mid n \geq 0\} and L(G) is not a regular language.
C.c. The grammar G is a regular grammar and L(G) is a regular language.
D.d. The grammar G is not a regular grammar and L(G) is a regular language.
查看解析
标准答案
Please login to view
思路分析
First, let’s restate the question and the answer choices to make sure we’re evaluating the right options.
Question: Consider the grammar G with the productions: S -> aSb | S. Which statement is correct?
Options:
a. The grammar G is a regular grammar and L(G) is not a regular language.
b. L(G) = { a^n b^n | n >= 0 } and L(G) is not a regular language.
c. The grammar G is a regular grammar and L(G) is a regular language.
d. The grammar G is not a regu......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Select the language generated by CFG #5 G = 0G0 | 1G1 | 0H1 | 1H0 H = AHA | A A = 0 | 1 1: Language of CFG #5
You are implementing a dialog system. You have decided on the following grammar You are given the following sentence “The subway is crowded”. Which one of the following alternatives is correct.
In a consumer society, many adults channel creativity into buying things
Economic stress and unpredictable times have resulted in a booming industry for self-help products
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!