Model the algorithm
Define the inputs, operations, algorithm, and theorem. For
time-complexity claims, write the algorithm using the
Charged interface: each computation carries its
result and a tally of the operations it performs.
Model/Definitions, program, and theorem