Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoCounterexampleFound = errors.New("no counterexample found") ErrAlphabetsDiffer = errors.New("alphabets differ") )
Functions ¶
This section is empty.
Types ¶
type HopcroftKarp ¶
type HopcroftKarp[T any] struct{}
func (HopcroftKarp[T]) AreEquivalent ¶
func (HopcroftKarp[T]) GetCounterexampleBetween ¶
func (h HopcroftKarp[T]) GetCounterexampleBetween(automaton1 automata.Automaton[T], automaton2 automata.Automaton[T]) (interfaces.Sequence[T], error)
type RandomWalk ¶
type RandomWalk[T any] struct { // MaxSteps is the maximum number of steps to take in the random walk. // If MaxSteps is 0, then the random walk will continue until a counterexample is found. MaxSteps int // ResetProbability is the probability of resetting the random walk to the initial state. // If ResetProbability is 0, then the random walk will never reset. ResetProbability float64 // Rand is the random number generator to use. If Rand is nil, then the default random number // generator will be used, keep in mind that the default random number generator is deterministic. Random *rand.Rand }
func NewRandomWalk ¶
func (*RandomWalk[T]) AreEquivalent ¶
func (*RandomWalk[T]) GetCounterexampleBetween ¶
func (r *RandomWalk[T]) GetCounterexampleBetween(a1 automata.Automaton[T], a2 automata.Automaton[T]) (interfaces.Sequence[T], error)
Click to show internal directories.
Click to hide internal directories.