In: Computer Science
Related with the below statements, write the missing words:
|
Related with the below statements, write the missing words:
|
Solution:
(a)
The answer will be "first and last".
Explanation:
=>In the doubly linked list every node contains three things that are data value, previous pointer and next pointer.
=>Doubly linked list contains a link element that is the first and last element.
(b)
The answer will be "(nlog(n))"
Explanation:
=>The worst case time complexity of heap sort = O(nlog(n))
=>The best case time complexity of heap sort = (nlog(n))
=>The average case time complexity of heap sort = (nlog(n))
(c)
The answer will be "Devide and Conquer"
Explanation:
=>Merge sort, quick sort and binary search devide the array or partition the array for sorting and searching in case of binary search.
=>Devide and conquer algorithm devides the problem into subproblem and then finding the solution of small problems then merging(conquering) the solution of small problems to find the overall solution.
(d)
The answer will be "PUSH"
Explanation:
=>In stack insertion is called PUSH.
=>In stack deletion is called POP.
(e)
The answer will be "Constant time"
Explanation:
=>O(1) means the problem can be solved in finite number of steps hence O(1) means constant time.
(f)
The answer will be "Collision resolution techniques/linear probing"
Explanation:
=>Finding the location to insert in the hash table by resolving collisions. This techique is called collision resolution techniques.
(g)
The answer will be "LIFO/FILO"
Explanation:
=>Stack is last in first out(LIFO) or first in last out(FILO) data structure.
(h)
The answer will be "O(logn)"
Explanation:
=>Worst case time complexity of binary search = O(logn)
=>Best case time complexity of binary search = (1)
=>Average case time complexity of binary search = (logn)
I have explained each and every part with the help of statements attached to it.