Changeset 15606 for branches/MCTS-SymbReg-2796/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/Automaton.cs
- Timestamp:
- 01/12/18 16:27:39 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MCTS-SymbReg-2796/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/Automaton.cs
r15441 r15606 27 27 28 28 namespace HeuristicLab.Algorithms.DataAnalysis.MctsSymbolicRegression { 29 // this is the core class for generating expressions.30 // it represents a finite state automaton, each state transition can be associated with an action (e.g. to produce code).31 // the automaton determines the possible structures for expressions.29 // This is the core class for generating expressions. 30 // It represents a finite state automaton, each state transition can be associated with an action (e.g. to produce code). 31 // The automaton determines the possible structures for expressions. 32 32 // 33 // to understand this code it is worthwile to generate a graphical visualization of the automaton (see PrintAutomaton).34 // If the code is compiled in debug mode the automaton produces a Graphviz file into the folder of the application33 // To understand this code, it is worthwhile to generate a graphical visualization of the automaton (see PrintAutomaton). 34 // If the code is compiled in debug mode, the automaton produces a Graphviz file into the folder of the application 35 35 // whenever an instance of the automaton is constructed. 36 36 // … … 139 139 } 140 140 141 // postfix notation141 // Produce postfix notation for expression: 142 142 // Expr -> 0 Term { '+' Term } '+' 'exit' 143 143 // Term -> c Fact { '*' Fact } '*' … … 366 366 followStates[StateExprEnd] = new List<int>(); // no follow states 367 367 368 // order all follow states (the first follow state leads to the final state)368 // order all follow states (the first follow state leads to the final state) 369 369 foreach (var list in followStates) { 370 370 if (list != null)
Note: See TracChangeset
for help on using the changeset viewer.