Foothill CollegeApproved Course Outlines

Physical Sciences, Mathematics & Engineering Division | |||||

C S 1C | ADVANCED DATA STRUCTURES & ALGORITHMS IN JAVA | Winter 2014 | |||

4 hours lecture, 3 hours laboratory. | 5 Units | ||||

Total Quarter Learning Hours: 84
(Total of All Lecture, Lecture/Lab, and Lab hours X 12) | |||||

Lecture Hours: 4 |
Lab Hours: 3 | Lecture/Lab: | |||

Note: If Lab hours are specified, see item 10. Lab Content below. | |||||

Repeatability - | |||||

Statement: | Not Repeatable. | ||||

Status - | |||||

Course Status: Active | Grading: Letter Grade with P/NP option | ||||

Degree Status: Applicable | Credit Status: Credit | ||||

Degree or Certificate Requirement: AS Degree, Foothill GE | |||||

GE Status: Communication & Analytical Thinking | |||||

Articulation Office Information - | |||||

Transferability: Both | Validation: 07/01/2013 | ||||

1. Description - | ||

Systematic treatment of advanced data structures, algorithm analysis and abstract data types in the Java programming language. Coding topics include the development of ADTs from scratch, building ADTs on top of the java.util collections, array lists, linked lists, trees, maps, hashing functions and graphs. Concept topics include searching, big-O time complexity, analysis of all major sorting techniques, top down splaying, AVL tree balancing, shortest path algorithms, minimum spanning trees and maximum flow graphs. | ||

Prerequisite: C S 1B. | ||

Co-requisite: None | ||

Advisory: One of the following: ENGL 1A, 1AH, 1S & 1T or ESLL 26. | ||

2. Course Objectives - | ||

The student will be able to: - Implement a user-defined vector abstract data type (ADT) and its associated iterator from scratch, and compare the user-defined performance to the built-in java.util ArrayList.
- Implement a user-defined linked-list ADT and its associated iterator from scratch, and compare the user-defined performance to the built-in java.util LinkedList.
- Build stack, queue and sparse matrix ADTs using ArrayLists and LinkedLists.
- Compute the big-O, little-o, omega and theta time complexity of search and sort algorithms.
- Define asymptotic behavior and perform empirical benchmarks to compare brute-force techniques with divide-and-conquer strategies.
- Analyze the basic algorithms of a general tree ADT.
- Use object-oriented programming (OOP) to create alternative implementations of binary search trees in Java, and verify or compare the logN behavior of each.
- Describe the advantages of balanced trees and analyze the performance of AVL trees.
- Write code using the java.util collection classes that realizes a Splay Tree using either top-down or bottom-up splaying.
- Define linear probing, quadratic probing and open addressing as used in the hash tables ADT.
- Design a priority queue using heaps in Java.
- Analyze, classify and measure the main non-NlogN sorts and write a clear report of the results.
- Implement a Java Quicksort and at least one other NlogN sort and compare the results as the number of data items approaches infinity.
- Define indirect sorting and explain when it is needed.
- Create a graph data structure using OOP techniques and the java.util classes, and implement shortest path, minimum spanning tree and maximum flow problems.
- Describe common applications for each data structure studied in the course.
- Arrive at a strategy for selecting the right data structure for the job.
| ||

3. Special Facilities and/or Equipment - | ||

- Access to a computer laboratory with Java compilers.
- Website or course management system with an assignment posting component (through which all lab assignments are to be submitted) and a forum component (where students can discuss course material and receive help from the instructor). This applies to all sections, including on-campus (i.e., face-to-face) offerings.
- When taught via Foothill Global Access on the Internet, the college will provide a fully functional and maintained course management system through which the instructor and students can interact.
- When taught via Foothill Global Access on the Internet, students must have currently existing e-mail accounts and ongoing access to computers with internet capabilities.
| ||

4. Course Content (Body of knowledge) - | ||

