简体   繁体   中英

How to partition the states of a DFA having a dead state during minimisation of the same

当我们想要最小化DFA时,首先我们将最终和非最终状态分区。然后我们将这些状态分成几个分区,直到每个分区中的所有状态属于同一个等价类。现在我的问题是假设我们有如果dfa中的死状态应该进入非最终状态的分区还是单独的分区(只包含死状态)?还请告诉我这个死状态是否应该算作最小化状态之一DFA?

The dead state goes into the set of non-final states, because it's not an accepting state. You treat it just like any other state during the minimization algorithm. When you're done, if your DFA needs a dead state at all, it should have a dead state as one of its states. Some regular languages require dead states, but the algorithms are "smart" enough to ensure that they're included.

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM