- Timestamp:
- 03/11/10 02:23:25 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.Permutation/3.3/Manipulators/InversionManipulator.cs
r2994 r2997 47 47 } while (breakPoint2 == breakPoint1); 48 48 if (breakPoint2 < breakPoint1) { int h = breakPoint1; breakPoint1 = breakPoint2; breakPoint2 = h; } 49 Apply(permutation, breakPoint1, breakPoint2); 50 } 49 51 52 public static void Apply(Permutation permutation, int breakPoint1, int breakPoint2) { 50 53 for (int i = 0; i <= (breakPoint2 - breakPoint1) / 2; i++) { // invert permutation between breakpoints 51 54 int temp = permutation[breakPoint1 + i];
Note: See TracChangeset
for help on using the changeset viewer.