1.

Which of the following statement is incorrect with respect to generalizing the solution using the inclusion-exclusion principle?(a) including cardinalities of sets(b) excluding cardinalities of pairwise intersections(c) excluding cardinalities of triple-wise intersections(d) excluding cardinalities of quadraple-wise intersectionsThe question was asked in an internship interview.This interesting question is from Number Theory in chapter Number Theory of Data Structures & Algorithms II

Answer»

The correct answer is (c) EXCLUDING cardinalities of triple-wise intersections

To EXPLAIN: According to inclusion-exclusion principle, an intersection is included if the intersecting ELEMENTS are odd and EXCLUDED, if the intersecting elements are even. HENCE triple-wise intersections should be included.



Discussion

No Comment Found

Related InterviewSolutions