🌳 M-ary Min-Heap Trainer
M (arity):
N (size):
Interaction View:
Tree View
Array View
Generate Heap
Push
Pop
Make-Heap
Done
Reset
Errors:
0
Timer:
00:00
Tree View
Next
Array View
Next
Instructions:
Generate:
Create a new m-ary min-heap with n random values
Push:
Add a new element and trickle it up by dragging nodes to swap
Pop:
Remove the root, move the last element to root, and trickle down by dragging nodes to swap
Drag a node onto another node to swap them during push/pop operations
Red error messages indicate incorrect swaps - the heap will reset to try again
Errors:
0
Timer:
00:00