Class: Heap::MultipleHeap::MaxHeap

Inherits:
MultipleHeap show all
Defined in:
lib/Heap/multiple_heap/multiple_heap_max.rb

Overview

Multiple Heap with max root

Instance Attribute Summary

Attributes inherited from MultipleHeap

#d

Attributes inherited from HeapTemplate

#elements

Instance Method Summary collapse

Methods inherited from HeapTemplate

#add, #count, #sort

Instance Method Details

#extract_maxObject



5
6
7
# File 'lib/Heap/multiple_heap/multiple_heap_max.rb', line 5

def extract_max
  extract_root
end

#extract_max!Object



9
10
11
# File 'lib/Heap/multiple_heap/multiple_heap_max.rb', line 9

def extract_max!
  extract_root!
end