Changeset 14952 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems
- Timestamp:
- 05/10/17 11:23:05 (8 years ago)
- 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 4 4 5 5 public class Checksum : BenchmarkSuiteDataDescriptor { 6 private const string name = "Checksum ";6 private const string name = "Checksum - Hard"; 7 7 private const string fileName = "Checksum.csv"; 8 8 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."; … … 31 31 ErcProbability = 0.05, 32 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerConstantErc Value(64),34 new IntegerRangeErc Value(-128, 128)),33 new IntegerConstantErc(64), 34 new IntegerRangeErc(-128, 128)), 35 35 CharErcOptions = new CharErcOptions( 36 new IntegerConstantErc Value(' '),37 new IntegerRangeErc Value(0x20, 0x7e))36 new IntegerConstantErc(' '), 37 new IntegerRangeErc(0x20, 0x7e)) 38 38 } 39 39 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CollatzNumbers.cs
r14897 r14952 3 3 4 4 public class CollatzNumbers : BenchmarkSuiteDataDescriptor { 5 private const string name = "Collatz Numbers ";5 private const string name = "Collatz Numbers - Hard"; 6 6 private const string fileName = "CollatzNumbers.csv"; 7 7 private const string description = "Given an integer, find the number of terms in the Collatz(hailstone) sequence starting from that integer."; … … 30 30 ErcProbability = 0.05, 31 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerConstantErc Value(0, 1),33 new IntegerRangeErc Value(-100, 100))32 new IntegerConstantErc(0, 1), 33 new IntegerRangeErc(-100, 100)) 34 34 } 35 35 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CompareStringLengths.cs
r14905 r14952 3 3 4 4 public class CompareStringLengths : BenchmarkSuiteDataDescriptor { 5 private const string name = "Compare String Lengths ";5 private const string name = "Compare String Lengths - Hard"; 6 6 private const string fileName = "CompareStringLengths.csv"; 7 7 private const string description = " Given three strings n1, n2, and n3, return true if length(n1) < length(n2) < length(n3), and false otherwise"; … … 30 30 ErcProbability = 0.05, 31 31 BooleanErcOptions = new BooleanErcOptions( 32 new BooleanRandomErc Value{32 new BooleanRandomErc { 33 33 AllowTrue = true, 34 34 AllowFalse = true -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/CountOdds.cs
r14897 r14952 3 3 4 4 public class CountOdds : BenchmarkSuiteDataDescriptor { 5 private const string name = "Count Odds ";5 private const string name = "Count Odds - Hard"; 6 6 private const string fileName = "CountOdds.csv"; 7 7 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)"; … … 30 30 ErcProbability = 0.05, 31 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerConstantErc Value(0, 1, 2),33 new IntegerRangeErc Value(-1000, 1000)),32 new IntegerConstantErc(0, 1, 2), 33 new IntegerRangeErc(-1000, 1000)), 34 34 } 35 35 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Digits.cs
r14909 r14952 4 4 5 5 public class Digits : BenchmarkSuiteDataDescriptor { 6 private const string name = "Digits ";6 private const string name = "Digits - Hard"; 7 7 private const string fileName = "Digits.csv"; 8 8 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."; … … 31 31 ErcProbability = 0.05, 32 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerRangeErc Value(-10, 10)),33 new IntegerRangeErc(-10, 10)), 34 34 CharErcOptions = new CharErcOptions( 35 new IntegerConstantErc Value('\r'))35 new IntegerConstantErc('\n')) 36 36 } 37 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/DoubleLetters.cs
r14909 r14952 4 4 5 5 public class DoubleLetters : BenchmarkSuiteDataDescriptor { 6 private const string name = "Double Letters ";6 private const string name = "Double Letters - Hard"; 7 7 private const string fileName = "DoubleLetters.csv"; 8 8 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"; … … 31 31 ErcProbability = 0.02, 32 32 CharErcOptions = new CharErcOptions( 33 new IntegerConstantErc Value('!'))33 new IntegerConstantErc('!')) 34 34 } 35 35 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/EvenSquares.cs
r14909 r14952 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 2 public class EvenSquares : BenchmarkSuiteDataDescriptor { 3 private const string name = "Even Sqaures ";3 private const string name = "Even Sqaures - Hard"; 4 4 private const string fileName = "EvenSquares.csv"; 5 5 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 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 2 public class ForLoopIndex : BenchmarkSuiteDataDescriptor { 3 private const string name = "For Loop Index ";3 private const string name = "For Loop Index - Hard"; 4 4 private const string fileName = "ForLoopIndex.csv"; 5 5 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 4 4 5 5 public class Grades : BenchmarkSuiteDataDescriptor { 6 private const string name = "Grades ";6 private const string name = "Grades - Hard"; 7 7 private const string fileName = "Grades.csv"; 8 8 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."; … … 31 31 ErcProbability = 0.05, 32 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerRangeErc Value(0, 100)),33 new IntegerRangeErc(0, 100)), 34 34 StringErcOptions = new StringErcOptions( 35 new StringConstantErc Value("Student has a ", " grade", "A", "B", "C", "D", "F"))35 new StringConstantErc("Student has a ", " grade", "A", "B", "C", "D", "F")) 36 36 } 37 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/LastIndexOfZero.cs
r14897 r14952 3 3 4 4 public class LastIndexOfZero : BenchmarkSuiteDataDescriptor { 5 private const string name = "Last Index of Zero ";5 private const string name = "Last Index of Zero - Hard"; 6 6 private const string fileName = "LastIndexOfZero.csv"; 7 7 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."; … … 30 30 ErcProbability = 0.05, 31 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerConstantErc Value(0),33 new IntegerRangeErc Value(-50, 50))32 new IntegerConstantErc(0), 33 new IntegerRangeErc(-50, 50)) 34 34 } 35 35 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Median.cs
r14897 r14952 3 3 4 4 public class Median : BenchmarkSuiteDataDescriptor { 5 private const string name = "Median ";5 private const string name = "Median - Medium"; 6 6 private const string fileName = "Median.csv"; 7 7 private const string description = "Given 3 integers, print their median."; … … 30 30 ErcProbability = 0.05, 31 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerConstantErc Value(0),33 new IntegerRangeErc Value(-1000, 100))32 new IntegerConstantErc(0), 33 new IntegerRangeErc(-1000, 100)) 34 34 } 35 35 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/MirrorImage.cs
r14897 r14952 3 3 4 4 public class MirrorImage : BenchmarkSuiteDataDescriptor { 5 private const string name = "Mirror Image ";5 private const string name = "Mirror Image - Easy"; 6 6 private const string fileName = "MirrorImage.csv"; 7 7 private const string description = "Given two vectors of integers, return true if one vector is the reverse of the other, and false otherwise."; … … 30 30 ErcProbability = 0.05, 31 31 BooleanErcOptions = new BooleanErcOptions( 32 new BooleanRandomErc Value{32 new BooleanRandomErc { 33 33 AllowFalse = true, 34 34 AllowTrue = true -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NegativeToZero.cs
r14897 r14952 4 4 5 5 public class NegativeToZero : BenchmarkSuiteDataDescriptor { 6 private const string name = "Negative to Zero ";6 private const string name = "Negative to Zero - Medium"; 7 7 private const string fileName = "NegativeToZero.csv"; 8 8 private const string description = "Given a vector of integers, return the vector where all negative integers have been replaced by 0."; … … 31 31 ErcProbability = 0.05, 32 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerConstantErc Value(0)),33 new IntegerConstantErc(0)), 34 34 IntegerVectorErcOptions = new IntegerVectorErcOptions( 35 new IntegerVectorConstantsErc Value(new int[0]))35 new IntegerVectorConstantsErc(new int[0])) 36 36 } 37 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/NumberIo.cs
r14897 r14952 4 4 5 5 public class NumberIO : BenchmarkSuiteDataDescriptor { 6 private const string name = "NumberIO ";6 private const string name = "NumberIO - Easy"; 7 7 private const string fileName = "NumberIO.csv"; 8 8 private const string description = "Given an integer and a float, calc their sum."; … … 25 25 TrainingCount = 25, 26 26 TestCount = 1000, 27 EnabledDataTypes = DataTypes.Integer | DataTypes.Float ,27 EnabledDataTypes = DataTypes.Integer | DataTypes.Float | DataTypes.Print, 28 28 EvalLimit = 200, 29 29 MaxSize = 200, … … 31 31 ErcProbability = 0.01, 32 32 IntegerErcOptions = new IntegerErcOptions( 33 new IntegerRangeErc Value(-100, 100)),33 new IntegerRangeErc(-100, 100)), 34 34 FloatErcOptions = new FloatErcOptions( 35 new FloatRangeErc Value(-100, 100))35 new FloatRangeErc(-100, 100)) 36 36 } 37 37 }; … … 44 44 InputFloat = ExampleArgumentConverter.ConvertDoubles(input[0]), 45 45 InputInteger = ExampleArgumentConverter.ConvertIntegers(input[1]), 46 OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0]) 46 OutputFloat = ExampleArgumentConverter.ConvertDoubles(output[0]), 47 //OutputPrint = output[0] 47 48 }; 48 49 } -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/PigLatin.cs
r14909 r14952 5 5 6 6 public class PigLatin : BenchmarkSuiteDataDescriptor { 7 private const string name = "Pig Latin ";7 private const string name = "Pig Latin - Hard"; 8 8 private const string fileName = "PigLatin.csv"; 9 9 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”."; … … 32 32 ErcProbability = 0.05, 33 33 CharErcOptions = new CharErcOptions( 34 new IntegerConstantErc Value(' ', 'a', 'e', 'i', 'o', 'u'),35 new IntegerRangeErc Value(0x20, 0x7e)),34 new IntegerConstantErc(' ', 'a', 'e', 'i', 'o', 'u'), 35 new IntegerRangeErc(0x20, 0x7e)), 36 36 StringErcOptions = new StringErcOptions( 37 new StringConstantErc Value("ay", "aeiou"),38 new StringRandomErc Value{37 new StringConstantErc("ay", "aeiou"), 38 new StringRandomErc { 39 39 IsEnabled = true, 40 40 AllowLowercaseLetters = true, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ReplaceSpaceWithNewline.cs
r14909 r14952 5 5 6 6 public class ReplaceSpaceWithNewline : BenchmarkSuiteDataDescriptor { 7 private const string name = "Replace Space with Newline ";7 private const string name = "Replace Space with Newline - Medium"; 8 8 private const string fileName = "ReplaceSpaceWithNewline.csv"; 9 9 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."; … … 32 32 ErcProbability = 0.05, 33 33 CharErcOptions = new CharErcOptions( 34 new IntegerConstantErc Value(' ', '\r'),35 new IntegerRangeErc Value(0x20, 0x7e)),34 new IntegerConstantErc(' ', '\n'), 35 new IntegerRangeErc(0x20, 0x7e)), 36 36 StringErcOptions = new StringErcOptions( 37 new StringRandomErc Value{37 new StringRandomErc { 38 38 IsEnabled = true, 39 39 AllowLowercaseLetters = true, -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/ScrabbleScore.cs
r14909 r14952 4 4 5 5 public class ScrabbleScore : BenchmarkSuiteDataDescriptor { 6 private const string name = "Scrabble Score ";6 private const string name = "Scrabble Score - Hard"; 7 7 private const string fileName = "ScrabbleScore.csv"; 8 8 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."; … … 61 61 ErcProbability = 0.05, 62 62 IntegerErcOptions = new IntegerErcOptions( 63 new IntegerConstantErc Value(ScrabbleValues)),63 new IntegerConstantErc(ScrabbleValues)), 64 64 IntegerVectorErcOptions = new IntegerVectorErcOptions( 65 new IntegerVectorConstantsErc Value(ScrabbleValues))65 new IntegerVectorConstantsErc(ScrabbleValues)) 66 66 } 67 67 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SmallOrLarge.cs
r14897 r14952 4 4 5 5 public class SmallOrLarge : BenchmarkSuiteDataDescriptor { 6 private const string name = "Small or Large ";6 private const string name = "Small or Large - Hard"; 7 7 private const string fileName = "SmallOrLarge.csv"; 8 8 private const string description = … … 32 32 ErcProbability = 0.05, 33 33 IntegerErcOptions = new IntegerErcOptions( 34 new IntegerRangeErc Value(-10000, 10000)),34 new IntegerRangeErc(-10000, 10000)), 35 35 StringErcOptions = new StringErcOptions( 36 new StringConstantErc Value("small", "large"))36 new StringConstantErc("small", "large")) 37 37 } 38 38 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Smallest.cs
r14897 r14952 3 3 4 4 public class Smallest : BenchmarkSuiteDataDescriptor { 5 private const string name = "Smallest ";5 private const string name = "Smallest - Easy"; 6 6 private const string fileName = "Smallest.csv"; 7 7 private const string description = "Given 4 integers, print the smallest of them."; … … 30 30 ErcProbability = 0.05, 31 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerRangeErc Value(-100, 100)),32 new IntegerRangeErc(-100, 100)), 33 33 } 34 34 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/StringDifferences.cs
r14909 r14952 4 4 5 5 public class StringDifferences : BenchmarkSuiteDataDescriptor { 6 private const string name = "String Differences ";6 private const string name = "String Differences - Hard"; 7 7 private const string fileName = "StringDifferences.csv"; 8 8 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"; … … 31 31 ErcProbability = 0.05, 32 32 CharErcOptions = new CharErcOptions( 33 new IntegerConstantErc Value(' ', '\r')),33 new IntegerConstantErc(' ', '\n')), 34 34 IntegerErcOptions = new IntegerErcOptions( 35 new IntegerRangeErc Value(-10, 10))35 new IntegerRangeErc(-10, 10)) 36 36 } 37 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/StringLengthsBackwards.cs
r14909 r14952 3 3 4 4 public class StringLengthsBackwards : BenchmarkSuiteDataDescriptor { 5 private const string name = "String Length Backwards ";5 private const string name = "String Length Backwards - Medium"; 6 6 private const string fileName = "StringLengthsBackwards.csv"; 7 7 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."; … … 30 30 ErcProbability = 0.05, 31 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerRangeErc Value(-100, 100))32 new IntegerRangeErc(-100, 100)) 33 33 } 34 34 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SumOfSquares.cs
r14897 r14952 3 3 4 4 public class SumOfSquares : BenchmarkSuiteDataDescriptor { 5 private const string name = "Sum of Squares ";5 private const string name = "Sum of Squares - Hard"; 6 6 private const string fileName = "SumOfSquares.csv"; 7 7 private const string description = "Given integer n, return the sum of squaring each integer in the range[1, n]."; … … 30 30 ErcProbability = 0.05, 31 31 IntegerErcOptions = new IntegerErcOptions( 32 new IntegerRangeErc Value(-100, 100))32 new IntegerRangeErc(-100, 100)) 33 33 } 34 34 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/SuperAnagrams.cs
r14897 r14952 5 5 6 6 public class SuperAnagrams : BenchmarkSuiteDataDescriptor { 7 private const string name = "Super Anagrams ";7 private const string name = "Super Anagrams - Hard"; 8 8 private const string fileName = "SuperAnagrams.csv"; 9 9 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."; … … 32 32 ErcProbability = 0.05, 33 33 BooleanErcOptions = new BooleanErcOptions( 34 new BooleanRandomErc Value{34 new BooleanRandomErc { 35 35 IsEnabled = true, 36 36 AllowFalse = true, … … 38 38 }), 39 39 IntegerErcOptions = new IntegerErcOptions( 40 new IntegerRangeErc Value(-1000, 1000)),40 new IntegerRangeErc(-1000, 1000)), 41 41 CharErcOptions = new CharErcOptions( 42 new IntegerRangeErc Value(0x20, 0x7e))42 new IntegerRangeErc(0x20, 0x7e)) 43 43 } 44 44 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/Syllables.cs
r14909 r14952 5 5 6 6 public class Syllables : BenchmarkSuiteDataDescriptor { 7 private const string name = "Syllables ";7 private const string name = "Syllables - Hard"; 8 8 private const string fileName = "Syllables.csv"; 9 9 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."; … … 32 32 ErcProbability = 0.05, 33 33 StringErcOptions = new StringErcOptions( 34 new StringConstantErc Value("The number of syllables is ", "aeiouy" ),35 new StringRandomErc Value{34 new StringConstantErc("The number of syllables is ", "aeiouy" ), 35 new StringRandomErc { 36 36 AllowLowercaseLetters = true, 37 37 AllowUppercaseLetters = false, … … 43 43 }), 44 44 CharErcOptions = new CharErcOptions ( 45 new IntegerConstantErc Value('a', 'e', 'i', 'o', 'u'),46 new IntegerRangeErc Value(0x20, 0x7e))45 new IntegerConstantErc('a', 'e', 'i', 'o', 'u'), 46 new IntegerRangeErc(0x20, 0x7e)) 47 47 } 48 48 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/VectorAverage.cs
r14875 r14952 1 1 namespace HeuristicLab.BenchmarkSuite.Problems { 2 2 public class VectorAverage : BenchmarkSuiteDataDescriptor { 3 private const string name = "Vector Average ";3 private const string name = "Vector Average - Medium"; 4 4 private const string fileName = "VectorAverage.csv"; 5 5 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 4 4 5 5 public class VectorSummed : BenchmarkSuiteDataDescriptor { 6 private const string name = "Vector Summed ";6 private const string name = "Vector Summed - Hard"; 7 7 private const string fileName = "VectorSummed.csv"; 8 8 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."; … … 31 31 ErcProbability = 0.05, 32 32 IntegerVectorErcOptions = new IntegerVectorErcOptions( 33 new IntegerVectorConstantsErc Value(new int[0])),33 new IntegerVectorConstantsErc(new int[0])), 34 34 IntegerErcOptions = new IntegerErcOptions( 35 new IntegerRangeErc Value(-1000, 1000))35 new IntegerRangeErc(-1000, 1000)) 36 36 } 37 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/WallisPi.cs
r14897 r14952 4 4 5 5 public class WallisPi : BenchmarkSuiteDataDescriptor { 6 private const string name = "Wallis Pi ";6 private const string name = "Wallis Pi - Hard"; 7 7 private const string fileName = "WallisPi.csv"; 8 8 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"; … … 31 31 ErcProbability = 0.05, 32 32 FloatErcOptions = new FloatErcOptions( 33 new FloatRangeErc Value(-500, 500)),33 new FloatRangeErc(-500, 500)), 34 34 IntegerErcOptions = new IntegerErcOptions( 35 new IntegerRangeErc Value(-500, 500))35 new IntegerRangeErc(-500, 500)) 36 36 } 37 37 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/WordStats.cs
r14909 r14952 6 6 7 7 public class WordStats : BenchmarkSuiteDataDescriptor { 8 private const string name = "Word Stats ";8 private const string name = "Word Stats - Hard"; 9 9 private const string fileName = "WordStats.csv"; 10 10 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."; … … 33 33 ErcProbability = 0.05, 34 34 IntegerErcOptions = new IntegerErcOptions( 35 new IntegerRangeErc Value(-100, 100)),35 new IntegerRangeErc(-100, 100)), 36 36 IntegerVectorErcOptions = new IntegerVectorErcOptions( 37 new IntegerVectorConstantsErc Value(new int[0])),37 new IntegerVectorConstantsErc(new int[0])), 38 38 CharErcOptions = new CharErcOptions( 39 new IntegerConstantErc Value('.', '?', '!', ' ', '\t', '\r', ':')),39 new IntegerConstantErc('.', '?', '!', ' ', '\t', '\n', ':')), 40 40 StringErcOptions = new StringErcOptions( 41 new StringConstantErc Value("words of length ", ": ", "number of sentences: ", "average sentence length: "))41 new StringConstantErc("words of length ", ": ", "number of sentences: ", "average sentence length: ")) 42 42 } 43 43 }; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Problems/XWordLines.cs
r14909 r14952 4 4 5 5 public class XWordLines : BenchmarkSuiteDataDescriptor { 6 private const string name = "X-Word Lines ";6 private const string name = "X-Word Lines - Hard"; 7 7 private const string fileName = "XWordLines.csv"; 8 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."; … … 31 31 ErcProbability = 0.05, 32 32 CharErcOptions = new CharErcOptions( 33 new IntegerConstantErc Value(' ', '\r')),33 new IntegerConstantErc(' ', '\n')), 34 34 } 35 35 };
Note: See TracChangeset
for help on using the changeset viewer.