The elements, separated by spaces, commas or line breaks — the format of the
algs4 sorting clients, so e.g.
tiny.txt
can be pasted as it is. If every element is a number they are compared numerically,
otherwise as strings (
String.compareTo). Lines starting with
# are comments.
Optional settings on lines of their own, handy for prepared examples:
@algorithm quick (one of
selection bubble bubbleImproved insertion binaryInsertion merge mergeCheck mergeBU powersort quick),
@pivot first (
random,
first,
m3),
@seed 7 for reproducible random pivots, and for powersort
@runs inc (
both,
inc) and
@power def (
fast,
def).
At most 64 elements. The same settings also work in the page address, e.g.
#steps&algo=quick&pivot=first&in=6,4,7,1,3,8,5,10,2,9.