Class: Sorting::SmoothSort::HeapHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/sorting/smooth_sort.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHeapHelper

Returns a new instance of HeapHelper.



22
23
24
25
# File 'lib/sorting/smooth_sort.rb', line 22

def initialize
  @bit_trees = 0
  @smallest_heap_size = 0
end

Instance Attribute Details

#bit_treesObject

Returns the value of attribute bit_trees.



20
21
22
# File 'lib/sorting/smooth_sort.rb', line 20

def bit_trees
  @bit_trees
end

#smallest_heap_sizeObject

Returns the value of attribute smallest_heap_size.



21
22
23
# File 'lib/sorting/smooth_sort.rb', line 21

def smallest_heap_size
  @smallest_heap_size
end