Lecture notes for Week 4: Pointers & Dynamic Allocation
Topics
-
Linked lists
-
Reference (pointer) implementations
-
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
-
Problem set available in course directory (ProbSet1-2003.pdf).
-
Reduced counselling next Tuesday (unavail 11:00-11:30)
- Lab 4 now available.
Solving Recurrences (continued)
Substitution method
Recurrence Tree method
Data Structures
Pointers
Lecture 11/12 (Tuesday, February 1 2005)
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