Sie sind auf Seite 1von 3

COMP2012 Fall 2015

Object-Oriented Programming and Data Structures


Lectures: Tuesday and Thursday, 3h--4h20pm, G010

Prof Long QUAN, quan@cse.ust.hk, office 3506

Teaching Assistant: Zuozhuo Dai, Ligeng Li, and Tianwei Shen

Week Date Topics Slides (codes)

1 1 sep Programming paradigms: procedural vs. object- intro


oriented programming
review
Review on procedural programming: functions and
3 sep (holiday) recursions

2 8 sep Algorithm analysis analysis

10 sep

3 15 sep Sorting algorithms


insertionMergeSort
Review
- pointers, dynamic objects pointer
17 sep - lists and linked lists list

4 22 sep

Basic Object-Oriented Programming (OOP):


24 sep - classes (static and dynamic) class
- abstract data type (ADT) abstractDataType

5 29 sep Fundamental Data Structure: dynamicClass


- list and its ADT
listADT
1 oct (holiday)

Operator overloading overload (string in


6 6 oct File organization codes)
separateCompilation

8 oct
More on classes: class2 (codes)
7 13 oct - static members
- member initializer

15 oct

More data structures: stackQueue (codes)


8 20 oct (in-class - stacks
midterm) - queues

22 oct

9 27 oct - applications: bucket and radix sort

Generic Programming: generic (codes)


- function and class templates
- Standard Template Library (STL) (vector, list, STL
deque, stack, queue (string)) vector reference
list reference
29 oct deque reference
stack and queue
reference
string
string reference

Inheritance inheritance
10 3 nov - single inheritance
- order of construction/ destruction
- multiple inheritance
5 nov

11 10 nov
Polymorphism polymorphism
- virtual functions (codes)
- dynamic binding
- pure virtual functions bst
- abstract classes (codes)
12 nov
Non-linear data structures
- trees, binary tree and search tree (BST)
- tree ADT

12 17 nov AVL trees avl1


avl2
Heaps, Heap sort, priority queue
heapsort
19 nov
13 24 nov Hashing hashing

26 nov

Final examination Sample final and its solution from last year

Das könnte Ihnen auch gefallen