Comp 220: Data Structures, Fall 2017

This syllabus is subject to change based on specific class needs, especially the schedule. Significant deviations will be discussed in class.



Data structures continues the study of abstraction and programming through a focused study of data structures, algorithms, and abstract data types. The primary focus of this course is the design and development of algorithms and programs using data abstraction and information hiding via abstract data types ADTs. Data abstraction is absolutely fundamental to good programming practice and the management of large scale problems and data sets. This course is designed to round out a student’s understanding of basic computer science concepts while strengthening the program design and development skills through continued use of a test-driven design methodology.

It is imperative that programmers and program designers be able to determine which of the many solutions available is the best for their specific task. Throughout the course, students will focus on to making solid quantitative and qualitative judgments about program efficiency and overall program design choices. Gone are the days when “it works” is a good enough assessment for the quality of a program.

Students will explore the ideas and concepts brought up in class and homework assignments during the weekly lab session. In addition to hands on exercises, lab sessions will be used to explore current, relevant research in computer science.


We will focus on chapter 5 and beyond from the text. This includes, but is not limited to:


The course textbook will be:

Other sources will be posted on this webpage as needed.

Programming Environment

This course utilizes the Code::Blocks ide and the GNU compiler for C++ development.

All programs written in this course are required to compile and run on a server running Ubuntu 16.04.3. All students will have access to the departmental server and thereby the above development tools. While development is not required in this environment, failure to properly port a program to the required environment could result in your program not compiling correctly at the time of grading. All software for this course is available free of charge and can be found on the web if students wish to install it on their personal machines.




The course workload is as follows:

Category Number Of Assignments
Labs 10
Homework 8–10
Projects 2
Exams 7

Homework assignments will always either precede a lab to prepare for it or follow a lab to complete it. Students are also encouraged to look at the textbook’s review questions, since the solutions are available online. There will be no dedicated midterm or final exam, but 7 exams spaced throughout the semester. Each exam will focus primarily, but not necessarily exclusively, on the material covered since the previous exam. The final exam will include a small number of cumulative questions, and I reserve the right to include at most one cumulative question on each of the other exams.


The weekly workload for this course will vary by student but on average should be about 13 hours per week. The follow tables provides a rough estimate of the distribution of this time over different course components for a 16 week semester.

Category Total Time Time/Week (Hours)
Lectures+Labs   4
Homework 48 3
Exam Study 16 1
Projects 48 3
Reading+Unstructured Study   2


Lab and homework assignments are graded on a simple 3 point scale. Grades are marked with, in decreasing order, a check-plus, check, or check-minus. Your final grade for these two assignment categories is then based off the respective averages and determined by the following chart. Notice this chart lists the minimum average needed to achieve a particular letter grade.

Assignment Avg. (min) Letter Grade
2.8 A
2.75 A-
2.5 B+
2.25 B
2 B-
1.75 C+
1.5 C
1 C-
0.75 D
0.5 F

Your final grade is based on a weighted average of particular assignment categories. You can estimate your current grade based on your scores and these weights. You may always visit the instructor outside of class to discuss your current standing.

category weight
exams 45%
projects 25%
homework 12.5%
labs 12.5%
participation 5%

This courses uses a standard grading scale. Assignments and final grades will not be curved except in rare cases when its deemed necessary by the instructor. Percentage grades translate to letter grades as follows:

Score Grade
94–100 A
90–93 A-
88–89 B+
82–87 B
80–81 B-
78–79 C+
72–77 C
70–71 C-
68–69 D+
62–67 D
60–61 D-
0–59 F

You are always welcome to challenge a grade that you feel is unfair or calculated incorrectly. Mistakes made in your favor will never be corrected to lower your grade. Mistakes made not in your favor will be corrected. Basically, after the initial grading your score can only go up as the result of a challenge.


The following tentative calendar should give you a feel for how work is distributed throughout the semester. Assignments and events are listed in the week they are due or when they occur. This calendar is subject to change based on the circumstances of the course.

