A simple and efficient insert sort algorithm is presented in Java. This paper uses warping (automatic code inclusion from actual program source) to ensure reliability of the published code; the code extracts in this paper are guaranteed compiled, run and tested. The preceding paper in this journal discusses both the tool warp and its rationale.Keywords: Insert sort, Java, Quicksort, Sentinels, Warp.
This note is written in HTML. For the full paper, written in LaTeX, on which this note is based, see the full paper in PDF.
a
, put the following code fragments together. The array is assumed to implement Comparable
.