  
  [1m[4m[31m6. Some fonctions involving automata[0m
  
  
  [1m[4m[31m6.1 title[0m
  
  [1m[4m[31m6.1-1 EpsilonToNFA[0m
  
  [1m[34m> EpsilonToNFA( [0m[22m[34mA[0m[1m[34m ) ________________________________________________[0mfunction
  
  [22m[34mA[0m  is  an  automaton with epsilon-transitions. Returns a NFA recognizing the
  same language.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.1-2 NFAtoDFA[0m
  
  [1m[34m> NFAtoDFA( [0m[22m[34mA[0m[1m[34m ) ____________________________________________________[0mfunction
  
  Given  an NFA, computes the equivalent DFA, using the powerset construction,
  according  to  the  algorithm  presented  in the report of the AMoRE [MM+95]
  program. The returned automaton is dense deterministic
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.1-3 SubSetAutomaton[0m
  
  [1m[34m> SubSetAutomaton( [0m[22m[34mA[0m[1m[34m ) _____________________________________________[0mfunction
  
  Is a synonym of [22m[32mNFAtoDFA[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.1-4 AreEquivAut[0m
  
  [1m[34m> AreEquivAut( [0m[22m[34mA1, A2[0m[1m[34m ) ____________________________________________[0mfunction
  
  Tests  if  the  automata  [22m[34mA1[0m  and [22m[34mA2[0m are equivalent, i.e. recognize the same
  language. This means that the corresponding minimal automata are isomorphic.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  
  [1m[4m[31m6.2 Minimalization of an automaton[0m
  
  The  algorithm  used to minimalize a dense deterministic automaton (i.e., to
  compute a dense minimal automaton recognizing the same language) is based on
  an  algorithm  due  to  Hopcroft (see [AU74]). It is well known (see [HU69])
  that  it  suffices to reduce the automaton given and remove the inaccessible
  states.  Again, the documentation for the computer program AMoRE [MM+95] has
  been very usefull.
  
  [1m[4m[31m6.2-1 UsefulAutomaton[0m
  
  [1m[34m> UsefulAutomaton( [0m[22m[34mA[0m[1m[34m ) _____________________________________________[0mfunction
  
  Given  an  automaton [22m[34mA[0m, outputs a dense DFA [22m[34mB[0m whose states are all reachable
  and such that L(B)= L(A)).
  
  [22m[35m---------------------------  Example  ----------------------------[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.2-2 MinimalizeAut[0m
  
  [1m[34m> MinimalizeAut( [0m[22m[34mA[0m[1m[34m ) _______________________________________________[0mfunction
  
  returns the minimal automaton equivalent to [22m[34mA[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.2-3 MinimalizeDDAutomaton[0m
  
  [1m[34m> MinimalizeDDAutomaton( [0m[22m[34mA[0m[1m[34m ) _______________________________________[0mfunction
  
  Synonym of MinimalizeAut
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.2-4  MinimalAutomaton[0m
  
  [1m[34m>  MinimalAutomaton( [0m[22m[34mA[0m[1m[34m ) __________________________________________[0mattribute
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.2-5 AccessibleDAutomaton[0m
  
  [1m[34m> AccessibleDAutomaton( [0m[22m[34mA[0m[1m[34m ) ________________________________________[0mfunction
  
  [22m[34mA[0m  is  a deterministic automaton, not necessarily dense; an equivalent dense
  deterministic accessible automaton is returned.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.2-6 AccessibleStates[0m
  
  [1m[34m> AccessibleStates( [0m[22m[34maut, p[0m[1m[34m ) _______________________________________[0mfunction
  
  Computes the list of states of the non deterministic automaton [22m[34maut[0m which are
  accessible from state [22m[34mp[0m.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.2-7 AccessibleAutomaton[0m
  
  [1m[34m> AccessibleAutomaton( [0m[22m[34mA[0m[1m[34m ) _________________________________________[0mfunction
  
  If  [22m[34mA[0m  is  a  deterministic  automaton, not necessarily dense, an equivalent
  dense   deterministic   accessible  automaton  is  returned.  (The  function
  AccessibleDAutomaton is called.)
  
  If  [22m[34mA[0m  is  not  deterministic  with  a  single  initial state, an equivalent
  accessible automaton is returned.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.2-8 ProductAutomaton[0m
  
  [1m[34m> ProductAutomaton( [0m[22m[34mA1, A2[0m[1m[34m ) _______________________________________[0mfunction
  
  The  arguments must be deterministic automata. Returns the product of [22m[34mA1[0m and
  [22m[34mA2[0m.
  
  Note:  (p,q)->(p-1)m+q  is  a  bijection  from  1,ldotsm, ntimes 1,..., m to
  1,ldotsm,mn.
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
  [1m[4m[31m6.2-9 IntersectionAutomaton[0m
  
  [1m[34m> IntersectionAutomaton( [0m[22m[34mA1, A2[0m[1m[34m ) __________________________________[0mfunction
  
  The same as ProductAutomaton, but works for all kinds of automata
  
  [22m[35m---------------------------  Example  ----------------------------[0m
    [22m[35m[0m
  [22m[35m------------------------------------------------------------------[0m
  
