Combinatorica`
Combinatorica`

Heapify

Heapify[p]

builds a heap from permutation p.

Details and Options