-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
24 lines (20 loc) · 942 Bytes
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import SortingAlgorithms as Sa
ALL_ALGORITHMS = {
"quick_sort": Sa.quick_sort,
"merge_sort": Sa.merge_sort,
"insertion_sort": Sa.insertion_sort,
"selection_sort": Sa.selection_sort,
"bubble_sort": Sa.bubble_sort,
"python_sort": Sa.python_sort,
"tim_sort": Sa.tim_sort,
"og_sort": Sa.og_sort,
"improved_og_sort": Sa.improved_og_sort
}
max_array_length = 4000 # Change this to the maximum list length you want to test
num_tests = 4 # Number of times to test each list length
testing_algorithm_name = "og_sort" # name of the algorithm you want to test
# modalities available: single-speed, multi-speed, single-functioning
modality_type = "single-speed" # type of test you want to perform
# algorithms to be tested (in case you only want to test some instead of all)
a_names = ["quick_sort", "merge_sort", "python_sort", "tim_sort"]
ALGORITHMS = {name: algorithm for name, algorithm in ALL_ALGORITHMS.items() if name in a_names}