soru |
cevap |
Quick sort uses which of the following algorithm to implement sorting? öğrenmeye başla
|
|
|
|
|
What is a randomized quick sort? öğrenmeye başla
|
|
quick sort with random choice of pivot
|
|
|
What is the auxiliary space complexity of randomized quick sort? öğrenmeye başla
|
|
|
|
|
What is the average time complexity of randomized quick sort? öğrenmeye başla
|
|
|
|
|
Randomized quick sort is an in place sort. öğrenmeye başla
|
|
|
|
|
Randomized quick sort is a stable sort. öğrenmeye başla
|
|
|
|
|
What is the best case time complexity randomized quick sort? öğrenmeye başla
|
|
|
|
|
Which of the following is incorrect about randomized quicksort? öğrenmeye başla
|
|
it cannot have a time complexity of O(n^2) in any case
|
|
|
What is the worst case time complexity of randomized quicksort? öğrenmeye başla
|
|
|
|
|
Using division method, in a given hash table of size 157, the key of value 172 be placed at position ____ öğrenmeye başla
|
|
|
|
|
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 öğrenmeye başla
|
|
|
|
|
What is the average retrieval time when n keys hash to the same slot? öğrenmeye başla
|
|
|
|
|
öğrenmeye başla
|
|
A data structure used to store key-value pairs
|
|
|
How does a hash table work? öğrenmeye başla
|
|
It uses a hash function to map keys to array indices
|
|
|
What is the time complexity of inserting an element in a hash table? öğrenmeye başla
|
|
|
|
|
What is the worst-case time complexity of searching for an element in a hash table? öğrenmeye başla
|
|
|
|
|
What happens if two keys hash to the same index in a hash table? öğrenmeye başla
|
|
|
|
|
Depth First Search is equivalent to which of the traversal in the Binary Trees? öğrenmeye başla
|
|
|
|
|
Time Complexity of DFS is? (V – number of vertices, E – number of edges) öğrenmeye başla
|
|
|
|
|
The Data structure used in standard implementation of Breadth First Search is? öğrenmeye başla
|
|
|
|
|
The Depth First Search traversal of a graph will result into? öğrenmeye başla
|
|
|
|
|
When the Depth First Search of a graph is unique? öğrenmeye başla
|
|
When the graph is a Linked List
|
|
|
In Depth First Search, how many times a node is visited? öğrenmeye başla
|
|
Equivalent to number of indegree of the node
|
|
|