Dynamic programming has the potential to transform exponential-time...
An algorithm that takes constant time is represented by
Quicksort has a worst-case running time of θ(n^2).
F(n) = Ω(g(n)) is like saying f(n) ≥ g(n)
Red-black trees are an attempt to minimize the time of dynamic set...
A matrix is a good choice for representing a dense graph.
For two functions f(n) and g(n), if f(n) = w(g(n)), we know that f(n)...
Both matrix and lists can be used to represent weighted graphs.
The most precise form of asymptotic notation is
The min-heap property states that for every node i other than the...
One good reason for using a hash table would be to reduce storage...
Greedy algorithms make _______________optimal choices leading to...
N = O(n^2)
For two algorithms A and B, if O(A) = n^100 and O(B) = 10^n, then...
A minimum spanning tree for a graph with N vertices will have N-2...
N^2 = o(n^2)
The recurrence
...
We do not have to make any key comparisons to find the min or max...
In a red-black tree, a black node must have only red children.
All functions can be compared asymptotically.
An array constructed with the values [23, 17, 14, 6, 13, 10, 1, 5, 7,...
The recurrence equation T(n) = T(n-1) + θ(n) represents the
There is a significant difference in the running time f(n) = n...
If we are using the division method for our hashing function, a table...
Which of the following is NOT a property of a minimum spanning tree?
What is the name of the technique that stores computed values for...
The master method can be used to solve all recurrence equations that...
For a node A at index i in a heap, the right child of A can be...
Given the algorithm for Bubblesort below, what is an accurate...
Printing every node in a binary tree takes θ(lg n) time.
A problem that generates completely new subproblems at each step is a...
Select the correct asymptotic notation for the function f(n) n^3 +...
In hashing with chaining, the load factor α represents
Bottom-up dynamic programming works by
The reflexive property hold for o (little-oh) and w.
What is the smallest value of n such that an algorithm whose running...
What distinguishing feature should cause us to choose dynamic...
Primary clustering is a problem in what hashing technique?
In Kruskal's algrorithm for building a minimum spanning tree, we...
F(n) = o(g(n)) means that f(n) is asymptotically smaller than g(n).
A topological sort for a directed acyclic graph (DAG) can be created...
Huffman encoding uses a dynamic programming strategy to compress data.
If the following functions were sorted in increasing order of...
In analyzing a divide-and-conquer algorithm, any subproblem that is...
The worst-case search time for hashing with chaining is
The basic restructuring operation for red-black trees is
The general comparison used to determine if a graph is sparse or dense...
Open addressing is usually preferred over chaining for solving hash...
Which one of the following is a true for a red-black tree?
In which approach do we randomly select a hash function to avoid bad...
Which of the following is true regarding Prim's algorithm for...
Which of the following is true for optimal binary search trees?
Before running MAX-HEAPIFY on node i of a heap, what must be true?