Douglas Wilhelm Harder, M.Math. LEL Department of

Douglas Wilhelm Harder, M.Math. LEL Department of
1 / 1
Douglas Wilhelm Harder, M.Math. LEL Department of - slide 1 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 2 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 3 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 4 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 5 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 6 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 7 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 8 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 9 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 10 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 11 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 12 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 13 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 14 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 15 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 16 of 17 Douglas Wilhelm Harder, M.Math. LEL Department of - slide 17 of 17
Douglas Wilhelm Harder, M.Math. LEL Department of Electrical and Computer Engineering University of Waterloo Waterloo, Ontario, Canada ece.uwaterloo.ca dwharderalumni.uwaterloo.ca 2006-2013 by Douglas Wilhelm Harder. Some rights

Related Topics

Download this presentation From Below

"Douglas Wilhelm Harder, M.Math. LEL Department of" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Douglas Wilhelm Harder, M.Math. LEL
Department of Electrical and Computer Engineering
University of Waterloo
Waterloo, Ontario, Canada

ece.uwaterloo.ca
dwharder@alumni.uwaterloo.ca

© 2006-2013 by Douglas Wilhelm Harder. Some rights reserved. Abstract Priority Queues ECE 250 Algorithms and Data Structures<br>
02
Outline This topic will:
Review queues
Discuss the concept of priority and priority queues
Look at two simple implementations:
Arrays of queues
AVL trees
Introduce heaps, an alternative tree structure which has better run-time characteristics Abstract Priority Queues<br>
03
Background We have discussed Abstract Lists with explicit linear orders
Arrays, linked lists, strings

We saw three cases which restricted the operations:
Stacks, queues, deques

Following this, we looked at search trees for storing implicit linear orders: Abstract Sorted Lists
Run times were generally Q(ln(n))

We will now look at a restriction on an implicit linear ordering:
Priority queues 7.1 Abstract Priority Queues<br>