1.

What is meant by the power set of a set?(a) subset of all sets(b) set of all subsets(c) set of particular subsets(d) an empty setThis question was addressed to me during an online interview.The doubt is from Checksum, Complexity Classes & NP Complete Problems topic in portion Checksum, Complexity Classes & NP Complete Problems of Data Structures & Algorithms II

Answer»

The correct ANSWER is (B) set of all subsets

Easiest explanation - Power set of a set is defined as the set of all subsets. Ex- if there is a set S={1,3} then power set of set S will be P={{},{1},{3}{1,3}}.



Discussion

No Comment Found

Related InterviewSolutions