594 views
0 votes
0 votes

Please explain how to solve this??

What is the upper bound of computing time of m coloring decison problem for n nodes?

a. O( n m)

b. O( m n)

c. O( n m n )

d. O( m n m )

e. O( n m m n )

1 Answer

1 votes
1 votes
Generally the solution of m-coloring on n vertex graph can be represented as an array c[1..n], where c[i] represents color of vertex i. A brute-force method will generate $m^n$  assignments. Verifying these $m^n$ options on n vertices in worst case will take n$m^n$ time. So, $O(nm^n) $ will be the upper bound.

Related questions

1 votes
1 votes
2 answers
1
sh!va asked Oct 29, 2016
990 views
Find the upper bound of given function:f(n) =na) O(1)b) O( n)c) O(n 2)d) Both b and c
1 votes
1 votes
1 answer
3