sift down

"Sift down" refers to a process of sorting elements in a data structure, such as a heap or binary tree, by adjusting them to maintain a specific order. It involves comparing an element with its children and swapping it with the smaller (or larger) child to maintain the desired order. This process continues until the element is correctly positioned or reaches the bottom of the structure.

Requires login.