Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/22/18 13:11:40 (7 years ago)
Author:
lkammere
Message:

#2886: Deactivate generation of dot file for visualizing search tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2886_SymRegGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.SymRegGrammarEnumeration/GrammarEnumeration/Grammar.cs

    r15800 r15803  
    1111  public class Grammar {
    1212
    13     public Symbol StartSymbol;
     13    public Symbol StartSymbol { get; }
    1414
    1515    #region Symbols
    16 
    1716    public VariableSymbol Var;
    1817
     
    4342    #endregion
    4443
    45 
    4644    #region HL Symbols for Parsing ExpressionTrees
    47 
    4845    private TypeCoherentExpressionGrammar symbolicExpressionGrammar;
    4946
     
    6057    private ISymbol rootSy;
    6158    private ISymbol startSy;
    62 
    6359    #endregion
    6460
     
    9086      ClosingBracket = new TerminalSymbol(")");
    9187      #endregion
    92 
    9388
    9489      #region Production rules
     
    179174        }
    180175
    181         var result = uniqueChildHashes.ToList();
    182         result.Sort();
    183         return result.ToArray();
     176        var result = uniqueChildHashes.ToArray();
     177        Array.Sort(result);
     178        return result;
    184179      }
    185180
     
    266261      return hashesArray.Aggregate(start, (result, ti) => ((result << 5) + result) ^ ti.GetHashCode());
    267262    }
    268 
    269     /*
    270     private void CancelOutCompoundInverse(Stack<Symbol> parseStack) {
    271       // Resolve compound divisions
    272       int compoundFractionsCount = 0;
    273 
    274       while (ReferenceEquals(parseStack.Peek(), Inv)) {
    275         compoundFractionsCount++;
    276         parseStack.Pop();
    277       }
    278 
    279       if (compoundFractionsCount % 2 != 0) {
    280         // Compound division are reduced to a single division.
    281         parseStack.Push(Inv);
    282       } // else: compound divisions fully cancel out each other.
    283     } */
    284263    #endregion
    285264
Note: See TracChangeset for help on using the changeset viewer.