Once again, this lecture will continue with Abstract Data Types. In particular, focus will be placed on Inspectable Containers, the Tree and Binary Tree ADT. There are various definitions related to Trees however, this material will not be covered! Students are responsible for reviewing the definitions on their own (see pages 228-233 in the first edition and pages 144-149 in the second edition).
Similarly, you are also encouraged to look over the following material which may not necessarily be covered in the lecture depending on time availability (if you have any problems with this material, email me or come see me during office hours!)
Second Edition
Pages | Section |
149 - 151 | 5.1.2 - 5.1.3 |
164 - 165 | 5.3.2 |
32-35 | 2.2 |
40-41 | 2.4.3 |
Pages | Section |
228-236 | 6.1.2 - 6.1.3 |
247-248 | 6.3.1 - 6.3.2 |
100 - 103 | 3.2 |
108-109 | 3.4.3 |
Java Source Code (taken from Professor Franck van Vreugel)
ArrayStackYou may find the following useful to review:
StackFullException
ArrayQueue
QueueFullException
ArrayVector
VectorFullExceptionImplementation of a stack, queue and ranked sequence with an array in pseudocode: PDF version (Written by Professor Franck van Breugel)
A Quick Mathematical Review:
Finally, the following material is not required but is recommended if you have some spare time!first edition: pages 35-38 second edition: pages 103 - 106.