Tuesday, 16 June 2015

Q39,Paper 2,j14. An algorithm is made up of 2 modules M1and M2. If time complexity of modules M1and M2 are h(n) and g(n) respectively, the time complexity of the algorithm is



(A) min (h(n), g(n))
(B) max (h(n), g(n))
(C) h(n) + g(n)
(D) h(n) *g(n)
Answer B

No comments:

Post a Comment

Note: only a member of this blog may post a comment.