date topic Assignment
Wed 08/23 Intro Using VNC, Code::Blocks, COMP161 BigO Notes
Thu 08/24 Logarithms (notes) Lab/HW 1 assigned
Fri 08/25 Review C++ Fundamentals and Big O COMP161 C++ Notes I, COMP161 C++ Notes II
Mon 08/28 Analyzing Simple Recursion (notes) Read Ch. 7
Wed 08/30 Palindromes and Binary Search  
Thu 08/31 Recursion to Iteration HW 1 due, Lab/HW 2 AND HW 3
Fri 09/01 Review  
Mon 09/04 Exam 1  
Wed 09/06 Structural Recursion and Iteration (notes)  
Thu 09/07 Recursion for intToStr HW 2 AND 3 due, Lab 3
Fri 09/08 Analyzing Sorting Read Ch. 10
Mon 09/11 Divide and Conquer Sorting (Mergesort)  
Wed 09/13 Quicksort  
Thu 09/14 Tracing Sorting and Searching Lab/HW 4 (Solutions)
Fri 09/15    
Mon 09/18 Collections: Stacks and Queues Read 5.1-5.3
Wed 09/20 Exam 2  
Thu 09/21 Using Stacks and Queues Lab/HW 5
Fri 09/22 Collections: Maps and Sets Read 5.4-5.5
Mon 09/25 Traversing Collections (notes) Read 5.6
Wed 09/27 Designing Classes Read 6.1
Thu 09/28 Map Inversion Lab/HW 6
Fri 09/29    
Mon 10/02    
Wed 10/04 Exam 3 Solutions
Thu 10/05 Stacks Using Vectors Lab/HW 7
Fri 10/06 Overloading Operators Read 6.1
Mon 10/09   Exam 4 (take-home)
(10/11–10/15) (Fall Break) (Fall Break)
Mon 10/16 Exceptions and Exception handling (notes)  
Wed 10/18 Handling Input: Tokenizing Read 6.4
Thu 10/19 Reverse Polish Notation Calculator Project 1 out
Fri 10/20 Pointers  
Mon 10/23   Read 11.1-11.2
Wed 10/25 Arrays and Pointer Arithmetic Read 11.3-11.4
Thu 10/26 Free Lab for Project 1  
Fri 10/27 C-style Strings  
Mon 10/30 Dynamic Memory, Linked Lists Read 12.1-12.2
Wed 11/01 Traversing Linked Lists, Arrays vs. Linked Lists  
Thu 11/02 Array comparison Lab 8
Fri 11/03 Freeing Memory, Destructors Exam 5 (take-home), Read 12.3
Mon 11/06 DoubleStack Read 12.4-12.5
Wed 11/08    
Thu 11/09 Better Arrays and Vectors Lab 9/HW 7
Fri 11/10 Copying Objects Read 12.7
Mon 11/13 Dynamic-array Stack Analysis, Templates Read 12.8, 14.1-14.2
Wed 11/15 Implementing Queues Read 14.3
Thu 11/16   Project 2 out, Exam 6 out
Fri 11/17 Implementing Vectors Labp2 due, Read 14.4-14.5
Mon 11/20 Debugging in CodeBlocks; Maps with Vectors Exam 6 due 11/21, Read 15.1
(11/22–11/26) (Thanksgiving Break) (Thanksgiving Break)
Mon 11/27 Hashing Read 15.2-15.4
Wed 11/29 Hash Table Load Factor; Intro to Tree Read 16.1-16.2
Thu 11/30 Free lab for Project 2  
Fri 12/01 Implementing BSTs Project 2 Due
Mon 12/04 Tree Traversals, Balanced Trees Read 16.3, “HW” 8 out
Wed 12/06 Tree Rotations, Review  
Fri 12/08 6:30 PM   (Final) Exam 7 (Solutions)
Wed 12/13   “HW” 8 due

Monmouth College Services