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

Discussion

The upper bound of computing time of m coloring decision problem is

  • A.\(O(nm)\)
  • B.\(O(n^{m})\)
  • C.\(O(nm^{n})\)
  • D.\(O(n^{m}m^{n})\)

Answer: C

For the m-colouring decision problem on n vertices, a backtracking algorithm tries the m colours for each vertex, so there are up to \(m^{n}\) assignments in the state space, and each one is checked in time proportional to n. So the upper bound of the computing time is \(O(nm^{n})\), option (C). The bounds \(O(nm)\) and \(O(n^{m})\) are polynomial and too small for this exponential search, and the last one is too large.

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

Post your comment

Please log in or register to post a comment.