Changeset 15334 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/XWordLines.cs
- Timestamp:
- 08/21/17 11:33:53 (7 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP
- Property svn:ignore
-
old new 1 1 *.user 2 packages 3 TestResults
-
- Property svn:ignore
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/XWordLines.cs
r15017 r15334 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 using System.Linq; 3 2 4 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Char; 3 5 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer; … … 6 8 private const string name = "X-Word Lines - Hard"; 7 9 private const string fileName = "XWordLines.csv"; 8 private const string description = "Given an integer X and a string that can contain spaces and newlines, print the string with exactly X words per line.The last line may have fewer than X words.";10 private const string description = "Given an integer X and a string that can contains spaces and newlines, print the string with exactly X words per line. The last line may have fewer than X words."; 9 11 10 12 protected override string FileName { get { return fileName; } } … … 18 20 Name = Name, 19 21 Description = Description, 22 ProgramExecutionBudget = 45000000, 20 23 Examples = CloneExamples(), 21 24 BestResult = 0, 22 WorstResult = 100,25 WorstResult = 5000, 23 26 InputArgumentTypes = new[] { ExampleArgumentType.Integer, ExampleArgumentType.String }, 24 27 OutputArgumentTypes = new[] { ExampleArgumentType.Print }, … … 43 46 InputString = new[] { input[0] }, 44 47 OutputPrint = output[0], 48 // Helper 49 OutputInteger = new[] { input[0].Split(' ', '\n').LongCount(x => !string.IsNullOrWhiteSpace(x)) } 45 50 }; 46 51 }
Note: See TracChangeset
for help on using the changeset viewer.