Docsity

Analysis - Data Structures and Advanced Programming - Lecture Slides, Slides of Data Structures and Algorithms

Toggle sidebar
bg1
Lecture #44: Course Summary
•Extra points for filling out today’s survey
and
for filling out on-line
survey (see announcements on our home page for the link).
•Course Review: Saturday, 13 May 2006, 8–10PM in 306 Soda. Come
equipped with questions. See home page for TA office hours.
•Study suggestion: The auto-graders for the homeworks are still
running. Do them for real!
•Tournament: Turn in your tournament version (with instructions)
using submit tournament. You can specify extra options for putting
your program in tournament mode, if desired.
•Readers and lab assistants needed. Consider volunteering to be
a reader or lab assistant for CS 3, CS 4, CS 61A, or CS 61B next
semester. Reader applications will be available at the beginning of
the semester (in fact, before). Readers are paid; lab assistants can
get unit credit.
•Programming Contest: Visit my web page for information about the
annual programming contest, which we hold each fall. There are
large collections of programming problems you can try your hand on.
Last modified: Mon May 8 14:31:41 2006 CS61B: Lecture #44 1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Analysis - Data Structures and Advanced Programming - Lecture Slides and more Slides Data Structures and Algorithms in PDF only on Docsity!

Lecture #44: Course Summary

  • Extra points for filling out today’s survey and for filling out on-line survey (see announcements on our home page for the link).
  • Course Review: Saturday, 13 May 2006, 8–10PM in 306 Soda. Come equipped with questions. See home page for TA office hours.
  • Study suggestion: The auto-graders for the homeworks are still running. Do them for real!
  • Tournament: Turn in your tournament version (with instructions)

using submit tournament. You can specify extra options for putting

your program in tournament mode, if desired.

  • Readers and lab assistants needed. Consider volunteering to be a reader or lab assistant for CS 3, CS 4, CS 61A, or CS 61B next semester. Reader applications will be available at the beginning of the semester (in fact, before). Readers are paid; lab assistants can get unit credit.
  • Programming Contest: Visit my web page for information about the annual programming contest, which we hold each fall. There are large collections of programming problems you can try your hand on.

Course Topic Summary

  • Programming language: Java
  • Program Analysis
  • Categories of data structure: Java library structure
  • Sequences
  • Trees
  • Searching
  • Sorting
  • Pseudo-random numbers
  • Threads
  • Graphs
  • Pragmatic implementation topics

Analysis

  • Asymptotic analysis
  • O(·), o(·), Ω(·), Θ(·) notations
  • Worst case, average case.
  • Amortized time

Major Categories of Data Structure

  • Collection interface and its subtypes
  • Map interface and its subtypes
  • Generic skeleton implementations of collections, lists, maps (AbstractList, etc.)
  • Complete concrete collection and map classes in Java library

Searching

  • Search trees, range searching
  • Multidimensional searches: quad trees.
  • Hashing
  • Priority queues and heaps
  • Balanced trees
    • Rebalancing by rotation (red-black trees)
    • Balance by construction (B-trees)
    • Probabilistic balance (skip lists)
    • Tries
  • Search times, trade-offs

Sorting

  • Uses of sorting
  • Insertion sort
  • Selection sorting
  • Merge sort
  • Heap sort
  • Quicksort and selection
  • Distribution sort
  • Radix sort
  • Complexity of various algorithms, when to use them?

Graph structures

  • Definition
  • Uses: things represented by graphs
  • Graph traversal: the generic traversal template
  • Depth-first traversal, breadth-first traversal
  • Topological sort
  • Shortest paths
  • Minimal spanning trees, union-find structures
  • Memory management as a graph problem.

Debugging

  • What debuggers can do
  • How to use to pin down bugs
  • Details of some debugger (Eclipse, gjdb, various Windows/Sun prod- ucts).
  • Unit testing: what it means, how to use it.
  • JUnit mechanics.