TL;DR :: Roman numerals were the challenge at hand. The method of the example is common to constraint searches beyond the example. Constraint searches exist in drug research and many other fields.

Roman numerals were chosen for a few really simple reasons. That was the golf challenge at hand. It was likely the golf challenge at hand because it's so simple and widely understood. Finding a random function which meets the demands is exactly the point. The demands, in this example are related to Roman numerals.

Part of computational pharmacology is the practice of using combinatorics to find substances that happen to achieve the desired molecular shape or the desired effect in simulations. Another is a combinatoric search for combinations of drugs that work together without negative interactions. Other parts of the field include algorithms to model relationships, data mining, learning algorithms, and network analysis.

Pick any field which has a large search space for just the right combination of properties in an as yet undiscovered item. Write a program which tries and makes a preliminary fitness determination for each possibility. Have that program spit out a short list of candidates for further investment of testing and development. That's the type of program the series of articles is about.

In this specific case, the fitness is a maximum length, a handful of inputs, and a handful of outputs that map correctly to those inputs. That it's Roman numerals, proteins, enzymes, metallic alloys for the skin of a jet, the ideal plant food for Granny Smith apple trees, or a new nanostructure for the anode of your battery design is really of little consequence to the method. The point of an example is that it is a concrete thing that is completed and shown rather than an abstract idea. Examples are often made of a simple case rather than the most complex case possible.


In reply to Re^3: At the risk of saying something stupid-but-obvious about Roman Numerals by mr_mischief
in thread At the risk of saying something stupid-but-obvious about Roman Numerals by locked_user sundialsvc4

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.