CSE 1729 Lecture Notes - Lecture 19: Car And Cdr, Priority Queue, Binary Tree

38 views2 pages
Verified Note

Document Summary

Build a heap 2. repeatedly extract the minimum element. Removing the minimum element from a heap: 1 view, let min(h) denote the minimum element of heap h, find minimum value: findmin(h). Return the value of the root: remove minimum value: removemin(h), remove the top element. 2 heaps result: h1, h2; problem: how do you combine them into a single heap: suppose min(h1)

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents