Computer Science Fundamentals (CS153 2003S)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Experiments in Java]
[Scheme Reference]
[Scheme Report]
[CS153 2002S (Walker)]
[CS151 2003S (Rebelsky)]
[CS152 2000F (Rebelsky)]
[SamR]
Back to Implementing Lists with Nodes. On to Priority Queues, Heaps, and Heap Sort.
Held: Friday, 25 April 2003
Summary: Today we consider a variety of linear structures, among the simplest forms of collections.
Related Pages:
Assignments:
Notes:
Overview:
put, add an element to the collection
get, get an element from the collection,
removing it from the collection
get requires a non-empty collection, most
collections provide a isEmpty predicate.
get returns is up to
the policy of the particular kind of linear structure.
last in, first out(LIFO) policy.
first in, first out(FIFO) policy.
best firstpolicy.
peek returns the object to be returned by
get, but without deleting it.
size returns the number of elements in the structure.
isFull operation.
add is typically called push.
get is typically called pop.
peek is typically called top.
add is typically called enqueue.
get is typically called dequeue.
peek is typically called front.
Back to Implementing Lists with Nodes. On to Priority Queues, Heaps, and Heap Sort.
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Experiments in Java]
[Scheme Reference]
[Scheme Report]
[CS153 2002S (Walker)]
[CS151 2003S (Rebelsky)]
[CS152 2000F (Rebelsky)]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue May 6 09:21:07 2003.
The source to the document was last modified on Thu Jan 16 15:16:16 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS153/2003S/Outlines/outline.48.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby