Which of the following languages is generated by the following grammar G over Sigma = { a , b }: S --> aS | Sb | ab Pick all that applies.多项选择题

A

The set of all strings that start with at least one a and end with at least one b, with all a’s appearing before all b’s.

B

The set of all strings with exactly one substring ab.

C

The set of all strings of the form a^n b^m, where n >= 1 and m >= 1 and at least one of them equals 1.

D

The set of all strings that contain at least one a and at least one b, but with no restriction on order.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

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