Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/17 11:23:05 (7 years ago)
Author:
pkimmesw
Message:

#2665 Added IsNoop to Expression, Made Expressions storable, Fixed Debugger, Fixed and improved problem data and result visualisation, Added custom ErcOption view, Added problem difficulty to problem data name

Location:
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Checksum.cs

    r14909 r14952  
    44
    55  public class Checksum : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Checksum";
     6    private const string name = "Checksum - Hard";
    77    private const string fileName = "Checksum.csv";
    88    private const string description = "Given a string, convert each character in the string into its integer ASCII value, sum them, take the sum modulo 64, add the integer value of the space character, and then convert that integer back into its corresponding character(the checksum character). The program must print Check sum is X, where X is replaced by the correct checksum character.";
     
    3131          ErcProbability = 0.05,
    3232          IntegerErcOptions = new IntegerErcOptions(
    33             new IntegerConstantErcValue(64),
    34             new IntegerRangeErcValue(-128, 128)),
     33            new IntegerConstantErc(64),
     34            new IntegerRangeErc(-128, 128)),
    3535          CharErcOptions = new CharErcOptions(
    36             new IntegerConstantErcValue(' '),
    37             new IntegerRangeErcValue(0x20, 0x7e))
     36            new IntegerConstantErc(' '),
     37            new IntegerRangeErc(0x20, 0x7e))
    3838        }
    3939      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CollatzNumbers.cs

    r14897 r14952  
    33
    44  public class CollatzNumbers : BenchmarkSuiteDataDescriptor {
    5     private const string name = "Collatz Numbers";
     5    private const string name = "Collatz Numbers - Hard";
    66    private const string fileName = "CollatzNumbers.csv";
    77    private const string description = "Given an integer, find the number of terms in the Collatz(hailstone) sequence starting from that integer.";
     
    3030          ErcProbability = 0.05,
    3131          IntegerErcOptions = new IntegerErcOptions(
    32             new IntegerConstantErcValue(0, 1),
    33             new IntegerRangeErcValue(-100, 100))
     32            new IntegerConstantErc(0, 1),
     33            new IntegerRangeErc(-100, 100))
    3434        }
    3535      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CompareStringLengths.cs

    r14905 r14952  
    33
    44  public class CompareStringLengths : BenchmarkSuiteDataDescriptor {
    5     private const string name = "Compare String Lengths";
     5    private const string name = "Compare String Lengths - Hard";
    66    private const string fileName = "CompareStringLengths.csv";
    77    private const string description = " Given three strings n1, n2, and n3, return true if length(n1) < length(n2) < length(n3), and false otherwise";
     
    3030          ErcProbability = 0.05,
    3131          BooleanErcOptions = new BooleanErcOptions(
    32             new BooleanRandomErcValue {
     32            new BooleanRandomErc {
    3333              AllowTrue = true,
    3434              AllowFalse = true
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CountOdds.cs

    r14897 r14952  
    33
    44  public class CountOdds : BenchmarkSuiteDataDescriptor {
    5     private const string name = "Count Odds";
     5    private const string name = "Count Odds - Hard";
    66    private const string fileName = "CountOdds.csv";
    77    private const string description = "Given a vector of integers, return the number of integers that are odd, without use of a specific even or odd instruction(but allowing instructions such as mod and quotient)";
     
    3030          ErcProbability = 0.05,
    3131          IntegerErcOptions = new IntegerErcOptions(
    32             new IntegerConstantErcValue(0, 1, 2),
    33             new IntegerRangeErcValue(-1000, 1000)),
     32            new IntegerConstantErc(0, 1, 2),
     33            new IntegerRangeErc(-1000, 1000)),
    3434        }
    3535      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Digits.cs

    r14909 r14952  
    44
    55  public class Digits : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Digits";
     6    private const string name = "Digits - Hard";
    77    private const string fileName = "Digits.csv";
    88    private const string description = "Given an integer, print that integer’s digits each on their own line starting with the least significant digit.A negative integer should have the negative sign printed before the most significant digit.";
     
    3131          ErcProbability = 0.05,
    3232          IntegerErcOptions = new IntegerErcOptions(
    33             new IntegerRangeErcValue(-10, 10)),
     33            new IntegerRangeErc(-10, 10)),
    3434          CharErcOptions = new CharErcOptions(
    35             new IntegerConstantErcValue('\r'))
     35            new IntegerConstantErc('\n'))
    3636        }
    3737      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/DoubleLetters.cs

    r14909 r14952  
    44
    55  public class DoubleLetters : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Double Letters";
     6    private const string name = "Double Letters - Hard";
    77    private const string fileName = "DoubleLetters.csv";
    88    private const string description = "Given a string, print the string, doubling every letter character, and tripling every exclamation point.All other non-alphabetic and non-exclamation characters should be printed a single time each";
     
    3131          ErcProbability = 0.02,
    3232          CharErcOptions = new CharErcOptions(
    33             new IntegerConstantErcValue('!'))
     33            new IntegerConstantErc('!'))
    3434        }
    3535      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/EvenSquares.cs

    r14909 r14952  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
    22  public class EvenSquares : BenchmarkSuiteDataDescriptor {
    3     private const string name = "Even Sqaures";
     3    private const string name = "Even Sqaures - Hard";
    44    private const string fileName = "EvenSquares.csv";
    55    private const string description = " Given an integer n, print all of the positive even perfect squares less than n on separate lines.";
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ForLoopIndex.cs

    r14909 r14952  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
    22  public class ForLoopIndex : BenchmarkSuiteDataDescriptor {
    3     private const string name = "For Loop Index";
     3    private const string name = "For Loop Index - Hard";
    44    private const string fileName = "ForLoopIndex.csv";
    55    private const string description = "Given 3 integer inputs start,end, and step, print the integers in the sequence n|0 = start, n|i = n|i−1 + step for each n|i < end, each on their own line.";
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Grades.cs

    r14909 r14952  
    44
    55  public class Grades : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Grades";
     6    private const string name = "Grades - Hard";
    77    private const string fileName = "Grades.csv";
    88    private const string description = "Given 5 integers, the first four represent the lower numeric thresholds for achieving an A, B, C, and D, and will be distinct and in descending order.The fifth represents the student’s numeric grade.The program must print Student has a X grade., where X is A, B, C, D, or F depending on the thresholds and the numeric grade.";
     
    3131          ErcProbability = 0.05,
    3232          IntegerErcOptions = new IntegerErcOptions(
    33             new IntegerRangeErcValue(0, 100)),
     33            new IntegerRangeErc(0, 100)),
    3434          StringErcOptions = new StringErcOptions(
    35             new StringConstantErcValue("Student has a ", " grade", "A", "B", "C", "D", "F"))
     35            new StringConstantErc("Student has a ", " grade", "A", "B", "C", "D", "F"))
    3636        }
    3737      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/LastIndexOfZero.cs

    r14897 r14952  
    33
    44  public class LastIndexOfZero : BenchmarkSuiteDataDescriptor {
    5     private const string name = "Last Index of Zero";
     5    private const string name = "Last Index of Zero - Hard";
    66    private const string fileName = "LastIndexOfZero.csv";
    77    private const string description = "Given a vector of integers, at least one of which is 0, return the index of the last occurrence of 0 in the vector.";
     
    3030          ErcProbability = 0.05,
    3131          IntegerErcOptions = new IntegerErcOptions(
    32             new IntegerConstantErcValue(0),
    33             new IntegerRangeErcValue(-50, 50))
     32            new IntegerConstantErc(0),
     33            new IntegerRangeErc(-50, 50))
    3434          }
    3535      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Median.cs

    r14897 r14952  
    33
    44  public class Median : BenchmarkSuiteDataDescriptor {
    5     private const string name = "Median";
     5    private const string name = "Median - Medium";
    66    private const string fileName = "Median.csv";
    77    private const string description = "Given 3 integers, print their median.";
     
    3030          ErcProbability = 0.05,
    3131          IntegerErcOptions = new IntegerErcOptions(
    32             new IntegerConstantErcValue(0),
    33             new IntegerRangeErcValue(-1000, 100))
     32            new IntegerConstantErc(0),
     33            new IntegerRangeErc(-1000, 100))
    3434        }
    3535      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/MirrorImage.cs

    r14897 r14952  
    33
    44  public class MirrorImage : BenchmarkSuiteDataDescriptor {
    5     private const string name = "Mirror Image";
     5    private const string name = "Mirror Image - Easy";
    66    private const string fileName = "MirrorImage.csv";
    77    private const string description = "Given two vectors of integers, return true if one vector is the reverse of the other, and false otherwise.";
     
    3030          ErcProbability = 0.05,
    3131          BooleanErcOptions = new BooleanErcOptions(
    32             new BooleanRandomErcValue {
     32            new BooleanRandomErc {
    3333              AllowFalse = true,
    3434              AllowTrue = true
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NegativeToZero.cs

    r14897 r14952  
    44
    55  public class NegativeToZero : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Negative to Zero";
     6    private const string name = "Negative to Zero - Medium";
    77    private const string fileName = "NegativeToZero.csv";
    88    private const string description = "Given a vector of integers, return the vector where all negative integers have been replaced by 0.";
     
    3131          ErcProbability = 0.05,
    3232          IntegerErcOptions = new IntegerErcOptions(
    33             new IntegerConstantErcValue(0)),
     33            new IntegerConstantErc(0)),
    3434          IntegerVectorErcOptions = new IntegerVectorErcOptions(
    35             new IntegerVectorConstantsErcValue(new int[0]))
     35            new IntegerVectorConstantsErc(new int[0]))
    3636        }
    3737      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NumberIo.cs

    r14897 r14952  
    44
    55  public class NumberIO : BenchmarkSuiteDataDescriptor {
    6     private const string name = "NumberIO";
     6    private const string name = "NumberIO - Easy";
    77    private const string fileName = "NumberIO.csv";
    88    private const string description = "Given an integer and a float, calc their sum.";
     
    2525        TrainingCount = 25,
    2626        TestCount = 1000,
    27         EnabledDataTypes = DataTypes.Integer | DataTypes.Float,
     27        EnabledDataTypes = DataTypes.Integer | DataTypes.Float | DataTypes.Print,
    2828        EvalLimit = 200,
    2929        MaxSize = 200,
     
    3131          ErcProbability = 0.01,
    3232          IntegerErcOptions = new IntegerErcOptions(
    33             new IntegerRangeErcValue(-100, 100)),
     33            new IntegerRangeErc(-100, 100)),
    3434          FloatErcOptions = new FloatErcOptions(
    35             new FloatRangeErcValue(-100, 100))
     35            new FloatRangeErc(-100, 100))
    3636        }
    3737      };
     
    4444        InputFloat = ExampleArgumentConverter.ConvertDoubles(input[0]),
    4545        InputInteger = ExampleArgumentConverter.ConvertIntegers(input[1]),
    46         OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0])
     46        OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0]),
     47        //OutputPrint = output[0]
    4748      };
    4849    }
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/PigLatin.cs

    r14909 r14952  
    55
    66  public class PigLatin : BenchmarkSuiteDataDescriptor {
    7     private const string name = "Pig Latin";
     7    private const string name = "Pig Latin - Hard";
    88    private const string fileName = "PigLatin.csv";
    99    private const string description = "Given a string containing lowercase words separated by single spaces, print the string with each word translated to pig Latin.Specifically, if a word starts with a vowel, it should have“ay”added to its end; otherwise, the first letter is moved to the end of the word, followed by “ay”.";
     
    3232          ErcProbability = 0.05,
    3333          CharErcOptions = new CharErcOptions(
    34             new IntegerConstantErcValue(' ', 'a', 'e', 'i', 'o', 'u'),
    35             new IntegerRangeErcValue(0x20, 0x7e)),
     34            new IntegerConstantErc(' ', 'a', 'e', 'i', 'o', 'u'),
     35            new IntegerRangeErc(0x20, 0x7e)),
    3636          StringErcOptions = new StringErcOptions(
    37             new StringConstantErcValue("ay", "aeiou"),
    38             new StringRandomErcValue {
     37            new StringConstantErc("ay", "aeiou"),
     38            new StringRandomErc {
    3939              IsEnabled = true,
    4040              AllowLowercaseLetters = true,
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ReplaceSpaceWithNewline.cs

    r14909 r14952  
    55
    66  public class ReplaceSpaceWithNewline : BenchmarkSuiteDataDescriptor {
    7     private const string name = "Replace Space with Newline";
     7    private const string name = "Replace Space with Newline - Medium";
    88    private const string fileName = "ReplaceSpaceWithNewline.csv";
    99    private const string description = " Given a string input, print the string, replacing spaces with newlines.Also, return the integer count of the non- whitespace characters. The input string will not have tabs or newlines.";
     
    3232          ErcProbability = 0.05,
    3333          CharErcOptions = new CharErcOptions(
    34             new IntegerConstantErcValue(' ', '\r'),
    35             new IntegerRangeErcValue(0x20, 0x7e)),
     34            new IntegerConstantErc(' ', '\n'),
     35            new IntegerRangeErc(0x20, 0x7e)),
    3636          StringErcOptions = new StringErcOptions(
    37             new StringRandomErcValue {
     37            new StringRandomErc {
    3838              IsEnabled = true,
    3939              AllowLowercaseLetters = true,
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ScrabbleScore.cs

    r14909 r14952  
    44
    55  public class ScrabbleScore : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Scrabble Score";
     6    private const string name = "Scrabble Score - Hard";
    77    private const string fileName = "ScrabbleScore.csv";
    88    private const string description = "Given a string of visible ASCII characters, return the Scrabble score for that string. Each letter has a corresponding value according to normal Scrabble rules, and non-letter characters are worth zero.";
     
    6161          ErcProbability = 0.05,
    6262          IntegerErcOptions = new IntegerErcOptions(
    63             new IntegerConstantErcValue(ScrabbleValues)),
     63            new IntegerConstantErc(ScrabbleValues)),
    6464          IntegerVectorErcOptions = new IntegerVectorErcOptions(
    65             new IntegerVectorConstantsErcValue(ScrabbleValues))
     65            new IntegerVectorConstantsErc(ScrabbleValues))
    6666        }
    6767      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SmallOrLarge.cs

    r14897 r14952  
    44
    55  public class SmallOrLarge : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Small or Large";
     6    private const string name = "Small or Large - Hard";
    77    private const string fileName = "SmallOrLarge.csv";
    88    private const string description =
     
    3232          ErcProbability = 0.05,
    3333          IntegerErcOptions = new IntegerErcOptions(
    34             new IntegerRangeErcValue(-10000, 10000)),
     34            new IntegerRangeErc(-10000, 10000)),
    3535          StringErcOptions = new StringErcOptions(
    36             new StringConstantErcValue("small", "large"))
     36            new StringConstantErc("small", "large"))
    3737        }
    3838      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Smallest.cs

    r14897 r14952  
    33
    44  public class Smallest : BenchmarkSuiteDataDescriptor {
    5     private const string name = "Smallest";
     5    private const string name = "Smallest - Easy";
    66    private const string fileName = "Smallest.csv";
    77    private const string description = "Given 4 integers, print the smallest of them.";
     
    3030          ErcProbability = 0.05,
    3131          IntegerErcOptions = new IntegerErcOptions(
    32             new IntegerRangeErcValue(-100, 100)),
     32            new IntegerRangeErc(-100, 100)),
    3333        }
    3434      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/StringDifferences.cs

    r14909 r14952  
    44
    55  public class StringDifferences : BenchmarkSuiteDataDescriptor {
    6     private const string name = "String Differences";
     6    private const string name = "String Differences - Hard";
    77    private const string fileName = "StringDifferences.csv";
    88    private const string description = "Given 2 strings (without whitespace) as input, find the indices at which the strings have different characters, stopping at the end of the shorter one.For each such index, print a line containing the index as well as the character in each string. For example, if the strings are “dealer” and “dollars”, the program should print: 1 e o, 2 a l, 4 e a";
     
    3131          ErcProbability = 0.05,
    3232          CharErcOptions = new CharErcOptions(
    33             new IntegerConstantErcValue(' ', '\r')),
     33            new IntegerConstantErc(' ', '\n')),
    3434          IntegerErcOptions = new IntegerErcOptions(
    35             new IntegerRangeErcValue(-10, 10))
     35            new IntegerRangeErc(-10, 10))
    3636        }
    3737      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/StringLengthsBackwards.cs

    r14909 r14952  
    33
    44  public class StringLengthsBackwards : BenchmarkSuiteDataDescriptor {
    5     private const string name = "String Length Backwards";
     5    private const string name = "String Length Backwards - Medium";
    66    private const string fileName = "StringLengthsBackwards.csv";
    77    private const string description = "Given a vector of strings, print the length of each string in the vector starting with the last and ending with the first.";
     
    3030          ErcProbability = 0.05,
    3131          IntegerErcOptions = new IntegerErcOptions(
    32             new IntegerRangeErcValue(-100, 100))
     32            new IntegerRangeErc(-100, 100))
    3333        }
    3434      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SumOfSquares.cs

    r14897 r14952  
    33
    44  public class SumOfSquares : BenchmarkSuiteDataDescriptor {
    5     private const string name = "Sum of Squares";
     5    private const string name = "Sum of Squares - Hard";
    66    private const string fileName = "SumOfSquares.csv";
    77    private const string description = "Given integer n, return the sum of squaring each integer in the range[1, n].";
     
    3030          ErcProbability = 0.05,
    3131          IntegerErcOptions = new IntegerErcOptions(
    32             new IntegerRangeErcValue(-100, 100))
     32            new IntegerRangeErc(-100, 100))
    3333        }
    3434      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SuperAnagrams.cs

    r14897 r14952  
    55
    66  public class SuperAnagrams : BenchmarkSuiteDataDescriptor {
    7     private const string name = "Super Anagrams";
     7    private const string name = "Super Anagrams - Hard";
    88    private const string fileName = "SuperAnagrams.csv";
    99    private const string description = "Given strings x and y of lowercase letters, return true if y is a super anagram of x, which is the case if every character in x is in y.To be true, y may contain extra characters, but must have at least as many copies of each character as x does.";
     
    3232          ErcProbability = 0.05,
    3333          BooleanErcOptions = new BooleanErcOptions(
    34             new BooleanRandomErcValue {
     34            new BooleanRandomErc {
    3535              IsEnabled = true,
    3636              AllowFalse = true,
     
    3838            }),
    3939          IntegerErcOptions = new IntegerErcOptions(
    40             new IntegerRangeErcValue(-1000, 1000)),
     40            new IntegerRangeErc(-1000, 1000)),
    4141          CharErcOptions = new CharErcOptions(
    42             new IntegerRangeErcValue(0x20, 0x7e))
     42            new IntegerRangeErc(0x20, 0x7e))
    4343        }
    4444      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Syllables.cs

    r14909 r14952  
    55
    66  public class Syllables : BenchmarkSuiteDataDescriptor {
    7     private const string name = "Syllables";
     7    private const string name = "Syllables - Hard";
    88    private const string fileName = "Syllables.csv";
    99    private const string description = "Given a string containing symbols, spaces, digits, and lowercase letters, count the number of occurrences of vowels(a, e, i, o, u, y) in the string and print that number as X in The number of syllables is X.";
     
    3232          ErcProbability = 0.05,
    3333          StringErcOptions = new StringErcOptions(
    34             new StringConstantErcValue("The number of syllables is ", "aeiouy" ),
    35             new StringRandomErcValue {
     34            new StringConstantErc("The number of syllables is ", "aeiouy" ),
     35            new StringRandomErc {
    3636              AllowLowercaseLetters = true,
    3737              AllowUppercaseLetters = false,
     
    4343            }),
    4444          CharErcOptions = new CharErcOptions (
    45             new IntegerConstantErcValue('a', 'e', 'i', 'o', 'u'),
    46             new IntegerRangeErcValue(0x20, 0x7e))
     45            new IntegerConstantErc('a', 'e', 'i', 'o', 'u'),
     46            new IntegerRangeErc(0x20, 0x7e))
    4747        }
    4848      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/VectorAverage.cs

    r14875 r14952  
    11namespace HeuristicLab.BenchmarkSuite.Problems {
    22  public class VectorAverage : BenchmarkSuiteDataDescriptor {
    3     private const string name = "Vector Average";
     3    private const string name = "Vector Average - Medium";
    44    private const string fileName = "VectorAverage.csv";
    55    private const string description = "Given a vector of floats, return the average of those floats. Results are rounded to 4 decimal places.";
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/VectorSummed.cs

    r14897 r14952  
    44
    55  public class VectorSummed : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Vector Summed";
     6    private const string name = "Vector Summed - Hard";
    77    private const string fileName = "VectorSummed.csv";
    88    private const string description = "Given two equal-sized vectors of integers, return a vector of integers that contains the sum of the input vectors at each index.";
     
    3131          ErcProbability = 0.05,
    3232          IntegerVectorErcOptions = new IntegerVectorErcOptions(
    33             new IntegerVectorConstantsErcValue(new int[0])),
     33            new IntegerVectorConstantsErc(new int[0])),
    3434          IntegerErcOptions = new IntegerErcOptions(
    35             new IntegerRangeErcValue(-1000, 1000))
     35            new IntegerRangeErc(-1000, 1000))
    3636        }
    3737      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/WallisPi.cs

    r14897 r14952  
    44
    55  public class WallisPi : BenchmarkSuiteDataDescriptor {
    6     private const string name = "Wallis Pi";
     6    private const string name = "Wallis Pi - Hard";
    77    private const string fileName = "WallisPi.csv";
    88    private const string description = " John Wallis gave a infinite product that converges to π/4. Given an integer input n, compute an approximation of this product out to n terms.Results are rounded to 5 decimal place";
     
    3131          ErcProbability = 0.05,
    3232          FloatErcOptions = new FloatErcOptions(
    33             new FloatRangeErcValue(-500, 500)),
     33            new FloatRangeErc(-500, 500)),
    3434          IntegerErcOptions = new IntegerErcOptions(
    35             new IntegerRangeErcValue(-500, 500))
     35            new IntegerRangeErc(-500, 500))
    3636        }
    3737      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/WordStats.cs

    r14909 r14952  
    66
    77  public class WordStats : BenchmarkSuiteDataDescriptor {
    8     private const string name = "Word Stats";
     8    private const string name = "Word Stats - Hard";
    99    private const string fileName = "WordStats.csv";
    1010    private const string description = "Given a string, print the number of words containing n characters for n from 1 to the length of the longest word. At the end of the output, print a line that gives the number of sentences and line that gives the average sentence length. A word is any string of consecutive non-whitespace characters(including sentence terminators). Every string will contain at least one sentence terminator(period, exclamation point, or question mark). The average sentence length is the number of words in the file divided by the number of sentence terminator characters.";
     
    3333          ErcProbability = 0.05,
    3434          IntegerErcOptions = new IntegerErcOptions(
    35             new IntegerRangeErcValue(-100, 100)),
     35            new IntegerRangeErc(-100, 100)),
    3636          IntegerVectorErcOptions = new IntegerVectorErcOptions(
    37             new IntegerVectorConstantsErcValue(new int[0])),
     37            new IntegerVectorConstantsErc(new int[0])),
    3838          CharErcOptions = new CharErcOptions(
    39             new IntegerConstantErcValue('.', '?', '!', ' ', '\t', '\r', ':')),
     39            new IntegerConstantErc('.', '?', '!', ' ', '\t', '\n', ':')),
    4040          StringErcOptions = new StringErcOptions(
    41             new StringConstantErcValue("words of length ", ": ", "number of sentences: ", "average sentence length: "))
     41            new StringConstantErc("words of length ", ": ", "number of sentences: ", "average sentence length: "))
    4242        }
    4343      };
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/XWordLines.cs

    r14909 r14952  
    44
    55  public class XWordLines : BenchmarkSuiteDataDescriptor {
    6     private const string name = "X-Word Lines";
     6    private const string name = "X-Word Lines - Hard";
    77    private const string fileName = "XWordLines.csv";
    88    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.";
     
    3131          ErcProbability = 0.05,
    3232          CharErcOptions = new CharErcOptions(
    33             new IntegerConstantErcValue(' ', '\r')),
     33            new IntegerConstantErc(' ', '\n')),
    3434        }
    3535      };
Note: See TracChangeset for help on using the changeset viewer.