summaryrefslogtreecommitdiff
path: root/heap-sort.py
diff options
context:
space:
mode:
authorinternetlandlord <f.fredhenry@gmail.com>2022-10-31 13:52:22 -0500
committerinternetlandlord <f.fredhenry@gmail.com>2022-10-31 13:52:22 -0500
commitb8a2b8d9aee28d5ef1753d8ebdfea480b9603c48 (patch)
treee220db1b7610a61fff8c7aeff01795a68b45c31a /heap-sort.py
parent7ccfafb0c07b38524270ebcd61ed03984332ab5a (diff)
Re-configured inputoutput to remove appending in egress function. Add appending to each algorithm script to denote sorting job performed
Diffstat (limited to 'heap-sort.py')
-rwxr-xr-xheap-sort.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heap-sort.py b/heap-sort.py
index c8a45eb..8bb4189 100755
--- a/heap-sort.py
+++ b/heap-sort.py
@@ -58,6 +58,7 @@ def heapSort(atad):
# using sorting algorithm
heapSort(numdata)
-# finishing up
+# finishing up, appending "-heapsorted" to sorted CSV
+target = target[:-4]+"-heapsorted"+target[-4:]
print("Sorting done! Writing to file")
io.egressCSV(numdata,target)