DSCS QP-Comprehesive
DSCS QP-Comprehesive
1. Prove by induction that the sum of the squares of any six consecutive non-negative
integers always leaves a remainder of seven when divided by twelve.
[10]
2. Given arbitrary sets A, B, C, and Y prove the following statement:
[10]
[A B Y C B ] [ ((C – A) B) - ~Y = Y – (A B) ]
(Note: ~ denotes set complement, thus ~Y is the complement of the set Y.)
3. By using pigeonhole principle, show that if any five numbers from 1 to 8 are chosen,
then two of them will add upto 9.
[5]
4. Determine whether the given pair of graphs is isomorphic. Exhibit an isomorphism or
provide a rigorous argument that none exists.
[5]
5. Solve the recurrence relation: b n=−3 bn −1−2b n−2 , b 1=−2 ,b 2=4. [3]
6. Let C(x) be the statement “x has a cat”, let D(x) be the statement “x has a dog” and let
F(x) be the statement “x has a ferret”. Express each of these statements in terms of C(x),
Page 1 of 3
Question Paper Pattern is NOT fixed. The paper is for reference only
D(x), F(x), quantifiers and logical connectives. Let the universe of discourse consists of all
students in your class.
[5]
b:) Let m be a positive integer with m>1. Show that the relation R={(a,b)|a ≡ b(mod m)}
is an equivalence relation.
[3]
c:) How many divisions are required to find gcd(12345,54321) using the Euclidean
algorithm?
[3]
8. Use Kruskal’s algorithm to find a minimum spanning tree for the following weighted
graph. [3]
9. In the original Towers of Hanoi problem, add the constraint that no direct moves
between the From peg to the To peg are allowed.
[10]
a. Prove by induction, that following this new rule, will take you through every
legal configuration of the game.
b. Write a recurrence equation for the smallest number of moves it takes to
solve the problem under the new constraint.
Page 2 of 3
Question Paper Pattern is NOT fixed. The paper is for reference only
XXXXXXXXXX
Page 3 of 3