πŸ“Š Design and Analysis of Algorithms
Q. Recursive program to raise an integer x to power y uses which of the following algorithm?
  • (A) dynamic programming
  • (B) backtracking
  • (C) divide and conquer
  • (D) greedy algorithm
πŸ’¬ Discuss
βœ… Correct Answer: (C) divide and conquer

Explanation: the recursive approach uses divide and conquer algorithm as we break the problem into smaller parts and then solve the smaller parts and finally combine their results to get the overall solution.


Explanation by: Mr. Dubey
the recursive approach uses divide and conquer algorithm as we break the problem into smaller parts and then solve the smaller parts and finally combine their results to get the overall solution.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
881
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate