Skip to content

Commit

Permalink
Fix array position in text
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzfl committed Dec 17, 2017
1 parent fdb5449 commit 5392268
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ \chapter*{Shellsort}

\texttt{array}: array with numbers that are to be sorted

\texttt{steplengths}: array with steplengths that are to be used. In our definition, steplengths are arranged in descending order (eg. steplengths = [8,4,2,1]). A practical steplengths-array must further fulfill the condition $steplengths[0] < array.length$.
\texttt{steplengths}: array with steplengths that are to be used. In our definition, steplengths are arranged in descending order (eg. steplengths = [8,4,2,1]). A practical steplengths-array must further fulfill the condition $steplengths[1] < array.length$.


\begin{lstlisting}
procedure shellsort(array, steplengths)
---------------------------------------
begin
for each steplength in steplengths do
begin
for i := 1 to steplength do
begin
sort(array, i, steplength)
end
end
Expand Down

0 comments on commit 5392268

Please sign in to comment.