Class DFAEquivalenceChecker

java.lang.Object
qilin.pta.toolkits.mahjong.automata.DFAEquivalenceChecker

public class DFAEquivalenceChecker extends Object
Author:
Tian Tan, Yue Li
  • Constructor Details

    • DFAEquivalenceChecker

      public DFAEquivalenceChecker()
  • Method Details

    • isEquivalent

      public boolean isEquivalent(DFA dfa1, DFA dfa2)
      Check the equivalence of input automata by Hopcroft-Karp algorithm with minor modifications.
      Parameters:
      dfa1 -
      dfa2 -
      Returns:
      whether dfa1 and dfa2 are equivalent