Recent questions tagged data-structures

3 votes
1 answer
1231
Given the input sequence {11,33,43,79,19} and hash table of size 10 with the hash function h(k)=k mod 10. If hash tables uses quadratic probing,the number of collisions o...
0 votes
1 answer
1232
How many binary search trees can be formed with n distinct and designated(labeled) nodes...??
5 votes
4 answers
1233
What is the worst case time complexity to construct an AVL tree from an array which satisfies the min heap property ?a) O(n log n)b) O(n2)c) O(n2 log n)d) O(n)
4 votes
2 answers
1238
Hash a list of $3$ keys into hash table with $20$ locations. What will be the probability of the event $A$ in which hashing the three keys causes a collision?$0.123$$0.14...
0 votes
1 answer
1239
preorder traversal of a tree resemble to the DFS traversal of graph?
5 votes
2 answers
1243
0 votes
0 answers
1244
Consider a stack is implemented using an array. What is worst case time complexity of push operation?A) O(n)B) O(log n)C) O(n log n)D) O(1)
0 votes
0 answers
1245
what will be differnece if we use c)option and d) option explain ??
6 votes
2 answers
1246
Time complexity to insert a node in the end of circular linked list, if the pointer to the 1st node is given and number of nodes in list is NisA)O(1)B)O(log N)C)O(N)D)O(N...
2 votes
1 answer
1247
0 votes
1 answer
1248
INSERTION-SORT (A, n) ⊳ A[1 . . n]for (j ← 2 to len(A) ){key ← A[ j];i ← j – 1 ; while (i 0 and A[i] key) { A[...
1 votes
0 answers
1250
4 votes
2 answers
1251
3 votes
2 answers
1252
4 votes
1 answer
1256
What are we suppose to take?LR - 2 rotations.RL- 2 rotations.ORLR - 1 rotation.RL- 1 rotation.Kindly Solve and Verify the Total Numbers of Rotations Performed.
1 votes
2 answers
1258
CAN SOMEONE PLZ EXPLAIN TO ME DELETION IN B+ TREES?? I AM NOT ABLE TO UNDERSTAND CLEARLY.
1 votes
1 answer
1260