Announcements
Exam today at 4-6 PM.
CS61B
Review Questions
Applications of pre-order traversal of a tree:
Disjoint sets / dynamic connectivity:
Review Questions
Disjoint sets / dynamic connectivity, performance:
Simple way of finding amortized runtime.
Review Questions
Simple way of finding amortized runtime.
Review Questions
Simple way of finding amortized runtime.
Review Questions
Self-Balancing trees, what types have we seen?
One thing NOT in scope of midterm is how to insert/rotate/etc. Natively with LLRBs.
Review Questions
Height of an LLRB, how is it defined?
Review Questions
Could you have:
@
#
$
%
&
^
# @
$
$
& %
Review Questions
Bits in general, what should you know:
What you don’t need to know:
�
Review Questions
When doing DFS on a graph, if we don’t get to all the components, do we restart?
If a worksheet or problem ever just says “run DFS”, it is ambiguous. If somebody wants to assign a score to you, they were assuming some specific context not given on the page.
Review Questions
How do you identify if a weighted quick union tree is valid?
Review Questions
How would we convert a BST into a heap.
Review Questions
How would we convert a BST into a heap in constant space.
Review Questions
WQU or a Quick Union and you’re implementing it with an array under the hood, how do you store multiple trees?