To sift up a node is to exchange it with its parent as long as its key is smaller. To sift down a node is to exchange it with its smaller child as long as that child’s key is smaller. To heapify an array is to make it a heap by sifting down every node that has a child, from the last one back to the root.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Sift up, sift down, heapify?
又称: sift up · sift down · heapify