Skip to content

Commit

Permalink
Get long list bubblesort data
Browse files Browse the repository at this point in the history
  • Loading branch information
kaBeech committed Aug 21, 2024
1 parent 467ac3e commit f690343
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
8 changes: 7 additions & 1 deletion app/Benchmarking/PrintLargeTimeAndErrorRateComparison.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ import Data.Tensort.Utils.Types
)
import Data.Time.Clock

printLargeTimeAndErrorRateComparison :: [Int] -> Int -> Int -> Int -> Int -> IO ()
printLargeTimeAndErrorRateComparison ::
[Int] ->
Int ->
Int ->
Int ->
Int ->
IO ()
printLargeTimeAndErrorRateComparison [] _ _ _ _ = return ()
printLargeTimeAndErrorRateComparison
(lengthExponent : remainingLengthExponents)
Expand Down
20 changes: 10 additions & 10 deletions app/Benchmarking/SortAlgsCompared.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import Data.Tensort.Utils.Types (Sortable, WonkyState)
sortAlgsCompared ::
[(WonkyState -> Sortable -> (Sortable, WonkyState), String)]
sortAlgsCompared =
[ (robustsortRM, "RobustsortRM"),
(robustsortRB, "RobustsortRB"),
(robustsortRP, "RobustsortRP"),
(robustsortM, "RobustsortM"),
(robustsortB, "RobustsortB"),
(robustsortP, "RobustsortP"),
(tensortBL, "TensortBL"),
(bubblesort, "Bubblesort"),
(quicksort, "Quicksort"),
(mergesort, "Mergesort")
-- [ (robustsortRM, "RobustsortRM"),
-- (robustsortRB, "RobustsortRB"),
-- (robustsortRP, "RobustsortRP"),
-- (robustsortM, "RobustsortM"),
-- (robustsortB, "RobustsortB"),
-- (robustsortP, "RobustsortP"),
-- (tensortBL, "TensortBL"),
[ (bubblesort, "Bubblesort")
-- (quicksort, "Quicksort"),
-- (mergesort, "Mergesort")
]
14 changes: 7 additions & 7 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ main = do
-- printSubAlgErrorRateComparison 1000 wonkyChance stuckChance
-- printErrorSpread 1000 wonkyChance stuckChance
-- printDeckShuffleErrors 1000 wonkyChance stuckChance
-- printLargeTimeAndErrorRateComparison
-- [3 .. 17]
-- 100
-- 4096
-- wonkyChance
-- stuckChance
printGreeting
-- printGreeting
printLargeTimeAndErrorRateComparison
[12]
1
4096
wonkyChance
stuckChance

printGreeting :: IO ()
printGreeting =
Expand Down

0 comments on commit f690343

Please sign in to comment.