Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/16/14 21:51:40 (8 years ago)
Author:
gkronber
Message:

#2283: added exhaustive BFS and DFS

Location:
branches/HeuristicLab.Problems.GrammaticalOptimization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization

    • Property svn:ignore
      •  

        old new  
        22*.suo
        33TestResults
         4_ReSharper.GrammaticalOptimization
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Main/Program.cs

    r11659 r11690  
    1010  class Program {
    1111    static void Main(string[] args) {
    12       int maxIterations = 100000;
     12      int maxIterations = 10000000;
    1313      int iterations = 0;
    1414      var sw = new Stopwatch();
     
    1616      string bestSentence = "";
    1717
    18       var rs = new RandomSearch(100);
     18      var rs = new ExhaustiveDepthFirstSearch(17);
    1919
    2020      rs.FoundNewBestSolution += (sentence, quality) => {
     
    2525      rs.SolutionEvaluated += (sentence, quality) => {
    2626        iterations++;
    27         if (iterations % 1000 == 0) {
     27        if (iterations % 10000 == 0) {
    2828          Console.WriteLine("{0,10} {1,10:F5} {2,10:F5} {3}", iterations, bestQuality, quality, sentence);
    2929        }
Note: See TracChangeset for help on using the changeset viewer.