3.4, due October 5th
3.4 Priority Queues and Heaps
This is something I haven't learned about yet, and it was very interesting. I think heaps can prove to be useful, though I'm not quite sure where I'll find a problem that will need a heap format. It doesn't make much sense to me why a heap would be preferable over just sorting a list. I wish the section had the proofs for the two propositions about the process of adding and removing nodes from a heap, but they were left as exercises.
Comments
Post a Comment