Module: Algorithmable::Sort

Defined in:
lib/algorithmable/sort.rb,
lib/algorithmable/sort/merge.rb,
lib/algorithmable/sort/bubble.rb,
lib/algorithmable/sort/binary_heap.rb

Defined Under Namespace

Classes: BinaryHeap, Bubble, Merge

Class Method Summary collapse

Class Method Details

.binary_heap(collection) ⇒ Object



16
17
18
# File 'lib/algorithmable/sort.rb', line 16

def binary_heap(collection)
  BinaryHeap.sort(collection)
end

.bubble(collection) ⇒ Object



12
13
14
# File 'lib/algorithmable/sort.rb', line 12

def bubble(collection)
  Bubble.sort(collection)
end

.merge(collection) ⇒ Object



8
9
10
# File 'lib/algorithmable/sort.rb', line 8

def merge(collection)
  Merge.sort(collection)
end