Settings

Instructions:

Reproduce the behavior of replacement selection for the minimum heap below. You can swap keys by clicking the first one and then the second one in the binary heap. To move values from the heap to the output array you must click on the array representation for the heap. Same for moving values from input to the heap. Begin by outputting the root of the heap to the output array. If the input is too small swap the values and decrement the size of the heap by clicking the "decrement" button. After that, restore the heap property again.