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

Discussion

A problem has 20 variables each with 5 values. How large is the assignment space?

  • A.20 to the 5
  • B.20 times 5
  • C.5 factorial
  • D.5 to the 20

Answer: D

Each variable independently takes any of its values, so the count is:

\[ 5^{20} \approx 9.5 \times 10^{13} \]

which is 5 to the 20. That figure is why enumeration is hopeless and why propagation matters so much. Computing the size of the space before choosing a method takes a moment and immediately rules out the naive approaches, which is exactly the estimate that should precede any implementation.

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

Post your comment

Please log in or register to post a comment.