Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/07/17 14:05:09 (8 years ago)
Author:
epitzer
Message:

#2727 completely replace basic array with array mapped trie in ValueTypeArray and descendants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistentDataStructures/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Prins/PrinsEncoding.cs

    r14186 r14650  
    102102
    103103        //find predecessor / successor in permutation
    104         int predecessorIndex = Array.IndexOf(this.array, tour.Stops[0] - 1) - 1;
     104        int predecessorIndex = historyArray.IndexOf(tour.Stops[0] - 1) - 1;
    105105        if (predecessorIndex >= 0) {
    106106          int predecessor = this[predecessorIndex] + 1;
     
    114114          }
    115115        } else {
    116           int successorIndex = Array.IndexOf(this.array,
     116          int successorIndex = historyArray.IndexOf(
    117117            tour.Stops[tour.Stops.Count - 1] - 1) + 1;
    118118          int successor = this[successorIndex] + 1;
Note: See TracChangeset for help on using the changeset viewer.