aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/algorithm.py
diff options
context:
space:
mode:
Diffstat (limited to 'algorithms/algorithm.py')
-rw-r--r--algorithms/algorithm.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/algorithms/algorithm.py b/algorithms/algorithm.py
index 74817de..66f8724 100644
--- a/algorithms/algorithm.py
+++ b/algorithms/algorithm.py
@@ -5,6 +5,7 @@
from . import input_kind
+
class Algorithm:
def __init__(self, codename, display_name, f):
self.codename = codename
@@ -16,9 +17,7 @@ class Algorithm:
#raise NotImplementedError('input generation is not defined for a generic algorithm')
return input_kind.gen_input_for_sorting(n, case)
-class SortingAlgorithm(Algorithm):
- def __init__(self, codename, display_name, f):
- super().__init__(codename, display_name, f)
+class SortingAlgorithm(Algorithm):
def gen_input(self, n, case=input_kind.InputKind.AVERAGE):
return input_kind.gen_input_for_sorting(n, case)