from
MATLAB Golf Contest Test Suite
by Mike Thomas
Generates the test suites for the MATLAB Golf Contest.
|
| createfrequencies
|
function holes = createfrequencies
holes = [];
a = 'abcdefghijklmnopqrstuvwxyz'
b = [ 2 5 2 1 1 2 3 2 2 6 5 3 3 2 8 3 6 5 6 5 4 3 2 3 3 4]
c = 'ahbsqzokfqtjaktuxvjqtfxoqgoyirkqskrvjlposnumeszusmcrjdovrzbjogpbosztlqucyxpgwntkybohwirbjml'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'abcdefghijklmnpqrstuvwxy'
b = [ 1 2 3 1 4 1 2 2 2 2 2 3 4 1 7 5 1 1 1 2 4 1 2 3]
c = 'qcxtuvrfhqnbchkmxpimpevypavpscljevlydwulqyqgjemkmpbipeqgp'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'abcdefghijklmnopqrstuvwxyz'
b = [ 4 5 3 2 3 4 4 6 2 1 1 1 1 3 2 3 5 7 2 4 2 5 2 3 5 3]
c = 'bpyhxcbgybgzfmhrytrdcahvzavqogvgtrfpreqeoqrwaiuhyrbafnlspnbfjhuiqznyvxcvxedtsqtrwhk'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'bdfjnou'
b = [ 1 2 1 1 1 1 1]
c = 'fbodnduj'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'bcdefghijlostwxyz'
b = [ 1 1 1 1 1 1 1 1 3 2 1 1 1 3 1 2 1]
c = 'lezjbtxhgydyswflcwoijwj'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'acefghijklmnoprstuvwxyz'
b = [ 2 2 1 1 1 5 1 1 4 4 3 3 3 1 1 6 1 2 2 1 1 3 2]
c = 'moyikhkhknshclmarshgsuzmxluveknsolcljhwtyoapvzfsnys'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'acefijkmnorwxyz'
b = [ 1 2 2 1 1 1 1 2 2 1 2 2 2 1 1]
c = 'acwimxfwrxmzjnenkryeco'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'abcdefghijklmnopqrstuvwxyz'
b = [ 8 2 2 6 8 3 4 2 5 4 3 3 3 7 2 2 4 3 3 2 4 3 6 3 3 2]
c = 'awanesgydnxyilmdnskjhwqgzqfrdagdbweatnhjaxwgoepirwozudveqrujlmpeaunfcekbydjiexitknenqavusmcvflaiw'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'abcdefghijklmnopqrstuvwxyz'
b = [ 5 1 2 3 1 4 2 2 4 1 1 4 4 5 6 4 6 4 1 4 8 1 2 5 1 3]
c = 'iwmoqrqrnsnpzvipdguraolxhbmzxoqucaoalfuqaxtxtjinotumumfpryutwznqulnedfcdluhfxapoqigk'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'adefghimnopqrtuvxyz'
b = [ 2 1 1 2 1 1 2 2 1 2 1 1 2 1 1 1 2 5 1]
c = 'ryiodehomygmnufxatyvyfryipqazx'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'abcdefghijklnopqrstuvwxyz'
b = [ 2 3 2 4 4 5 4 4 4 1 1 1 1 2 3 4 1 5 2 2 2 2 1 9 1]
c = 'lsphwchckiyvgbaotuqgdqyvyignefqbfrihsydbdexdqgfsoyisypwtjseyfupeahzyfy'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'abcdghklnpqrstvwyz'
b = [ 1 1 2 1 1 2 1 1 1 1 2 1 1 2 2 1 1 1]
c = 'khqyavrzbtvgshcwctdlpqn'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'abcdfgklmoqrstuvwy'
b = [ 1 1 1 1 1 1 1 1 1 2 3 1 1 1 1 1 1 1]
c = 'rgskdwayqbqtuvomlqcof'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'ehjknquvx'
b = [ 1 1 1 1 1 1 1 1 1]
c = 'hvknxjqeu'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'cdehimquy'
b = [ 1 2 1 1 1 1 1 2 1]
c = 'uiudqcymehd'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'g'
b = [ 1]
c = 'g'
holes(end+1).a = a;
holes(end).b = b;
holes(end).c = c;
a = 'bcefhijklmnrsuvwxyz'
b = [ 1 1 1 2 1 1 2 2 1 3 2 1 1 1 2 1 1 1 1]
c = 'sjmzukyfnmjnvfkbhvrwcmlixe'
|
|
Contact us at files@mathworks.com