| title |
|---|
TODO |
TODO ??? (MUST CONSULT SLIDES FOR MISSING CONTENT)
We found something about the optimal binary search tree.
TODO Copy OptimalBST Pseudocode from slides.
Time Efficiency:
TODO What about monotonicity?
Space Efficiency: TODO
Transitive Closure: Representation of a directed graph with 1 at
Nontrivial: Basically, if there is a path from
$i \to j$ (doesn't need to be direct, can route through other nodes).
To do this algorithmically, we must do dynamic programming (grow the answer little-by-little).
Main Idea: A path exists between
- There's an edge from i to j; or
- There's a path from
$i$ to$j$ going through intermediate verticies from from set ??? TODO - There's a path TODO
TODO ???
TODO ???
TODO Matrix generation
(We use the adjacency matrix to do Washall's algorithm. It's something about intersections.)
TODO Copy pseudocode from the slides.
Problem: Find shortest path between each pair of verticies in a weighted digraph.
This ends up actually being pretty similar to Warshalls (using increasing subsets of vertices allowed as intermediate)
- Difference is we also want to find the minimum (???)