题目
题目

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道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!