Lecture notes for Week 4: Pointers & Dynamic Allocation

Topics

  1. Linked lists

  2. Reference (pointer) implementations

  3. Memory allocation and freeing

Textbook portions covered

Introduction to Algorithms (Cormen et al.)

Chapter 10 Sections 2 and 3

Engineering Algorithms...(Clowes “online book”)

Appendix B (Data Structures, Memory and Pointers)

Lecture 10 (Friday, January 28, 2005)

Announcements

Solving Recurrences (continued)

Substitution method

Recurrence Tree method

Data Structures

Pointers

Lecture 11/12 (Tuesday, February 1 2005)

Announcements

Suggested Problems

Introduction to Algorithms (Cormen et al.)
  • Exercise 10.3-1
  • Exercise 10.3-3
Engineering Algorithms...(Clowes “online book”)
  • B.2
  • B.3
  • B.4

by Ken Clowes

v1.0