Introduction To
Data Abstractions
CSCI 2320 - Fall 2008 -
Tentative Schedule - 12:45 TT
All Labs/Assignments Are Due The Next Class Period Unless Specified Otherwise!
|
Class |
Topics |
Reading
Assignments
|
Laboratory
|
|
# 1 8/28 R
|
Introduction To Class Fill Out Questionnaire (Lab I-5 points) Distribute & Discuss Course Outline Review C & Start To Introduce C++ |
Read the Course Outline |
Install Visual Studio 2005/2008 On Your Computer |
|
# 2 9/2 T
|
OOP 2 Classes Constructors Destructors Operator Overloads Function Overloads Private & Public Scope Operator Accessor Methods Mutator Methods |
OOP 2 Slides |
Study for Quiz 1
Spend At Least an Hour Or Two
OOP 2 HW |
|
# 3 9/4 R
|
Quiz 1 |
Read About HPP & CPP Files
|
Finish OOP 2 HW |
|
# 4 9/9 T
|
Introduction To Templates Memory Management New, Delete Deep Copy Shallow Copy |
Stack Slides |
Stack Lab DUE 9/16 |
|
# 5 9/11 R
|
Stack Design Options Static Integer Stack Class Dynamic Integer Stack Class Template Stack Class Constructors Destructors, Push Pop Empty Resize Copy Constructor Overload = Deep Copy Quiz 2 |
Stack Slides |
Stack Lab Extra Credit If Correct On 9/16 Jury Duty - OK On 9/17 Stack Must Be Adjusted To Ignore Element 0 Will Have To Modify Code Slightly |
|
# 6 9/16 T
|
Direct Access Files Single Linked List - Direct Access File Implementation
Why Direct Access Files? FILE *FilePtr; FilePtr = fopen (NewFileName,"rb+"); FilePtr = fopen (NewFileName,"wb+"); fseek(FilePtr, 4 * sizeof(Student), SEEK_SET); fwrite(&Students,sizeof(Student),(long)1,FilePtr); fread(&Students,sizeof(Student),(long)1,FilePtr); |
Direct Access Files
Optional |
Practice DA Files |
|
# 7 9/18 R
|
Stack Class Direct Access Files Create Direct Access Templated File Display Read Record Write Record File Length Review Direct Access Files |
Direct Access Files |
DA_Simple Sort Lab Study For Exam 1 |
|
# 8 9/23 T
|
Review For Exam Review Direct Access Files
Introduction To The Direct
Access File Generic Design ListHeader Class |
DA-DLList.zip | |
|
# 9 9/25 R
|
Exam I | ||
|
# 10 9/30 T
|
Explain DA-DLList Management Constructor For Existing Files GetNode FreeNode Display |
DA-DLList-Hicks.zip | |
|
# 11 10/2 R
|
Explain Internal
Memory DLList Management Constructor/Destructor GetNode FreeNode Display |
DA-DLList-DLList-1 Lab Due 10/7 |
|
|
# 12 10/7 T
|
Push Pop Empty Insert Internal Memory DLList 2 Direct Access Files DA-DLList 2 |
DLList 2-Push-Pop-Empty-Insert-Remove Lab | |
|
# 13 10/9 R
|
Mr. Greg Hoffer
Software Testing, Version Control, Project Management, Documentation
Inplace |
DLList-InsertAfter-Inplace Lab | |
|
# 14 10/14 T
|
Analysis Of Algorithms Assume # R/W Per Second = 200 No Records = 1,000,000
How To Compute # Read/Writes
Per Second Structure : One
Unordered File For Data Structure : One Ordered
File For Data Structure : Double Linked
List File File For Data Structure : Double Linked
List File File For Data Introduction To Binary
Trees |
DLList-Search-Delete Lab | |
|
# 15 10/16 R
|
Quiz 40% On Analysis Of Algorithms 60% On DLList & DA-DLList
SetLeft Inorder Traversal
Board Work |
BinTree-Const-Dest-Get-Free-SetLeft-SetRight-Inplace Lab | |
|
# 16 10/21 T
|
Non-Recursive Tree Traversals
Figuring Binary Tree Distribution |
BinTreeTraversals | BinTree-Stats-Levels Lab Due 10/28 |
|
# 17 10/23 R
|
3 Binary Tree Deletion Strategies 1-Lazy Deletion (may not use) 2-Extend-Level Deletion (80% credit) 3- Bubble-Up Deletion (100% Credit) ----------------- Material For Exam III ----------------- Introduction To Graph Theory Königsberg - Seven bridges Car 54 Poster Traveling Salesman Problem Four Color Problem Maps-Connectivity Define Graph G = (V,E) Verticies (V) - Nodes Edges (E) - Arcs Adjacency Connectivity Undirected Graphs V = {A, B, C, D, E} E = { (A,B), (A,D), (A,E), (B,E) } Sketching Graphs Directed Graphs V = {A, B, C, D} |
GraphTheory1 |
BinTree-Stats-Levels Lab |
|
# 18 10/28 T
|
Graph Theory E = { (A,B), (A,D), (A,E), (B,E) } Sketching Graphs Directed Graphs V = {A, B, C, D}
Planar
Graphs |
GraphTheory1 GraphTheory2 |
Study For Exam |
|
# 19 10/30 R
|
Exam II |
Delete-DeleteTree |
|
|
# 20 11/4 T
|
Cross Roads Game .NET Programming |
Cross-Roads-Game-1Lab | |
|
# 21 11/6 R
|
Graph
Theory Build Adjacency List For Shortest Path Dijkstra's Algorithm
An empty tree is height balanced. For a tree T, T-L shall denote the left subtree and T-R shall denote the right subtree. For a tree T, h-L shall denote the height of the left subtree (T-L) and h-R shall denote the height of the right subtree (T-R). A non empty binary tree is HEIGHT BALANCED if
and only if The BALANCE FACTOR of a node T in a binary tree bf(T) = h-L - h-R. For any node T in an AVL tree, bf(T) = -1, 0, or +1 Introduction To AVL Trees |
AVL-Applet-Tutorials HW | |
|
# 22 11/11 T
|
Work On Cross Roads |
AVL-Tree-Single-Rotates Due 11/18 |
|
|
# 23 11/13 R
|
An empty tree is height balanced. For a tree T, T-L shall denote the left subtree and T-R shall denote the right subtree. For a tree T, h-L shall denote the height of the left subtree (T-L) and h-R shall denote the height of the right subtree (T-R). A non empty binary tree is HEIGHT BALANCED if
and only if The BALANCE FACTOR of a node T in a binary tree bf(T) = h-L - h-R. For any node T in an AVL tree, bf(T) = -1, 0, or +1 Introduction To AVL Trees |
||
|
# 24 11/18 T
|
Introduction To B Trees & B+ Trees
B Tree Requirements B+ Tree Requirements Difference Between A B
Tree & A B+ Tree Demo With FoxPro Database |
B+Tree |
B+Tree - HW AVL-Tree-Double-Rotates Due 12/2 |
|
# 25 11/20 R
|
Introduction To Hashing |
Cross-Roads-Game-Lab 2 Due 12/9 No Assignments Accepted After Noon on 12/10 |
|
|
# 26 11/25 T
|
Work On AVL Trees | ||
|
# 27 11/27 R
|
Thanksgiving | ||
|
# 28 12/2 T
|
Hashing Completed | ||
|
# 29 12/4 R
|
Exam III | ||
|
# 30 12/9 T
|
Red
Black Trees Heaps & Heap Sort |
||
|
12/10 |
Reading Days | Reading Days | |