Machine-translated by Google. Questions are authored in English.
Top

Discussion

A search algorithm takes ............... as an input and returns .............. as an output.

  • A.Input, output
  • B.Problem, solution
  • C.Solution, problem
  • D.Parameters, sequence of actions

Answer: B

A search algorithm takes a problem as input and returns a solution.

The problem is defined by an initial state, the available actions, the transition model, a goal test and path costs. The algorithm searches the state space and returns a solution, usually a sequence of actions leading from the initial state to a goal.

'Input, output' is too vague, and 'solution, problem' reverses the relationship. A sequence of actions is what the solution typically contains, but parameters alone are not what the algorithm receives.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.