Learning objectives and review

Lecture 7

Learning objectives

After this class, you should be able to:

  1. Declare a vector class and use its following features: back, begin, empty, erase, front, insert, [ ], pop_back, push_back, rbegin, rend, constructors.
  2. Explain the semantics of insertion into a vectors whose current storage is already full.
  3. Explain the limitations of vectors.
  4. Explain how linked lists help overcome some of these limitations.
  5. Explain the idea behind linked lists.
  6. Give a set of operations on a linked list, draw a figure that shows the state of the linked list.
  7. Analyze the time complexity of operations, and the space requirements for the linked list class.
  8. Implement the linked list class.
  9. Give applications where a linked list might be useful.
  10. Write code using the following features of an STL list class: back, front, push_back, pop_back, push_front, pop_front, begin, end, pop_back, pop_front, list(), erase, remove, size, merge, sort, and unique.

Reading assignment

  1. Sections 3.1-3.4, class notes for complexity analysis.
  2. Lecture: Vectors.
  3. Page 84 (3rd edition).
  4. Chapter 3, sections 3.2, 3.3, 3.5.
  5. Lecture: Linked lists.
  6. Pages 94 and 104 (3rd edition).

Exercises and review questions


Last modified: 14 Aug 2012