From 3e50a372a959f5bbea0cc52570540130cd645556 Mon Sep 17 00:00:00 2001 From: ame Date: Sun, 15 Oct 2023 23:26:21 -0500 Subject: counting sort fix --- t.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't.lua') diff --git a/t.lua b/t.lua index 5e6dc45..2e906db 100644 --- a/t.lua +++ b/t.lua @@ -3,7 +3,7 @@ local a = llib.array local tab = {} math.randomseed(os.time()) -for i=1,19 do +for i=1,9999 do table.insert(tab,math.random(1,999));-- + math.random(1,999)); end @@ -28,7 +28,7 @@ local l6 = a.countingsort(tab) print("counting sort took "..os.clock()-time.."s") for l,i in pairs(llib.array.reverse(l1)) do - print(l1[l].." "..l2[l].." "..l3[l].." "..l4[l].." "..l5[l]) + --print(l1[l].." "..l2[l].." "..l3[l].." "..l4[l].." "..l5[l]) end --print(llib.array.greatest(l1)) --local l2 = llib.array.reverse(llib.array.bubblesort(tab)) -- cgit v1.2.3