From: Peter Szinek Date: 2006-04-06T22:48:01+09:00 Subject: Re: String generalization > * Give some constraints about how different sets of example strings would > influence each other. > * Define a test suite f.e. > > I think along these lines > If the program has only one string "acccd" it will generalize to ".+" > if you give a second one > [ "addff", "" ] it will generalize to ".*" > if you give the following data > [ "129", "0x1ef" ], ["add", ""] it shall create "\d+|0x[0-9a-f]+", ".*" > etc. etc. Uh-oh. I definitely like the idea to do something like this (i.e. to define a quiz based on the above problem). But imho the problem as you described it is in some way a machine learning problem - i.e. a quite hard one. I am really new here, so i am not sure about the usual level of the Ruby Quiz puzzles - but this seems to me a master thesis level problem rather than a quiz question ;-) bw, Peter