CP264 : Notes - Introduction

Read the Course Syllabus

Labs start in week 2. (See Labs). Take the time to follow the instructions in Lab 1: Eclipse / CDT to set up your own computer or create a workspace on your own memory stick or in your Laurier network storage before the lab.


What do we learn in Data Structures II?

In CP264: Data Structures I we learnt:

In CP264 we will implement all these data structures using the C programming language.

Why we need to do data structures in C?

Why C?

C is used in many other courses

CP264 and CP264 lay the foundations for all computing courses that need programming.


How Do You Do Well In The Course?

Do The Work

Practice is the only way to get familiar with this material. This is not a course in which you can memorize your way to success. You have to demonstrate you know the material by applying the material. You will have lots of opportunity to


Python vs C vs Advanced C

We will look at Python code for the array-based stack from CP264, and compare it against a simple implementation of an array-based stack in C, and against a more advanced implementation of an array-based stack in C. We will emphasize the similarties and differences in the algorithms. We do not expect you to understand must of the simple C code, and less of the advanced C code, but we will introduce basic C syntax and coding concepts.

Stack Comparisons: Python vs C vs Advanced C

(You can move the separators between the code columns to make each column wider or narrower.)

A second set of comparisons is with:

Movie Comparisons: Python vs C

We will return to these chunks of code throughout the course in order to illustrate C coding concepts and ADT design.