Mc1651-Mathematical Foundations of Computer Science Unit-I Matrices Part-A
Mc1651-Mathematical Foundations of Computer Science Unit-I Matrices Part-A
UNIT-I
MATRICES
PART-A
0 1 2 1
3 1
1. Find the rank of 6 ,2 3 0 1 .
2
1 1 1 0
3 1 2
2. Find the value of “k” if the rank of the matrix 0 1 3 .
k 1 1
3. State the condition for a system of equations in “n” unknowns to have
(i) one solution (ii) many solution (iii) no solution.
4. Give an example of two equations in two unknowns that are
(i) consistent with one solution (ii) inconsistent
(iii) consistent with many solution.
5. Find the values of “a”, “b” , if the equations 2 x 3 y 5 and ax by 10
have many solutions.
6. For what value of “ ” the system x 2 y 0 and 2 x y 0 has (i) a unique
solution
(ii) more than one solution.
7. Test if the the equations x y z a, 2 x y 3z b, 5 x 2 y z c have unique
solution, where a, b, c are not all zero.
1 3
8. Use Cayley-Hamilton theorem to find A3,A-1 for A 2 .
4
1 2
9. Use Cayley-Hamilton theorem to find A 4 4 A 3 5 A 2 A 2 I for A 4 3 .
PART-B
1. Test for consistency of the following system of equations and hence solve it
2x y 5z w 5
(i) x y 3z 4w 1
2 x 6 y 3 z 18
(ii) 3 x 4 y 7 z 31
x1 2 x 2 x3 2
2. Find for what values of “ ” the following equations have non-trivial solution
x 2 y 3z x
3x y 2 z y
2x 3y z z
3. Find the eigen values and eigen vectors of
2 2 3
(i ) 1 1 1
1 3 1
2 0 1
(iv ) 0 3 0
1 0 2
4. Verify Cayley-Hamilton theorem for
1 3 7
(i ) 4 2 3 and hence find A-1
1 2 1
1 2 1
5. Given that A 0 1 1 , Express A 6 5 A 5 8 A 4 2 A 3 9 A 2 35 A 6 I
3 1 1
in terms of linear polynomial in A, using Cayley-Hamilton theorem
Ans : 4 A 42 I
6. Find the inverse for the following matrices without using CHT
1 0 2
i 2 2 4
0 0 2
UNIT – II
PART-A
1. What is meant by proposition and predicate?
2. Define Tautology and Contradiction.
3. Define Converse, Inverse, Contra positive..
4. Show that ( P Q) ( R Q) ( P R) Q.
5. Show that P ( P Q).
6. State the truth value of “ If tigers have wings then the earth travels round the sun”.
7. Give the converse and contra positive of the implication “If it is raining then I get
wet”.
8. Show that ~ (P Q) ( ~P ( ~P Q) ) (~P Q) ( use only laws).
9. Define DNF and CNF.
10. Prove (~P(~QR)) (Q R)(PR) R ( use only laws).
11. Define functionally complete set of connectives and give an example.
12. What are the rules of inferences?
13. Define conditional and biconditional
14. Negate the following
a. Ottawa is a small town.
b. It is not easy that city in Canada is clean.
15. Verify whether ( P ( P Q) ) Q is a tautology.
16. Show that ~r is a valid conclusion form the premises p ~q , r p , q.
17. Obtain CNF of ~ ( p ( q r) ) .
18. Find the PDNF of q ~ r ~s) (r s).
19. Consider the following
p : you take a course in D.M
q : you understand logic
r : you get first class A on the final exam.
(a) ( p ~q) ~r. (b) ( p q) r.
20. Prove that ( p ( p q) ) q.
21. Prove that p ( q r) ( p q) r.
PART - B
UNIT-IV
PART-A
1) Show that the truth values of the following formulas are independent of their
components
(a) P P Q Q
2) Verify whether the following statements are tautology or contradiction or
contigent
(a) P Q V 7Q 7 P
(b) 7Q 7 P
3) Prove the following by constructing the truth table
(a) P Q R P Q P R
(b) P Q P
(c) 7 P Q P 7Q
4) Verify the following without constructing the truth table
(a) P Q P 7P P Q
(b) P Q R Q P V R Q
(c) P Q Q PV Q
5) Show that
(a) V is not functionally complete
(b) 7 is not functionally complete
6) Find the dual of the following
(a) P Q 7 R P
(b) Q V P 7Q V 7 P 7Q
7) Find DNF for the following
(a) R V 7 P 7 Q P
8) Find CNF for the following
(a) P V 7 P Q V 7Q R
(b) Q V P 7Q V 7 P 7Q
9) Find the PDNF for the following
(a) P V 7 P 7Q R
(b) P V 7 P Q V 7Q R
10) Find the PCNF for the following
(a) Q P 7P Q
(b) 7P R Q P
11) Find the PDNF and PCNF for the following by constructing truth table
(a) Q P 7P Q
(b) 7Q R V 7Q 7 R P
UNIT-IV
PART-A
1. Define phrase-structure grammer
2. Define formal languages
3. Define a context-sensitive language
4. Define a context-sensitive grammer
5. Explain CNF
6. Explain GNF
7. Define ambiguous grammer
8. State pumping lemma
9. Define type-0 grammer
10. Show that the grammer with productions S aAb abSb a, A bS aAAb is
ambiguous and also draw the derivation trees
PART-B
1. Explain the classification of grammars?
2. Explain Chomsky hierarchy of languages?
3. Find the grammer such that L(G ) a n b n ; n 1
4. Find the grammer generating L(G ) a n b n c m ; n 1, m 0
5. Construct a grammer G for the language L(G ) a n bc m ; n, m 1
6. Construct the grammer for the language L(G ) a i b j ; i j 0
7. Construct a grammer generating all palindromes over {a,b}
8. Find the grammer generating L(G ) a n b n c n ; n 1
9. Define a context-sensitive language.Show that the set a n b n c n ; n 1 is a
context-sensitive language.
10. Reduce the following grammer to CNF
(a) S a b cSS (b) S abSb a aAb,
0, 1
2. Which of the following strings are recognized by the DFA in the following fig.
(a) 010 (b) 1101 (c) 1111110 (d) 010101010
1
1
0 1
0
0
0,1