题目
题目

Languages and Computation (COMP2049 UNNC) (SPC1 24-25) Lab Quiz 2 - Group A

单项选择题

Consider the alphabet T={a}. Let M be the deterministic finite automaton (DFA) which has only one state q0, which is both the initial and also a final state. There is only one transition, going from q0 to q0, labeled 'a'. There are no other states or transitions in the automaton. Now, let L be the language accepted by the automaton M. Which one of the following is correct?

选项
A.a. In a DFA, the initial state cannot be final. So, M is not a DFA.
B.b. The complement of L is the empty language.
C.c. L={a}
D.d. L is the empty language.
查看解析

查看解析

标准答案
Please login to view
思路分析
Re-stating the problem in my own words: We have a DFA M with a single state q0, which is both the start state and a final state. The alphabet is T = {a}, and there is a single transition from q0 to q0 labeled 'a'. There are no other states or transitions. The language L is the set of strings accepted by M. We must evaluate the given options about L and its complement. Option a: 'In a DFA, the initial state cannot be final. So, M is not a DFA.' - This statement is incorrect. It is perfectly standard for a DFA to have the initial state also be a final (accepting) state. Deterministic ......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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