[r-t] Algorithm for determining the order of Calling Position Headings
graham at changeringing.co.uk
Fri Aug 12 19:05:35 UTC 2011
As a weekend challenge, can anyone suggest an efficient algorithm for
determining the optimal sequence of calling position headings when
formatting a composition?
The requirements are:-
1. Minimise the number of lines required to display the composition
2. Within the above, calling positions with fewer leads between them should
be closer together
3. Minimise the need for courseheads in parentheses
3. Home, where present, should be the last column (this is probably a
personal preference, although it can conflict with 1 and may not be
appropriate for snap start and finish compositions - happy to debate this
The data to be processed by the algorithm can be considered as a table such
as that shown below. Do not assume though that the number of leads between
calling positions is fixed, as this needs to work for Spliced with mixed
lead orders as well as single methods.
This example is taken from the beginning of a split tenors composition of
the Nottingham 8
I have worked out an algorithm that should work, but I am sure that there
must be a more elegant and efficient solution possible. Answers in program
code or pseudo-code welcome.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ringing-theory