Data Structures Lectures for Spring 2014

Lecture

Date

Topics

Overheads

Handouts

01

Jan 14

Ch 1: Python Review

Chapter 1 Slides

Python Review Questions

02

Jan 16

Ch. 2: Algorithm Analysis; Big-oh; timing

Chapter 2 Slides

Python classes and algorithm analysis questions

3

Jan 21

Ch. 2: Performance of Python Built-in data structures

Chapter 2 Part 2 Slides

More algorithm and built-in data structures analysis questions

04

Jan 23

Ch. 3: Linear data structures; stack implementations


Stack implementation questions

05

Jan 28

Stack applications; Queue implementations


Linked stack implementation questions

06

Jan 30

Queue applications; Deque


Deque questions

07

Feb 4

Ch. 6.6: Priority Queue: binary heap implementation


Heap questions

08

Feb 6

Unordered Lists implementations

unorderedList.zip

Unsorted linked list questions

09

Feb 11

Ordered List implementation Ch. 4: Recursion: fibonacci example


Ordred linked list questions

10

Feb 13

Ch. 4: Recursion continued


More recursion questions

11

Feb 18

Review for Test 1

Test 1 Review Topics

Test 1 Spring 2013 Solution

Test 1 Spring 2013

Test 1 Fall 2013

Test 1 Fall 2012

Test 1 Fall 2012 Solution

Test 1 Fall 2010

Test 1 Fall 2010 Solution

Test 1 Fall 2013 Solution

12

Feb 20

Test 1: Chapters 1 - 3


Test 1 Spring 2014 Solution

13

Feb 25

Recursion examples: backtracking coin-change problem an dynamic programming


Coin-change questions

14

Feb 27

Ch. 5: Searching: linear and binary search

On-line Hashing Tutorial

Searching questions

15

Mar 4

Searching: hashing: chaining/closed addressing implementations


Hashing questions

16

Mar 6

Hashing implementations: open addressing implementations; Simple sorts: bubble, selecton, and insertion sorts;


Simple sort questions

17

Mar 11

Advanced sorts: heap, merge, and quick sorts


Advanced sort questions

18

Mar 13

Ch. 6: tree terminology, binary tree implementation, traversals, parse tree application


Tree questions

Spring Break (March 17 – March 21)

19

Mar 25

Binary Search Tree implementation


More Tree questions

20

Mar 27

Binary Search Tree delete method


BST delete questions

21

Apr 1

Review for Test 2

Test 2 Review Topics

Test 2 Fall 2012

Test 2 Fall 2012 Solution

Test 2 Spring 2013

Test 2 Spring 2013 Solution

Test 2 Fall 2013

Test 2 Fall 2013 Solution

22

Apr 3

Test 2: Chapters 4 – 5

Test 2 Spring 2014

Test 2 Spring 2014 Solution

23

Apr 8

AVL trees


AVL Tree questions

24

Apr 10

More AVL trees



25

Apr 15

File Structures vs. Data Structures

Good B+ Tree Summary

Wikipedia B+ Tree discussion

B+ Tree

File structure questions

26

Apr 17

Ch. 7: Graph terminology, traversals (BFS and DFS)


Graph questions

27

Apr 22

Graph implementations


More Graph questions

28

Apr 24

Graph select algorithms: topological sort, Dijkstra’s algorithm, Prim's Algorithm

Code from lecture:

lec28.zip

Even More Graph questions

29

Apr 29

Graph algorithms: Traveling Salesperson Problem (TSP)


TSP problem questions

30

May 1

Review for Final Exam

Final Exam Review Topics

TSP problem Backtracking & Best-first search questions

Final Exam, Thursday (May 8) 10:00-11:50 AM in ITT 322