From the score · a term this site uses
The Shortest Recipe
Revised
The shortest recipe is the name Spiral, Fern & Honeycomb gives to the one rule, among the candidate rules listed in a page's comparison record, that ranks shortest under a fixed ordering and still reproduces the pattern it is checked against. It is the shortest among those compared, not the shortest possible, and not a proven minimum.
How rules are scored
A recipe is written as r rules and p parameters. Each independent rewriting or placement rule counts as one rule, and each number a user has to set counts as one parameter. The number of generations, the step length and the canvas size are display settings: they are not counted, but they are printed in the Recipe line.
The ordering is fixed. The smaller total of r plus p is shorter; on a tie, the recipe with fewer parameters is shorter, since parameters need tuning and rules do not; if both are equal, the candidates are listed together as joint shortest. A recipe of 2 rules and 1 parameter therefore ranks ahead of 1 rule and 2 parameters.
For example, the branching weed of Figure 1.24(a) in The Algorithmic Beauty of Plants (Prusinkiewicz and Lindenmayer, 1990, p. 25) scores 1 rule, replacing F with F[+F]F[-F]F, and 1 parameter, a branch angle of 25.7 degrees.
What a claim of shortest needs
A page may call a rule the shortest recipe only when it carries a comparison record: at least two candidate recipes, each with its rule and parameter count, the result of its reproduction check and the model it comes from, saved in the page's data file. The check compares features of the drawing with the source picture or photograph, such as branch order, number of neighbors or the type of junction, and names the feature used. Candidates are written as rules that this site's simulations follow. Without a comparison record, the Pattern card says Working recipe, the simplified rule the page works from, and claims nothing about length.
The first comparison record
The page on L-system plants and the one-rule branching weed keeps the first record. It sets five candidate rules against the branching of the Figure 1.24(a) weed after 5 rewrites, and the book's own rule ranks shortest at 1 rule and 1 parameter, the shortest of those five only. The target features in that record are computed from the source picture's own rule, rewritten to the figure's step count, so the book's rule matches them by design.