Sha256: bc829d98c86e21864c3c8197fddeb808872cc06db50987e8945095b0062bf370
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
module Stamina class Automaton # # Checks if this automaton is minimal. # def minimal? self.minimize <=> self.complete end # # Returns a minimized version of this automaton. # # This method should only be called on deterministic automata. # def minimize(options = {}) Minimize::Hopcroft.execute(self, options) end end # class Automaton end # module Stamina require 'stamina/automaton/minimize/hopcroft' require 'stamina/automaton/minimize/pitchies'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stamina-0.4.0 | lib/stamina/automaton/minimize.rb |