Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS2210b: Data Structures and Algorithms
Winter 2014: Assignment 1 (concept)
Due: January 20
Instructions: Hand it in in class on January 20, or in the locker 300 on the third oor of MC by
the midnight of January 20, or submit it electronically.
1. (10%) U
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS2210b: Data Structures and Algorithms
Winter 2014: Midterm Examination Solutions
120 minutes
Instructions:
Write your name and student number in the space provided.
Please check that your exam is complete. It should have 14 pages in total
The examina
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS2210
Data Structures and Algorithms
Lecture 9: AVL TREES
definition, properties, insertion
6
v
8
3
z
4
BST Performance
For a binary search tree with n nodes and of height h
methods find, insert and remove take O(h) time
Height h is O(n) in the worst cas
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS2210
Data Structures and Algorithms
Lecture 12 : B Trees
2004 Goodrich, Tamassia
Outline
Btree
Special case of multiway search trees
used when data must be stored on the disk, i.e. too
large to fit in the memory
2
Reasons for using BTrees
Accessing d
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS2210
Data Structures and Algorithms
Lecture 1: C
L t
1 Course O
Overview
i
Instructor: Olga Veksler
2004 Goodrich, Tamassia
What is this course about?
We will study moderately complex data structures
and algorithms that are essential in core areas of
c
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS 2210b Data Structures and Algorithms
Assignment 4 (Programming)
Instructor: Olga Veksler
due March 15, 11:55 pm
The total for this assignment is 110 marks, which is more than 100%. There is an extra credit
of 10%, for implementing AVL tree correctly (w
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS2210b: Data Structures and Algorithms
Winter 2014: Assignment 3(concept)
Due: February 24
Instructions:
Put your assignment in an envelope labeled with your name and course number and drop
it in the CS2210 locker by the midnight on the due date. Altern
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS 2210b Data Structures and Algorithms
Winter 2014
Assignment 5
Instructor: Olga Veksler
due April 7, 11:55 pm
The total for this assignment is 110 marks, which is more than 100%. There is an extra credit of 10%. The extra
credit is not for anything in p
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
CS 2210b, Winter 2014
Assignment 2 (Programming)
Due February 5, 11:55 pm
1
Overview
In this assignment, you will write a simple spellchecker. Your program should be named Spell and
it should take two le names as command line arguments. Thus it is invoke
Western University (Ontario)  Also known as University of Western Ontario
Data Structures and Algorithms
CS 2210

Winter 2014
Part 1: Multiple Choice
Enter your answers on the Scantron sheet.
We will not mark answers that have been entered on this sheet.
Each multiple choice question is worth 3.5 marks.
Note. when you are asked to compute the order of the time complexity functio