Shared Flashcard Set

Details

Design and Analysis of Algorithms Exam 2 - Efficiency
Efficiency classes of things
11
Computer Science
Undergraduate 2
04/16/2017

Additional Computer Science Flashcards

 


 

Cards

Term
Finding largest key in a binary search tree: worst case
Definition
Theta(n)
Term
Finding largest key in a binary search tree: average case
Definition
Theta(logn)
Term
Deleting key from binary search tree: worst case
Definition
Theta(n)
Term
Deleting key from binary search tree:
Definition
Theta(logn)
Term
Average case: Unsuccessful binary search
Definition
log2(n+1)
Term
Worst case: Unsuccessful binary search
Definition
(ceiling)log2(n+1)(/ceiling)
Term
Average case: Successful binary search
Definition
log2n
Term
Time efficiency of DFS-based algorithm for topological sorting for an adjacency matrix representation
Definition
O(|V|^2)
Term
Time efficiency of DFS-based algorithm for topological sorting for an adjacency linked list representation
Definition
O(|V| + |E|)
Term
Looking for a source in a digraph represented by an adjacency matrix (a column containing only zeros)
Definition
O(|V|^2)
Term
Looking for a source in a digraph represented by adjacency lists (a vertex appearing in none of the dag's adjacency linked lists)
Definition
O(|V| + |E|)
Supporting users have an ad free experience!