Which of the following is not a divide and conquer method
Heap Sort
A divide-and-conquer algorithm splits the problem into smaller subproblems of the same kind, solves them recursively and combines their results.
Binary search halves the search interval at each step and recurses on one half, \(T(n)=T(n/2)+O(1)\); it is the standard example of divide and conquer with a single subproblem.
Merge sort divides the array into two halves, sorts each recursively and merges them, \(T(n)=2T(n/2)+O(n)\).
Quick sort partitions the array around a pivot and recursively sorts the two parts.
Heap sort builds a binary max-heap and then repeatedly removes the maximum and restores the heap property; it relies on a data structure, not on splitting the input into independent subproblems, so it is not a divide-and-conquer method.
Heap Sort option is correct.
For matrix multiplication, if we use divide and conquer algorithm, then ______
A. the running time is T(n)=Θ(n3)
B. the running time is T(n)= Θ(n2 log n)
C. The recurrence can be defined as T(n)=8T(n/2)+Θ(n2)
D. the recurrence relation is T(n)= 8T(2n)+Θ(n2log n)
E. Masters theorem, one of the cases is applicable
Choose the most appropriate answer from the options given below:
For matrix multiplication, if we use divide and conquer algorithm, then ______
A. the running time is T(n)=Θ(n3)
B. the running time is T(n)= Θ(n2 log n)
C. The recurrence can be defined as T(n)=8T(n/2)+Θ(n2)
D. the recurrence relation is T(n)= 8T(2n)+Θ(n2log n)
E. Masters theorem, one of the cases is applicable
Choose the most appropriate answer from the options given below: