Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/15 18:59:07 (9 years ago)
Author:
gkronber
Message:

#2283: worked on generic sequential search alg with bandit policy as parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Problems.GrammaticalOptimization/SantaFeAntProblem.cs

    r11747 r11770  
    1111A -> l | r | m | ?(A)(A) | lA | rA | mA
    1212";
     13
     14
    1315    // original koza grammar
    1416    // Ant -> left | right | move | if-food-ahead Ant Ant | Ant Ant | Ant Ant Ant
     
    103105      do {
    104106        oldPhrase = terminalPhrase;
    105         terminalPhrase.Replace("ll", "rr").Replace("rl", "lr");
     107        terminalPhrase = terminalPhrase.Replace("ll", "rr").Replace("rl", "lr").Replace("lr", "").Replace("lll", "r").Replace("rrr", "l");
    106108      } while (terminalPhrase != oldPhrase);
    107109      return terminalPhrase;
Note: See TracChangeset for help on using the changeset viewer.