Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
insertion_sort(u) := block(
|
||||
[n: length(u), x, j],
|
||||
for i from 2 thru n do (
|
||||
x: u[i],
|
||||
j: i - 1,
|
||||
while j >= 1 and u[j] > x do (
|
||||
u[j + 1]: u[j],
|
||||
j: j - 1
|
||||
),
|
||||
u[j + 1]: x
|
||||
)
|
||||
)$
|
||||
Loading…
Add table
Add a link
Reference in a new issue