Which of the following algorithms is used for search/optimization in AI?
- (A)
Greedy Algorithm
- (B)
Recursive Algorithm
- (C)
Hill Climbing Algorithm
- (D)
Hot Potato Algorithm
Which of the following algorithms is used for search/optimization in AI?
Greedy Algorithm
Recursive Algorithm
Hill Climbing Algorithm
Hot Potato Algorithm
ANSWER
(c) Hill Climbing Algorithm. Option (a), Greedy Algorithm, also fits the wording, since greedy best-first search and greedy local choice are used in AI search and optimization.
Official answer: A or CSource: ISRO's final answer key of 15 May 2026
The question asks which algorithm is used for search or optimization in AI. Read literally, an option qualifies if it is a strategy that AI systems use to search a space of states or to optimize an objective.
(c) Hill Climbing starts from a state and repeatedly moves to the neighbouring state with the best objective value, stopping at a peak. It is the textbook local search and optimization method in AI, so it qualifies.
(a) Greedy Algorithm also qualifies. A greedy strategy commits at each step to the choice that looks best by a local criterion. AI search uses it directly: greedy best-first search expands the node with the lowest heuristic value, and hill climbing is itself a greedy local search. Greedy methods are also used as optimization heuristics. The question only asks for a method used for search/optimization, so (a) satisfies it as printed.
(b) Recursive Algorithm describes how a procedure is written (it calls itself). It is an implementation technique, not a search or optimization strategy, so it does not qualify.
(d) Hot Potato Algorithm is a routing technique in networks: a router forwards a packet out immediately instead of queueing it. It has nothing to do with AI search, so it does not qualify.
Both (a) and (c) are valid readings of the question. The most characteristic AI answer is (c) Hill Climbing Algorithm.
KEY IDEA
Hill climbing is the standard local search and optimization method in AI: move to the best neighbouring state until no neighbour is better. It is a greedy local strategy, so a bare "greedy algorithm" can also be read as a search/optimization approach.
WATCH OUT FOR
Rejecting the greedy option as a general design paradigm and treating only the named AI algorithm as valid, or picking recursion because recursive procedures appear inside many search routines. Recursion is only a way of coding; it is not a search strategy.
From the ISRO CS 2025 paper. Every question of this paper · The full paper (PDF, ISRO) · All 1 ISRO Search question, with notes