module Algorithmable::Sort
Public Class Methods
binary_heap(collection)
click to toggle source
# File lib/algorithmable/sort.rb, line 28 def binary_heap(collection) BinaryHeap.sort(collection) end
bubble(collection)
click to toggle source
# File lib/algorithmable/sort.rb, line 24 def bubble(collection) Bubble.sort(collection) end
insertion(collection)
click to toggle source
# File lib/algorithmable/sort.rb, line 36 def insertion(collection) Insertion.sort(collection) end
merge(collection)
click to toggle source
# File lib/algorithmable/sort.rb, line 20 def merge(collection) Merge.sort(collection) end
quick(collection)
click to toggle source
# File lib/algorithmable/sort.rb, line 16 def quick(collection) QuickSort.sort(collection) end
selection(container)
click to toggle source
# File lib/algorithmable/sort.rb, line 32 def selection(container) Selection.sort(container) end
shell(collection)
click to toggle source
# File lib/algorithmable/sort.rb, line 40 def shell(collection) Shell.sort(collection) end
shuffle(collection)
click to toggle source
# File lib/algorithmable/sort.rb, line 44 def shuffle(collection) Shuffle.sort(collection) end