Exemple #1
0
	def __init__(self,data,filename):
            self.plotter=Plotter("Bucket Sort")
            self.plotter.animate(self.bucket(data,filename),filename)
Exemple #2
0
 def __init__(self, data, filename):
     self.plotter = Plotter("Pigeonhole Sort")
     self.plotter.animate(self.pigeonholesort(data), filename)
Exemple #3
0
 def __init__(self,data,filename):
     self.plotter = Plotter("Gnome Sort")
     self.plotter.animate(self.gnome_sort(data),filename)
Exemple #4
0
 def __init__(self, data, filename):
     self.test = Plotter("Heap Sort")
     self.data = data
     self.heapSort(len(self.data))
     self.test.animate(self.data, filename)
Exemple #5
0
 def __init__(self,data,filename):
     self.plotter = Plotter("Count Sort")
     self.plotter.animate(self.count_sort(data),filename)
Exemple #6
0
 def __init__(self, data, filename):
     self.plotter = Plotter("Insertion Sort")
     self.insertion_sort(data)
     self.plotter.animate(self.insertion_sort(data), filename)
Exemple #7
0
 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)
Exemple #8
0
 def __init__(self, data, filename):
     self.plotter = Plotter("Cycle Sort")
     self.plotter.animate(self.cycle_sort(data), filename)
Exemple #9
0
 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)
Exemple #10
0
 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)
Exemple #11
0
 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)
Exemple #12
0
 def __init__(self, data, filename):
     self.plotter = Plotter("Pancake Sort")
     self.plotter.animate(self.pancakesort(data), filename)