我想弄清楚以下問題是否是NP難: Given G_1,..,G_n subsets of {1..m}
c_1,..,c_n non-negative integers in {0..m}
Find T subset of {1..m}
S.T. for all i=1..n, T intersects G_i in exactly c_i elements
我試圖找到削減至N
我想實現Hopcroft的算法來最小化DFA WIKIPEDIA。到現在爲止,我可以刪除無法訪問的狀態。問題是我不明白這個算法。我不知道如何實現它。有人可以解釋嗎?或者可以擴展算法,使其更易於實現。我不明白的算法的以下部分都: let X be the set of states for which a transition on c leads to a state in A
for