- The Vector (ArrayList) ADT
- Implementing a array list from scratch
- Using java.util ArrayList and associated Iterator
- Linked List ADT
- Implementing a linked list from scratch
- Using java.util LinkedList and associated Iterator
- Applications of Vectors and Linked Lists
- Sparse Matrices
- Queues
- Stacks
- The "subset sum problem" and its solution using vectors and lists
- Time Complexity
- O(f) order of magnitude
- o(f) order of magnitude
- theta(f) order of magnitude
- omega(f) order of magnitude
- Constant, polynomial, logarithmic, and exponential time complexity
- NlogN time complexity
- Improper use of recursion leading to exponential time complexity
- Measuring Asymptotic Behavior
- Empirical methods of measurement (benchmarking)
- Brute-force vs. strategies that use branching or divide-and-conquer algorithms
- Timing greedy and depth-first algorithms in graphs
- General Trees
- Tree nodes, roots, leaves, children and siblings
- Binary node implementation of a general tree
- Insertion and deletion in general trees
- Traversal with recursion
- Cloning trees
- Searching and Binary Search Trees (BSTs)
- Ordering condition and structure condition
- OOP (object-oriented-programming) Implementation
- Time complexity consequence of the divide-and-conquer algorithm in of BSTs
- The alternative "lazy deletion" implementation of tree nodes and its comparative performance to "hard deletion"
- Threaded trees
- Bin heaps
- Balanced BSTs 1: AVL Trees
- Tree height and rebalancing
- Single and double rotations as the fundamental rebalancing tools
- Implementing AVL trees by inheriting from a generic BST
- Balanced BSTs 2: Splay Trees
- Splaying
- Top down vs. bottom-up splaying
- Implementing splay trees using java.util classes
- Hashing
- Hashing functions
- Separate chaining
- Linear and quadratic probing
- Priority Queues
- The percolate down operation
- Bin heap implementation of priority queues
- Heap sort
- Non-NlogN Sorts
- Insertion sort
- Shellsort
- Benchmarking non-NlogN sorts compared with the java.util sort
- NlogN Sorts
- Merge sort
- Heap sort
- Quicksort
- Benchmarking NlogN sorts compared with the java.util sort
- Indirect Sorting
- What it is
- Why it is not needed in Java
- When it is needed.
- Graph Theory
- Structures of a graph
- Nodes, edges and adjacency tables
- Shortest path algorithms and Dijkstra
- Minimal spanning tree algorithms and Kruskal
- Maximum flow graphs and their algorithms
- The use of data structures in common applications areas
- Math
- Physics
- Chemistry
- Biology
- Astronomy
- Business and finance
- Internet
- Strategies for selecting the right data structure.
- Storage allocation and use memory for the data structure
- Deciding on a user-defined or built-in data structure
- How declaration models, binding and visibilty affect different ADT implementations.
| ||

5. Repeatability - Moved to header area. | ||

6. Methods of Evaluation - | ||

- Tests and quizzes
- Written laboratory assignments which include source code, sample runs and documentation.
- Final examination
| ||

7. Representative Text(s) - | ||

Weiss, A. Mark Allen. Data Structures and Algorithm Analysis in Java. Second Edition. Addison Wesley, 2007. This is a classic text in the field and is used by many universities in both undergraduate and graduate classes on the subject of data structures. | ||

8. Disciplines - | ||

Computer Science | ||

9. Method of Instruction - | ||

- Lectures which include motivation for syntax and use of the Java language and OOP concepts, example programs, and analysis of these programs.
- On-line labs (for all sections, including those meeting face-to-face/on campus) consisting of
- A programming assignment web-page located on a college-hosted course management system or other department-approved Internet environment. Here, the students will review the specification of each programming assignment and submit their completed lab work.
- A discussion web-page located on a college hosted course management system or other department-approved Internet environment. Here, students can request assistance from the instructor and interact publically with other class members.
- Detailed review of programming assignments which includes model solutions and specific comments on the student submissions.
- In person or on-line discussion which engages students and instructor in an ongoing dialog pertaining to all aspects of designing, implementing and analyzing programs.
- When course is taught fully on-line:
- Instructor-authored lecture materials, handouts, syllabus, assignments, tests, and other relevant course material will be delivered through a college hosted course management system or other department-approved Internet environment.
- Additional instructional guidelines for this course are listed in the attached addendum of CS department on-line practices.
| ||

10. Lab Content - | ||

