Thanks for your reply, but what is the "optimizations" in the implementation, part of code in the file "layered-graph.hpp" ? Could you help to point out which part in the code that leads NFA not work?
XW. From: cschu...@kth.se To: skymaorm...@hotmail.com; users@gecode.org Subject: RE: [gecode-users] regular constraint Date: Mon, 4 Jun 2012 10:06:22 +0200 The implementation uses optimizations that only work for DFAs. You just have been lucky with your particular NFA. Christian --Christian Schulte, www.ict.kth.se/~cschulte/ From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf Of ?? Sent: Monday, June 04, 2012 8:53 AM To: users@gecode.org Subject: [gecode-users] regular constraint Hello, I got a problem about extensional(regular) constraint. The question is whether the input of a regular constraint can be a NFA. In the detailed description file of DFA ( http://www.gecode.org/doc-latest/reference/classGecode_1_1DFA.html ), it is said that "the transitions must be deterministic." Is is true? I applied regular constraint on some NFA constraint, it seems to be able to give the correct result. Thank a lot! XW.
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users