Beispiel #1
0
def test_radix_sort():
    from utils import cachelist
    a = [4, 3, 2, 1]
    a = radix_sort(cachelist(a))
    print(a)
Beispiel #2
0
def test_merge_sort():
    from utils import cachelist
    a = [4, 3, 2, 1]
    a = merge_sort(cachelist(a))
    print(a)
Beispiel #3
0
def test_insertion_sort():
    from utils import cachelist
    a = [4, 3, 2, 1]
    a = insertion_sort(cachelist(a))
    print(a)
def test_selection_sort():
    from utils import cachelist
    a = [4, 3, 2, 1]
    a = selection_sort(cachelist(a))
    print(a)
Beispiel #5
0
def test_shell_sort():
    from utils import cachelist
    a = [4, 3, 2, 1]
    a = shell_sort(cachelist(a))
    print(a)
Beispiel #6
0
def test_bubble_sort():
    from utils import cachelist
    a = [4, 3, 2, 1]
    a = bubble_sort(cachelist(a))
    print(a)
Beispiel #7
0
def test_heap_sort():
    from utils import cachelist
    a = [4, 3, 2, 1]
    a = heap_sort(cachelist(a))
    print(a)
Beispiel #8
0
def test_quick_sort():
    from utils import cachelist
    a = [4, 3, 2, 1]
    a = quick_sort(cachelist(a))
    print(a)