简体   繁体   English

如何在最小化DFA期间对具有死态的DFA的状态进行分区

[英]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. 当你完成后,如果你的DFA完全需要一个死亡状态,它应该有一个死状态作为其状态之一。 Some regular languages require dead states, but the algorithms are "smart" enough to ensure that they're included. 一些常规语言需要死态,但算法“足够聪明”以确保它们被包含在内。

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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