From d953224f0b0c20568d4d11c9d2810609985b4124 Mon Sep 17 00:00:00 2001 From: Nils Liebreich <nilsl99@zedat.fu-berlin.de> Date: Tue, 1 Nov 2022 13:05:43 +0100 Subject: [PATCH] Added python skeleton --- Aufgabe02.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Aufgabe02.py diff --git a/Aufgabe02.py b/Aufgabe02.py new file mode 100644 index 0000000..29b8f5b --- /dev/null +++ b/Aufgabe02.py @@ -0,0 +1,46 @@ +def HeapSort(array): + '''Update the board according to the move and the player. If player 0 does + the move, set the board cell to -1. If payer 1 makes the move, set the board cell + to 1 (empty board cells have value zero). + + Parameters + ---------- + array: list(*int) + a list containing the integers to be sorted + + Returns + ------- + sorted_array: a sorted copy of the array + ''' + + return + +def InsertionSort(array): + '''Sort the array by inserting each element into an already sorted part of the array. + + Parameters + ---------- + array: list(*int) + a list containing the intergers to be sorted + + Returns + ------- + sorted_array: a sorted copy of the array + ''' + + return + +def CountingSort(array): + '''Sort the array by counting the occurrence of each element in the array. + + Parameters + ---------- + array: list(*int) + a list containing the intergers to be sorted + + Returns + ------- + sorted_array: a sorted copy of the array + ''' + + return -- GitLab