Skip to content

Algorithms

Select the correct name for: an algorithm that uses a degree of randomness as part of its logic to achieve good average-case performance.

Difficulty: Hard

About this MCQ

This Hard Algorithms MCQ checks one syllabus fact.

The question is: “Select the correct name for: an algorithm that uses a degree of randomness as part of its logic to achieve good average-case performance.”

The accepted answer is D. Randomized algorithm. “Select the correct name for: an algorithm that uses a degree of randomness as part of its logic to achieve good average-case performance.” is answered by Randomized algorithm (option D). Option A (“Sorting stability”) does not match the stem; it is a near-miss used to catch incomplete recall of Randomized algorithm. Option B (“Brute-force algorithm”) does not match the stem; it is a near-miss used to catch incomplete recall of Randomized algorithm. Remaining alternatives (Kruskal's algorithm) fall outside the same rule and should be eliminated once Randomized algorithm is identified. Algorithms questions of this type reward precise definitions rather than approximate associations. Algorithms recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.

Correct answer

D. Randomized algorithm

Explanation

“Select the correct name for: an algorithm that uses a degree of randomness as part of its logic to achieve good average-case performance.” is answered by Randomized algorithm (option D). Option A (“Sorting stability”) does not match the stem; it is a near-miss used to catch incomplete recall of Randomized algorithm. Option B (“Brute-force algorithm”) does not match the stem; it is a near-miss used to catch incomplete recall of Randomized algorithm. Remaining alternatives (Kruskal's algorithm) fall outside the same rule and should be eliminated once Randomized algorithm is identified. Algorithms questions of this type reward precise definitions rather than approximate associations. Algorithms recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.

Source: Algorithms Official Reference Guide

Tags: computer science, algorithms, problem solving, complexity analysis

Submitted by: MCQsHub Editorial

Related MCQs

More Algorithms MCQs