UGC NET Paper 2 (Computer Science)Hard
Which of the following NP-complete problems is only weakly NP-complete, i.e. solvable in pseudo-polynomial time?
- A. Subset Sum
- B. Vertex Cover
- C. 3-Colouring
- D. Clique
Correct answer: A. Subset Sum
Subset Sum has a DP solution in O(nS) time, polynomial in the numeric value S but exponential in its bit length; Vertex Cover, 3-Colouring and Clique have no known pseudo-polynomial algorithm.
Practise more UGC NET Computer Science and Applications questionsUGC NET Computer Science and Applications: notes and key points
More UGC NET Computer Science and Applications questions
- The maximum possible height of a red-black tree with n internal nodes is:
- In a B-tree with minimum degree t (t >= 2), every node other than the root must contain at least:
- The amortized time complexity of an operation (search, insert or delete) on a splay tree with n nodes is:
- The minimum number of states in a DFA over {0, 1} accepting exactly the strings that end with 00 is:
- Which statement about pushdown automata acceptance modes is correct?
- Given a grammar in Chomsky Normal Form, the CYK algorithm decides whether a string of length n belongs to the language in time: