Lecture 16, 18, 20

 0    23 フィッシュ    kapi2304
mp3をダウンロードする 印刷 遊びます 自分をチェック
 
質問 język polski 答え język polski
Quick sort uses which of the following algorithm to implement sorting?
学び始める
divide and conquer
What is a randomized quick sort?
学び始める
quick sort with random choice of pivot
What is the auxiliary space complexity of randomized quick sort?
学び始める
O(log n)
What is the average time complexity of randomized quick sort?
学び始める
O(n log n)
Randomized quick sort is an in place sort.
学び始める
True
Randomized quick sort is a stable sort.
学び始める
False
What is the best case time complexity randomized quick sort?
学び始める
O(nlog n)
Which of the following is incorrect about randomized quicksort?
学び始める
it cannot have a time complexity of O(n^2) in any case
What is the worst case time complexity of randomized quicksort?
学び始める
O(n^2)
Using division method, in a given hash table of size 157, the key of value 172 be placed at position ____
学び始める
15
Collisions can be reduced by choosing a hash function randomly in a way that is independent of the keys that are actually to be stored
学び始める
True
What is the average retrieval time when n keys hash to the same slot?
学び始める
Theta(n)
What is a hash table?
学び始める
A data structure used to store key-value pairs
How does a hash table work?
学び始める
It uses a hash function to map keys to array indices
What is the time complexity of inserting an element in a hash table?
学び始める
O(1)
What is the worst-case time complexity of searching for an element in a hash table?
学び始める
O(n)
What happens if two keys hash to the same index in a hash table?
学び始める
A collision occurs
Depth First Search is equivalent to which of the traversal in the Binary Trees?
学び始める
Pre-order Traversal
Time Complexity of DFS is? (V – number of vertices, E – number of edges)
学び始める
O(V + E)
The Data structure used in standard implementation of Breadth First Search is?
学び始める
Queue
The Depth First Search traversal of a graph will result into?
学び始める
Tree
When the Depth First Search of a graph is unique?
学び始める
When the graph is a Linked List
In Depth First Search, how many times a node is visited?
学び始める
Equivalent to number of indegree of the node

コメントを投稿するにはログインする必要があります。