- Implementation of time-intensive algorithms on various data types
- Design and implement an algorithm whose execution time and/or memory requirements grow significantly when data size increases.
- Use generics (A.K.A. templates), which are a universal tool in advanced data structures, in some aspect of the algorithm.
- Demonstrate that the algorithm adapts correctly when the generic that you use is applied to at least two distinct underlying data types.
- Document the results of the algorithm when the program is applied to different sized data and different underlying data types.
- Using linked-list ADTs to optimize for size-varying or space-sensitive data types
- Demonstrate the ability to use programming language-supplied linked-list structures in a problem that is not easily solved using fixed-size ADTs such as arrays.
- Incorporate generics so as to allow the algorithm to work on various underlying data types.
- Try different sized data for the linked-list and demonstrate that it handles growth properly.
- Summarize the results along with sample program runs.
- Analyzing time complexity in the lab
- Implement an assigned algorithm after first predicting its time complexity (linear, quadratic, NlogN, etc.).
- Run the algorithm on various sized data sets, recording times.
- Describe the largest size data set that the computer can handle without running out of memory or taking an unreasonable amount of time.
- Compare the expected growth rate with the observed growth rate.
- Demonstrating competence with binary search trees
- Implement a binary search tree (BST) from scratch, or make significant assigned adjustments to an existing BST data structure supplied by your instructor.
- Use recursion as appropriate for some of the BST methods.
- Demonstrate that the class works on various underlying base type by use of generic specialization.
- Supply runs and report on expected vs. observed time complexity.
- Demonstrating competence with balanced trees
- Implement a some assigned balanced tree algorithm (such as AVL, splay or red-black) from scratch, or make significant adjustments to an existing balanced tree algorithm supplied by your instructor.
- Use recursion as appropriate for some of the balanced tree methods.
- Demonstrate that the class works on various underlying base type by use of generic specialization.
- Supply runs and report difference between balanced tree times and simple BST times.
- Incorporating hash tables into programs
- Produce a lab that creates or modifies a hash table and hashing function.
- Write a client that tests out the hash table on various data.
- Using a large data set, demonstrate that near-constant time access is produced by the hashing function and hash table.
- Supply runs and report results with varying sized data sets.
- Analysis of a single sort algorithm
- Implement a single sort algorithm as directed by the instructor.
- Experiment with coding adjustments to try to improve the performance.
- Compare the known time complexity of that algorithm with what you observe using increasingly larger data sets.
- Attempt to explain any discrepancies in the expected vs. observed growth rate of the sort algorithm.
- Analysis of multiple sort algorithms
- Implement multiple sort algorithms, at least two of which involve Shell sort and quicksort.
- Experiment with coding adjustments to try to improve the performance on any one of them to see if you can beat the fastest of the algorithms.
- Time the algorithms on very small to very large data sets.
- Report on which algorithms work better on small sets, and which on large sets.
- Writing projects that use graph theory
- Implement a generic (a.k.a. template) that will realize/specialize a graph of any underlying data type, either from scratch or using code provided by your instructor .
- Write one of the common algorithms for graphs: shortest path, maximum flow or minimum spanning tree.
- Discuss the problems that arise when debugging labs which involve data structures as complex as graph theoretic algorithms
- Devise a reasonable output for displaying graphs and supply samples with your program runs.
| ||

11. Honors Description - No longer used. Integrated into main description section. | ||

12. Types and/or Examples of Required Reading, Writing and Outside of Class Assignments - | ||

- Reading
- Textbook assigned reading averaging 30 pages per week.
- Reading the supplied handouts and modules averaging 10 pages per week.
- Reading on-line resources as directed by instructor though links pertinent to programming.
- Reading library and reference material directed by instructor through course handouts.
- Writing
- Writing technical prose documentation that supports and describes the programs that are submitted for grades.
- Writing specifications using prose to connect natural English language to the formulaic programming languages.
| ||

13. Need/Justification - | ||

This course is a required core course for the A.S. Degree in Computer Science. |

Course status: | Active | |

Last updated: | 2014-06-18 17:03:11 |

Foothill CollegeApproved Course Outlines

Schedule & Course Information

Class Schedule

Currently Available Classes

Course Catalog

Course Outline of Record

Green Sheets

Online Classes

Dates & Deadlines

Final Exam Schedule

Currently Available Classes

Course Catalog

Course Outline of Record

Green Sheets

Online Classes

Dates & Deadlines

Final Exam Schedule

Learning Outcomes Initiatives

Student Learning Outcomes

Service Area Outcomes

Administrative Area Outcomes

Program Learning Outcomes

Institutional Learning Outcomes

Service Area Outcomes

Administrative Area Outcomes

Program Learning Outcomes

Institutional Learning Outcomes

Academics