diff options
author | internetlandlord <f.fredhenry@gmail.com> | 2022-10-20 12:06:20 -0500 |
---|---|---|
committer | internetlandlord <f.fredhenry@gmail.com> | 2022-10-20 12:06:20 -0500 |
commit | cbb3b74f42824a5e178c556c6b7db6810232e441 (patch) | |
tree | 1d0a7f4435b9cfc0eab4ac58fa7dd408b03093de /quick-sort.py | |
parent | 27170a41d9cf47a8048bccb040fdb287b8af7bcc (diff) |
Housekeeping on scripts and README.md
Diffstat (limited to 'quick-sort.py')
-rwxr-xr-x | quick-sort.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/quick-sort.py b/quick-sort.py index 966d550..e048970 100755 --- a/quick-sort.py +++ b/quick-sort.py @@ -1,7 +1,8 @@ #!/bin/python3 -# ---------- title - +# ---------- Quick Sort +# Python implementation of the quick sort algorithm +# performed against a randomly-generated list of numbers # ---------- Imported modules @@ -16,7 +17,7 @@ target = sys.argv[1] # ingress of data numdata = io.ingressCSV(target) -# quick sort algorithm, defined as a function (to be called recursively) +# quick sort algorithm, defined as a function to enable recursive calling def quickSort(data): if(len(data)>1): pivot = int(len(data)/2) @@ -35,11 +36,6 @@ def quickSort(data): # running quicksort against the ingressed data numdata = quickSort(numdata) -#FIXME: try using a separate list initialization if problems encountered -#writedata = quiskSort(numdata) -#io.egressCSV(writedata,target) - - # finishing up print("Sort complete, writing to file!") io.egressCSV(numdata,target) |