def __init__(self,data,filename): self.plotter=Plotter("Bucket Sort") self.plotter.animate(self.bucket(data,filename),filename)
def __init__(self, data, filename): self.plotter = Plotter("Pigeonhole Sort") self.plotter.animate(self.pigeonholesort(data), filename)
def __init__(self,data,filename): self.plotter = Plotter("Gnome Sort") self.plotter.animate(self.gnome_sort(data),filename)
def __init__(self, data, filename): self.test = Plotter("Heap Sort") self.data = data self.heapSort(len(self.data)) self.test.animate(self.data, filename)
def __init__(self,data,filename): self.plotter = Plotter("Count Sort") self.plotter.animate(self.count_sort(data),filename)
def __init__(self, data, filename): self.plotter = Plotter("Insertion Sort") self.insertion_sort(data) self.plotter.animate(self.insertion_sort(data), filename)
def __init__(self,data,filename): self.test = Plotter("Stooge Sort") self.data = data self.stoogesort(0,len(self.data)-1) self.test.animate(self.data,filename)
def __init__(self, data, filename): self.plotter = Plotter("Cycle Sort") self.plotter.animate(self.cycle_sort(data), filename)
def __init__(self, data, filename): self.plotter = Plotter("Merge Sort") self.length = len(data) self.plotter.plot(data, 0) self.plotter.plot(data, 0) self.plotter.animate(self.merge_sort(data, 0), filename)
def __init__(self, data, filename): self.test = Plotter("Quick Sort") self.data = data self.quickSort(0, len(self.data) - 1) self.test.animate(self.data, filename)
def __init__(self,data,filename): self.test = Plotter("Cocktail Sort") self.data = data self.cocktailSort(len(self.data)-1) self.test.animate(self.data,filename)
def __init__(self, data, filename): self.plotter = Plotter("Pancake Sort") self.plotter.animate(self.pancakesort(data), filename)