7 <A HREF="../../images/handbook.gif"><IMG SRC="../../images/handbook2.gif" align=left></A>
8 <A HREF="../../hbook.html">
9 <IMG SRC="../../images/home_g.gif" hspace = 15 vspace = 4 ALT = "[Home]"></A><BR>
10 <A HREF="../../sort_a.html">
11 <IMG SRC="../../images/chapter_g.gif" hspace = 15 vspace = 4 ALT = "[Chapter]"></A><BR>
12 <A HREF="../../expand.html">
13 <IMG SRC="../../images/contents_g.gif" hspace = 15 vspace = 4 ALT = "[Contents]"></A><BR>
14 <A HREF="414.sort.c.html">
16 <A HREF="414.sort.c.html">
17 <IMG SRC="../../images/prevalg_g.gif" hspace = 15 vspace = 4 ALT = "[Previous Algorithm]"></A><BR>
18 <A HREF="414b.sort.c.html">
19 <IMG SRC="../../images/nextalg_g.gif" hspace = 15 vspace = 4 ALT = "[Next Algorithm]"></A><BR>
31 procedure sort( var r : ArrayToSort; lo, up : integer );
34 var d, i, j : integer;
40 else d := trunc( 0.45454*d );
41 {*** Do linear insertion sort in steps size d ***}
42 for i:=up-d downto lo do begin
46 if tempr.k > r[j].k then begin
50 else goto 999; {*** break ***}
56 </XMP></TD></TR></TABLE>
58 <H3><A HREF="ftp://sunsite.dcc.uchile.cl/pub/users/rbaeza/handbook/algs/4/414.sort.c"><IMG SRC="../../images/ftp.xbm" hspace=10>C</A> source (414.sort.c) <A HREF="ftp://sunsite.dcc.uchile.cl/pub/users/rbaeza/handbook/algs/4/414.sort.p"><IMG SRC="../../images/ftp.xbm" hspace=10>Pascal</A> source (414.sort.p)
61 <IMG SRC="../../images/aw3.gif" align=left><H5><BR>
62 © <A HREF="http://aw.com">Addison-Wesley </A>Publishing Co. Inc.