Index Show pagesource Old revisions Digg this! Del.Icio.Us Google bookmark

This is an old revision of the document!

# CSCI2100 Data Structures

## Discussion forum

**Here** is the link to our discussion forum.

## Spring 2017-2018 Term 2

 Lecture I Lecture II Tutorial I Tutorial II M5, 12:30 pm - 1:15 pm T5-6, 12:30 pm - 2:15 pm M10 5:30 pm - 6:15pm W10 5:30 pm - 6:15 pm LSK LT3 LSK LT3 LHC 104 ERB 407

The Golden Rule of CSCI2100: No member of the CSCI2100 community shall take unfair advantage of any other member of the CSCI2100 community.

The Student/Faculty Expectations on Teaching and Learning document is available [here].

# Course Description

The concept of abstract data types and the advantages of data abstraction are introduced. Various commonly used abstract data types including vector, list, stack, queue, tree, and set and their implementations using different data structures (array, pointer based structures, linked list, 2-3 tree, B-tree, etc.) will be discussed. Sample applications such as searching, sorting, etc. will also be used to illustrate the use of data abstraction in computer programming. Analysis of the performance of searching and sorting algorithms. Application of data structure principles.

# Pre-requisite and Enrollment policy

Pre-requisite: CSCI1110 or 1120 or 1130 or 1510 or 1520 or 1530 or 1540 or ENGG1110 or ESTR1100 or ESTR1102 or ESTR1002 or its equivalent. For senior-year entrants, the prerequisite will be waived. Students are also expected to have basic knowledge in Linux command line.

If you have not used Linux command line interface before, you can consider the following online course from Udacity.

## Learning Objectives

1. To understand the concepts and operations of various data structures and their applications
2. To understand the concept of abstract data types
3. To have basic knowledge of algorithms and complexity of algorithms

## Learning Outcomes

1. To be able to implement the following data structures as abstract data types in a high level programming lanauge: stack, queue, hash table, list, binary search tree (including AVL tree, red black tree and splay tree), B-tree, trie, disjoint set, graph (including minimum spanning tree and shortest path).
2. To be able to use appropriate data structures in different applications.
3. To be able to implement abstract data types.
4. To be able to analyse the complexity of simple algorithms (such as searching and sorting).

## Learning Activities

1. Lectures
2. Tutorials
3. Web resources
4. Assignments
5. Examinations

# Personnel

 Lecturer Tutor 1 Tutor 2 Tutor 3 Irwin King Wang Chen Shuyue Hu Jiani Zhang king AT cse.cuhk.edu.hk wchen AT cse.cuhk.edu.hk syhu AT cse.cuhk.edu.hk jnzhang AT cse.cuhk.edu.hk SHB 908 SHB 1024 SHB 1005 SHB 1024 3943 8398 * By appointment Friday 11:00 am - 12:00 am Thursday 4:00 pm - 5:00 pm Wednesday 4:00 pm - 5:00 pm

Note: This class will be taught in English. Homework assignments and examinations will be conducted in English.

# Syllabus

The pdf files are created in Acrobat XI. Please obtain the correct version of the Acrobat Reader from Adobe.

Week Date Lecture Topics
and Notes
Tutorial Topics Homework Assignments
and Events
Resources
1 9/1 Introduction

Introduction
First Lecture
KEEPAttendance
Introduction to C

C programming tutorial 1
C programming tutorial 2
* WA #1 hw_1.19.pdf
Due on or before 5:00 pm, Thursday, Jan 26, 2017
* 1.1 (1), (9), and (13); 1.3 (4) and (8); 1.4 (2) and (6)
WA1 solution
* Chapter 1 of Weiss'97
* Chapter 1 of Cormen et al.'90
2 16/1 Algorithm Analysis

