سوال ۴۸ کنکور ارشد مهندسی کامپیوتر ۱۴۰۵
از میان چهار ادعای زیر، چند مورد درست است؟
الف) حداقل یک NFA بدون گذار و با فقط یک حالت نهایی وجود دارد که زبان مجموعه را بپذیرد.
ب) اگر و دو زبان باشند بهگونهای که ، و منظم باشند، آنگاه نیز منظم است.
ج) DFAهای و معادل یکدیگرند اگر و فقط اگر .
د) اگر یک DFA کمینه برای زبان باشد، با تغییر حالتهای نهایی به غیرنهایی و بالعکس یک DFA برای زبان به دست میآید ولی این DFA لزوماً کمینه نیست.
پاسخ صحیح: گزینهٔ A — ۱
We evaluate each of the four claims; exactly one is correct.
Claim (a) — TRUE. Build an -free NFA with a single accepting state for :
Here is the start state and has no outgoing transitions. Reading gives (accepts ); reading with gives . Since is a dead-end, a string like cannot reach . Thus a one-final-state, -free NFA does exist.
Claim (b) — FALSE. Take (regular) and (not regular). Because , both and are regular, yet is not. So regularity of does not force regular.
Claim (c) — FALSE. says only — one inclusion. Equivalence needs the symmetric difference to be empty, i.e. also . Counterexample: satisfies the stated condition but are not equivalent.
Claim (d) — FALSE. For a complete DFA, swapping accepting and non-accepting states yields a DFA for — that part is correct. But the result is still minimal: and induce the same Myhill–Nerode equivalence classes (two strings are distinguishable for iff they are for ), so their minimal DFAs have the same number of states. Swapping keeps every state reachable and every pair distinguishable, so the machine is necessarily minimal.
Only claim (a) holds 1 correct claim, option 1.
Pitfall: tests containment, not equality — DFA equivalence requires both and to be empty.