Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Remoção(raiz)12a81) Em um heap máximo, maiorchave encontra-se na raizTn=O(1)2) Substitui raiz pelo último nó11• No heap máximo,• se tem dois filhos, testa ordem com o filho de maior chave• No heap mínimo• testa ordem com o filho de menor chave2b3) HeapfyTn=O(log n)188