From cbd1182b1a006544bac436b3d955ddc034ad5109 Mon Sep 17 00:00:00 2001 From: internetlandlord Date: Mon, 17 Oct 2022 20:46:38 +0000 Subject: Created a selection sort algorithm as a proof of concept. n^2 complexity, so grab a coffee if you decide to run it against a large array! --- tester.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 tester.py (limited to 'tester.py') diff --git a/tester.py b/tester.py deleted file mode 100755 index e44982f..0000000 --- a/tester.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/python3 - -# ---------- Testing script -# Uses command line arguments to call functions - - -# ---------- Imported modules - -import inputoutput as io -import csv -import sys - -# ---------- Main - -# command line args passed to variables -rspan = int(sys.argv[1]) -rlim = int(sys.argv[2]) -ofile =sys.argv[3] - -print("Your params:\n") -print("\tCSV size: {}".format(rspan)) -print("\tNumber range: 1 - {}".format(rlim)) -print("\tOutput file: {}".format(ofile)) -print("\nGenerating a CSV!") -io.generateCSV(rspan,rlim,ofile) -- cgit v1.2.3