1.

If the partial order of a set has at most one minimal element, then to test whether it has a non-crossing Hasse diagram its time complexity __________(a) NP-complete(b) O(n^2)(c) O(n+2)(d) O(n^3)This question was addressed to me in an international level competition.This key question is from Graphs topic in chapter Graphs of Discrete Mathematics

Answer»

Right choice is (a) NP-complete

Easy explanation: If the PARTIAL order has at most ONE minimal element, or it has at most one MAXIMAL element, then to test whether a partial order with multiple sources and SINKS can be drawn as a crossing-free Hasse DIAGRAM or not it’s time complexity is NP-complete.



Discussion

No Comment Found

Related InterviewSolutions