Class: CompSci::CompleteTernaryTree
- Inherits:
-
CompleteTree
- Object
- CompleteTree
- CompSci::CompleteTernaryTree
- Defined in:
- lib/compsci/complete_tree.rb
Instance Attribute Summary
Attributes inherited from CompleteTree
Instance Method Summary collapse
-
#initialize(array: []) ⇒ CompleteTernaryTree
constructor
A new instance of CompleteTernaryTree.
Methods inherited from CompleteTree
#bf_search, children_idx, #df_search, #display, gen, #last_idx, parent_idx, #pop, #push, #size
Constructor Details
#initialize(array: []) ⇒ CompleteTernaryTree
Returns a new instance of CompleteTernaryTree.
98 99 100 |
# File 'lib/compsci/complete_tree.rb', line 98 def initialize(array: []) super(array: array, child_slots: 3) end |