Course Outline - PowerPoint PPT Presentation

About This Presentation
Title:

Course Outline

Description:

Title: CS 130 A: Data Structures and Algorithms Author: Jianwen Su Last modified by: Subhash Suri Created Date: 9/23/1998 6:24:20 PM Document presentation format – PowerPoint PPT presentation

Number of Views:36
Avg rating:3.0/5.0
Slides: 6
Provided by: Jian165
Category:
Tags: binary | course | outline | tree

less

Transcript and Presenter's Notes

Title: Course Outline


1
Course Outline
  • Introduction and Algorithm Analysis (Ch. 2)
  • Hash Tables dictionary data structure (Ch. 5)
  • Heaps priority queue data structures (Ch. 6)
  • Balanced Search Trees general search structures
    (Ch. 4.1-4.5)
  • Union-Find data structure (Ch. 8.18.5)
  • Graphs Representations and basic algorithms
  • Topological Sort (Ch. 9.1-9.2)
  • Minimum spanning trees (Ch. 9.5)
  • Shortest-path algorithms (Ch. 9.3.2)
  • B-Trees External-Memory data structures (Ch.
    4.7)
  • kD-Trees Multi-Dimensional data structures (Ch.
    12.6)
  • Misc. Streaming data, randomization

2
Minimum spanning tree
weight of tree 16
  • Connected, undirected graph with weights on
    edges
  • Spanning tree connected, hits all nodes, has no
    cycles
  • MST spanning tree of minimum total edge weight

3
Cut theorem
  • For any cut in the graph, the
    lowest-weight edge crossing the cut is in a MST.
  • (If ties, each lowest-weight edge is in some
    MST)
  • Greed works.

4
Prims algorithm
  • T one vertex, no edges
  • for i 1 to n-1
  • add the cheapest edge joining T to another
    vertex
  • very similar to Dijkstras shortest-path
    algorithm
  • implementation priority queue (binary heap)
    of edges from known to unknown vertices
  • time O( E log V )

5
Kruskals algorithm
  • for i 1 to n-1
  • add the cheapest edge that doesnt create a
    cycle
  • implementation priority queue (binary heap) of
    all edges
  • disjoint set union to detect cycles
  • time O( E log V )
Write a Comment
User Comments (0)
About PowerShow.com