Analysis (updated)
Online Judge System * PA #1 hw_1.25.pdf
From 00:00 am, Monday, Feb 06, 2017 to 11:59 pm, Sunday, Feb 12, 2017
* 1.23(Problem 1);1.24(Problem 2)
1.23 solution 1.24 solution
* Chapter 2 of Weiss'97
3 23/1 1. Algorithm Analysis
2. Lists, Stacks and Queues

Recurrence
LSQ
Linux commands and vim * WA #2 hw_1.25.pdf
Due on or before 5:00 pm, Friday, Feb 10, 2017
* 1.6 (1), (2), and (6); 1.8 (3); 1.9 (2) and (3)
WA2 solution
* Chapter 2 of Weiss'97
* Chapter 3 of Weiss'97
4 30/1 Chinese New Year Holiday
5 6/2 1.Lists, Stacks and Queues
2.Tree Data Structures and Algorithms

Trees
I/O issues in C * PA #2 hw_1.26.pdf
From 00:00 am, Friday, Feb 17, 2017 to 11:59 pm, Thursday, Feb 23, 2017
* 2.20(Problem 1);2.21(Problem 2)
2.20 solution 2.21 solution
* Chapter 3 of Weiss'97
6 13/2 Tree Data Structures and Algorithms
Lists, Stacks,Queues * WA #3 hw_1.26.pdf
Due on or before 5:00 pm, Friday, Mar 3, 2017
* 3.3 (3); 3.9; 3.11; 3.18; 5.1; 5.2; 5.6
WA3 solution
* Chapter 4 of Weiss'97
7 20/2 1. Tree Data Structures and Algorithms
2. Heaps

Trie
Heap
Binary and AVL Trees in C * PA #3 hw_1.27.pdf
From 00:00 am, Friday, March 03, 2017 to 11:59 pm, Thursday, March 09, 2017
* 3.32(Problem 1);3.35(Problem 2);3.37(Problem 3) <choose 2>
3.32 solution 3.35 solution 3.37 solution
* Chapter 4 of Weiss'97
8 27/2 1. Heaps
2. Hash Functions

Hash
Heaps in C * WA #4 hw_1.27.pdf
Due on or before 5:00 pm, Friday, Mar 17, 2017
* 4.1; 4.15; 6.1; 6.4; 6.6 (1)
WA4 solution
* Chapter 6 of Weiss'97
* Chapter 5 of Weiss'97
9 6/3 1. Hash Functions
2. Sorting Algorithm

B-tree
Sorting
Hashing in C * PA #4 hw_1.28.pdf
From 00:00 am, Friday, March 17, 2017 to 11:59 pm, Thursday, March 23, 2017
* 4.18(Problem 1);5.12(Problem 2)
4.18 solution 5.12 solution
* Chapter 5 of Weiss'97
10 13/3 Sorting Algorithms
Pointer in C No assignment * Chapter 7 of Weiss'97
11 20/3 1. Sorting Algorithms
2. Graphs

Graphs
Programming Midterm Preview No assignment * Chapter 7 of Weiss'97
12 27/3 1. Graph Data Structures and Algorithms
28/3 Midterm Written Exam
31/3 Midterm Programming Exam
No Tutorial Sample Code
13 3/4 3/4 No class
4/4 Ching Ming Festival
* Chapter 9 of Weiss'97
14 10/4 Graph Data Structures and Algorithms
* WA #5 hw_1.28.pdf
Due on or before 5:00 pm, Friday, April 28, 2017
* 7.1; 7.3; 7.4; 7.5 (1)
WA5 solution
* Chapter 9 of Weiss'97
15 17/4 17/4 Easter
1. Graph Data Structures and Algorithms
2. Course Summary

Final Summary
* PA #5 hw_1.29.pdf
From 00:00 am, Monday, April 24, 2017 to 11:59 pm, Sunday, April 30, 2017
* 6.12(Problem 1);7.8(Problem 2)
6.12 solution 7.8 solution

Tutorial Page

• For detailed tutorial and lab session information, please go to Tutorial Page.

Manual Page

• For supplementary material on various topics related to this course, please go to Manual Page. Enjoy your Exploration.