From b8a2b8d9aee28d5ef1753d8ebdfea480b9603c48 Mon Sep 17 00:00:00 2001 From: internetlandlord Date: Mon, 31 Oct 2022 13:52:22 -0500 Subject: Re-configured inputoutput to remove appending in egress function. Add appending to each algorithm script to denote sorting job performed --- heap-sort.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'heap-sort.py') 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) -- cgit v1.2.3