CS240 05 06 14
CS240 05 06 14
Spring 2014
CS240 - Module 1
Spring 2014
1 / 48
Course Information
Instructors:
I
I
Lectures
I
I
Office hours:
I
I
CS240 - Module 1
Spring 2014
2 / 48
Course Information
Tutors:
John Mok (MC 4065)
Patrick Lee
cs240 [at] student.cs.uwaterloo.ca
Office hours: TBA on the website
Tutorials:
Wednesday 09:30am-10:20am MC 4040
Wednesday 02:30am-03:20pm MC 4063
Wednesday 03:30pm-04:20pm MC 4042
Thursday 08:30am-09:20am OPT 1129
Tutorial this week on LATEX
Assignment 0 to learn LATEX
Lebreton (SCS, UW)
Spring 2014
)
3 / 48
Course Information
Course Webpage:
http://www.student.cs.uwaterloo.ca/~cs240/s14/
Primary source for up-to-date information for CS 240.
I
I
I
Lecture slides
Assignments/Solutions
Course policies
Textbooks:
I
I
I
CS240 - Module 1
Spring 2014
4 / 48
CS240 - Module 1
Spring 2014
5 / 48
Mark Breakdown
Final 50%
Midterm 25%
I
Assignments 25%
I
I
I
I
I
I
CS240 - Module 1
Spring 2014
6 / 48
Mark Breakdown
Final 50%
Midterm 25%
I
Assignments 25%
I
I
I
I
I
I
CS240 - Module 1
9
>
Note: You must pass
>
>
=
the weighted average of
the midterm and the final
>
>
>
; exam to pass the course
Spring 2014
6 / 48
Cheating
CS240 - Module 1
Spring 2014
7 / 48
Courtesy
CS240 - Module 1
Spring 2014
8 / 48
Advice
CS240 - Module 1
Spring 2014
9 / 48
CS240 - Module 1
Spring 2014
10 / 48
Course Topics
priority queues and heaps
sorting, selection
binary search trees, AVL trees, B-trees
skip lists
hashing
quadtrees, kd-trees
range search
tries
string matching
data compression
CS240 - Module 1
Spring 2014
11 / 48
CS Background
Topics covered in previous courses with relevant sections in [Sedgewick]:
arrays, linked lists (Sec. 3.23.4)
strings (Sec. 3.6)
stacks, queues (Sec. 4.24.6)
abstract data types (Sec. 4-intro, 4.1, 4.84.9)
recursive algorithms (5.1)
binary trees (5.45.7)
sorting (6.16.4)
binary search (12.4)
binary search trees (12.5)
CS240 - Module 1
Spring 2014
12 / 48
Problems (terminology)
CS240 - Module 1
Spring 2014
13 / 48
CS240 - Module 1
Spring 2014
14 / 48
CS240 - Module 1
Spring 2014
15 / 48
Efficiency of Algorithms/Programs
CS240 - Module 1
Spring 2014
16 / 48
CS240 - Module 1
Spring 2014
17 / 48
CS240 - Module 1
Spring 2014
18 / 48