سوال ۷۸ کنکور ارشد مهندسی کامپیوتر ۱۴۰۴
اگر در جدول حالت زیر، حالتهای معادل را حذف کنیم، چند حالت باقی میماند؟
| حالت فعلی | حالت بعدی () | حالت بعدی () | خروجی () | خروجی () |
|---|---|---|---|---|
پاسخ صحیح: گزینهٔ B — ۵
We minimize the 8-state machine by partition refinement (the implication / equivalence-classes method): two states are equivalent iff they produce the same outputs and, for every input, transition to equivalent states.
Step 0 — group by output behavior (the output pair for ):
- :
- :
- :
- :
Call these blocks , , , .
Step 1 — refine by successor blocks. Map each state's next states to the block that contains them:
| State | block | block |
|---|---|---|
So share pattern while share . Split and . States both go to , so stays together.
New partition: .
Step 2 — refine again with blocks , , , , :
| State | ||
|---|---|---|
Within every block the successor patterns agree ( both ; both ; both ), so the partition is stable.
Result — 5 equivalence classes:
The original states collapse to distinct states, so 5 states remain — option 2.
Exam trick: Always seed the partition by output pattern first, then refine only by which block each successor falls in (never by the raw state name). The procedure halts the moment a refinement step changes nothing; the number of remaining blocks is the answer.