• Post Reply Bookmark Topic Watch Topic
  • New Topic

minheap question  RSS feed

 
Luke Forga
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would someone enlighten me as to how the following minheap, h, would look after the following operations were performed.

a) h.heapInsert(8)
b) h.heapInsert(5)
c) h.heapDelete()
4
/ \
/ \
7 9
/ \ / \
10 12 13 11

A brief explanation of a solution to any "one" should be sufficient for me to figure out the other(s). Thanks in advance.
 
Luke Forga
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nix the question, as I have figured it out. Thanks for the "post" space.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!