Q. Which of the following can be referred to as applications of Randomized algorithm?

  • (A) quicksort
  • (B) min cut
  • (C) verifying matrix multiplication
  • (D) all of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of the mentioned
Explanation: freivalds algorithm is a probabalistic randomized algorithm we use to verify matrix multiplication. on the other hand, randomness can be useful in quicksort. if the algorithm selects pivot element uniformaly at random, it has a probably high probabilty of finishing the work in o(nlogn) time regardless of the input.

Explanation by: Mr. Dubey
freivalds algorithm is a probabalistic randomized algorithm we use to verify matrix multiplication. on the other hand, randomness can be useful in quicksort. if the algorithm selects pivot element uniformaly at random, it has a probably high probabilty of finishing the work in o(nlogn) time regardless of the input.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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