from algorithm_visualizer import alvito
from utils import random_array
avo = alvito()
avo.custom_save_name = True
shape = (6,6)
array = random_array(shape)
avo.save_name = 'bubble_sort_6_6'
avo.bubbleSort(array)
100%|██████████| 35/35 [02:33<00:00, 1.03s/it]
array = random_array(shape)
avo.save_name = 'selection_sort_6_6'
avo.selectionSort(array,)
100%|██████████| 35/35 [02:35<00:00, 1.10it/s]
array = random_array(shape)
avo.save_name = 'insertion_sort_6_6'
avo.insertionSort(array)
100%|██████████| 35/35 [01:18<00:00, 3.72s/it]
shape = (1,10)
array = random_array(shape)
avo.save_name = 'shell_sort_6_6'
avo.fps = 1
avo.shellSort(array)
100%|██████████| 1/1 [00:00<00:00, 4.57it/s] 100%|██████████| 1/1 [00:00<00:00, 9.84it/s] 100%|██████████| 1/1 [00:00<00:00, 4.95it/s] 100%|██████████| 1/1 [00:00<00:00, 9.95it/s] 100%|██████████| 1/1 [00:00<00:00, 5.23it/s] 100%|██████████| 4/4 [00:00<00:00, 6.83it/s] 100%|██████████| 4/4 [00:00<00:00, 5.37it/s] 100%|██████████| 9/9 [00:01<00:00, 6.16it/s]