- Timestamp:
- 05/23/19 13:42:16 (6 years ago)
- Location:
- trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Hashing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Hashing/HashExtensions.cs
r16979 r16983 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using System.Linq; 25 24 … … 39 38 public SimplifyAction Simplify; 40 39 41 public IComparer<T> Comparer;40 //public IComparer<T> Comparer; 42 41 43 42 public bool IsLeaf => Arity == 0; 44 43 45 public HashNode(IComparer<T> comparer) {46 Comparer = comparer;47 }48 49 privateHashNode() { }44 //public HashNode(IComparer<T> comparer) { 45 // Comparer = comparer; 46 //} 47 48 //public HashNode() { } 50 49 51 50 public int CompareTo(HashNode<T> other) { -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Hashing/SymbolicExpressionTreeHash.cs
r16478 r16983 38 38 private static readonly Constant constant = new Constant(); 39 39 40 private static readonly ISymbolicExpressionTreeNodeComparer comparer = new SymbolicExpressionTreeNodeComparer();41 40 private static ISymbolicExpressionTreeNode ActualRoot(this ISymbolicExpressionTree tree) => tree.Root.GetSubtree(0).GetSubtree(0); 42 41 … … 74 73 } 75 74 var hash = (ulong)name.GetHashCode(); 76 var hashNode = new HashNode<ISymbolicExpressionTreeNode> (comparer){75 var hashNode = new HashNode<ISymbolicExpressionTreeNode> { 77 76 Data = node, 78 77 Arity = node.SubtreeCount,
Note: See TracChangeset
for help on using the changeset viewer.