07a3bs04 mathematical foundations of computer science

9
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications USA-UK-Australia-Germany-France-NewZealand Universities List Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information www.andhracolleges.c om The Complete Information About Colleges in Andhra Pradesh www.andhracolleges.com Code No: 07A3BS04 Set No. 1 II B.Tech I Semester Regular Exa minations, November 2008 MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE ( Common to Computer Science & Engineering, Information Technology and Computer Science & Systems Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks 1. (a) Prove that the propositi on: (P Q) (P Q) is a Contingency. (b) Obtain the principal disjunctive normal form of the propositional formula: ( P R) (Q P). [8+8] 2. Write the quan tiers of the following statemen ts, where predicate symbols denotes, F(x): x is fruit, V(x): x is vegetable and S(x, y): x is sweeter than y. (a) Some vegetable is sweeter than all fruits (b) Ever y fruit is sweeter than all vegetab les (c) Ever y fruit is sweeter than some vegetab les (d) Only fruits are sweeter than vegetables. [16] 3. (a) What i s a Pos et? Draw the Hasse dia grams of all the lattice s with 5 el emen ts. (b) Let A = {1, 2, 3}, B = {a, b, c} and C = {x, y, z}. The relation R from A to B is {(1, b), (2, a), (2, c)} and the relation S from B to C is {(a, y), (b, x), (c, y), (c, z)}. Find the composition relation, R?S. [8+8] 4. (a) Explai n, in detai l, the alge braic syste ms: Endomorphism and Automorphism with suitable examples. (b) Prove that the set Z of all integers with the binary operation a * b = a + b + 1, Z is an abelian group. [8+8] 5. (a) How many anagr ams (ar rangements of let ters ) are ther e of {7.a, 5.c, 1.d, 5.e, 1.g, 1.h, 7.i, 3.m, 9.n, 4.o, 5.t}? (b) How many arrangements are there of 8.a, 6.b, 7.c in which each ‘a’ is on at least one side of another ‘a’.? [8+8] 6. (a) Dene rec urrence relation? sho w tha t the s equence {a n } is a solution of re- currence relation a n = -3 a n1 + 4 a n2 if a n = 1. (b) What is soluti on of the recurrence relat ion a n = a n1 + 2 a n2 with a 0 = 2 and a 1 =7? [8+8] 7. (a) Prove tha t a non -dir ect ed graph G is con nected if and only if G contai ns a spanning tree. 1 of 2

Upload: andhracolleges

Post on 30-May-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 07a3bs04 Mathematical Foundations of Computer Science

8/9/2019 07a3bs04 Mathematical Foundations of Computer Science

http://slidepdf.com/reader/full/07a3bs04-mathematical-foundations-of-computer-science 1/8

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications

USA-UK-Australia-Germany-France-NewZealand Universities List

Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information

www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

www.andhracolleges.com

Code No: 07A3BS04 Set No. 1

II B.Tech I Semester Regular Examinations, November 2008MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE

( Common to Computer Science & Engineering, Information Technologyand Computer Science & Systems Engineering)

Time: 3 hours Max Marks: 80Answer any FIVE Questions

All Questions carry equal marks⋆ ⋆ ⋆ ⋆ ⋆

1. (a) Prove that the proposition: (P → Q) → (P ∧ Q) is a Contingency.

(b) Obtain the principal disjunctive normal form of the propositional formula:

( ∼ P → R) ∧ (Q ↔ P). [8+8]

2. Write the quantifiers of the following statements, where predicate symbols denotes,F(x): x is fruit, V(x): x is vegetable and S(x, y): x is sweeter than y.

(a) Some vegetable is sweeter than all fruits

(b) Every fruit is sweeter than all vegetables

(c) Every fruit is sweeter than some vegetables

(d) Only fruits are sweeter than vegetables. [16]

3. (a) What is a Poset? Draw the Hasse diagrams of all the lattices with 5 elements.(b) Let A = {1, 2, 3}, B = {a, b, c} and C = {x, y, z}. The relation R from A to

B is {(1, b), (2, a), (2, c)} and the relation S from B to C is {(a, y), (b, x),(c, y), (c, z)}. Find the composition relation, R?S. [8+8]

4. (a) Explain, in detail, the algebraic systems: Endomorphism and Automorphismwith suitable examples.

(b) Prove that the set Z of all integers with the binary operation a * b = a + b+ 1, ∀ ∈ Z is an abelian group. [8+8]

5. (a) How many anagrams (arrangements of letters) are there of {7.a, 5.c, 1.d, 5.e, 1.g, 1.h, 7.i, 3.m, 9.n, 4.o, 5.t}?

(b) How many arrangements are there of 8.a, 6.b, 7.c in which each ‘a’ is on atleast one side of another ‘a’.? [8+8]

6. (a) Define recurrence relation? show that the sequence {an

} is a solution of re-currence relation a

n= -3 a

n−1 + 4 an−2 if a

n= 1.

(b) What is solution of the recurrence relation an

= an−1 + 2 a

n−2 with a0 = 2and a1 =7? [8+8]

7. (a) Prove that a non-directed graph G is connected if and only if G contains aspanning tree.

1 of 2

Page 2: 07a3bs04 Mathematical Foundations of Computer Science

8/9/2019 07a3bs04 Mathematical Foundations of Computer Science

http://slidepdf.com/reader/full/07a3bs04-mathematical-foundations-of-computer-science 2/8

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications

USA-UK-Australia-Germany-France-NewZealand Universities List

Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information

www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

www.andhracolleges.com

Code No: 07A3BS04 Set No. 1

(b) Determine the spanning tree of the following figure7b using DFS. [6+10]

Figure 7b

8. (a) Suppose that we know the degrees of the vertices of a non directed graph G.Is it possible to determine the order and size of G? Explain.

(b) Suppose that we know the order and size of a non directed graph G. Is itpossible to determine the degrees of the vertices of G? Explain. [8+8]

⋆ ⋆ ⋆ ⋆ ⋆

2 of 2

Page 3: 07a3bs04 Mathematical Foundations of Computer Science

8/9/2019 07a3bs04 Mathematical Foundations of Computer Science

http://slidepdf.com/reader/full/07a3bs04-mathematical-foundations-of-computer-science 3/8

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications

USA-UK-Australia-Germany-France-NewZealand Universities List

Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information

www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

www.andhracolleges.com

Code No: 07A3BS04 Set No. 2

II B.Tech I Semester Regular Examinations, November 2008MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE

( Common to Computer Science & Engineering, Information Technologyand Computer Science & Systems Engineering)

Time: 3 hours Max Marks: 80Answer any FIVE Questions

All Questions carry equal marks⋆ ⋆ ⋆ ⋆ ⋆

1. (a) Show that the principal disjunctive normal form of the formula:P ∨ ( ∼ P → (Q ∨ ( ∼ Q → R))) is: Σ( 1, 2, 3, 4, 5, 6, 7).

(b) Show that the principal conjunctive normal form of the formula:(P → (Q ∧ R)) ∧ ( ∼ P → ( ∼ Q ∧ ∼ R)) is Π ( 1, 2, 3, 4, 5, 6). [8+8]

2. Shows that the following set of premises are inconsistent using indirect method of proof:P → Q, Q → R, ∼ (P ∧ R), P ∨ R ⇒ R. [16]

3. (a) Draw the Hasse diagram of: ( P(S), ≤ ), where P(S) is power set of the set S= {a, b, c}.

(b) How many relations are there on a set with ‘n’ elements? If a set A has ‘m’elements and a set B has ‘n’ elements, how many relations are there from A

to B? If a set A = {1, 2}, determine all relations from A to A. [6+10]

4. (a) Prove that the intersection of two submonoids of a monoid is a monoid.

(b) Show that the function f from (N, +) to (N, *), where N is the set of all naturalnumbers, defined by f(x) = 2x ∀x ∈ N . [8+8]

5. (a) In how many different orders can 3 men and 3 women be seated in a row of 6seats if:

i. anyone may sit in any of the seats

ii. the first and last seats must be filled by men

iii. men and women are seated alternativelyiv. all members of the same sex seated in adjacent seats.

(b) How many 6 digit numbers are there with exactly one 5? [8+8]

6. Find a general expression for a solution to the recurrence relationan

- 5 an−1 + 6 a

n−2 = n(n-1) for n>=2. [16]

7. (a) If G is a non directed graph with 12 edges. Suppose that G has 6 vertices of degree 3 and the rest have degree less than 3. Determine the minimum no of vertices.

(b) If we know the degree of vertices of a non-directed graph G. Is it possible? todetermine the order and size of the G? Explain with example. [8+8]

8. (a) Write the rules for constructing Hamiltonian paths and cycles.

1 of 2

Page 4: 07a3bs04 Mathematical Foundations of Computer Science

8/9/2019 07a3bs04 Mathematical Foundations of Computer Science

http://slidepdf.com/reader/full/07a3bs04-mathematical-foundations-of-computer-science 4/8

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications

USA-UK-Australia-Germany-France-NewZealand Universities List

Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information

www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

www.andhracolleges.com

Code No: 07A3BS04 Set No. 2

(b) Write the difference between Hamiltonian graphs and Euler graphs. [8+8]

⋆ ⋆ ⋆ ⋆ ⋆

2 of 2

Page 5: 07a3bs04 Mathematical Foundations of Computer Science

8/9/2019 07a3bs04 Mathematical Foundations of Computer Science

http://slidepdf.com/reader/full/07a3bs04-mathematical-foundations-of-computer-science 5/8

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications

USA-UK-Australia-Germany-France-NewZealand Universities List

Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information

www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

www.andhracolleges.com

Code No: 07A3BS04 Set No. 3

II B.Tech I Semester Regular Examinations, November 2008MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE

( Common to Computer Science & Engineering, Information Technologyand Computer Science & Systems Engineering)

Time: 3 hours Max Marks: 80Answer any FIVE Questions

All Questions carry equal marks⋆ ⋆ ⋆ ⋆ ⋆

1. (a) Show the implication: (P → Q) → Q ⇒ P ∨ Q

(b) Show that the proposition: (P∨ ∼ Q) ∧ ( ∼ P∨ ∼ Q) ∨ Q is a tautology.[8+8]

2. (a) How does an indirect proof technique differ from a direct proof?

(b) Using predicate logic, prove the validity of the following argument:“Every husband argues with his wife. ‘X’ is a husband. Therefore, ‘X’argues with his wife”. [6+10]

3. (a) Find the inverse of the following functions:

i. f(x) = 105√ 7−3x

ii. f(x) = 4e(6x+2).

(b) Draw the Hasse diagram for the relation R on A = {1, 2, 3, 4, 5}, whoserelation matrix is given below: [8+8]

M R =

1 0 1 1 10 1 1 1 10 0 1 1 10 0 0 1 00 0 0 0 1

4. Consider the group, G = {1, 2, 4, 7, 8, 11, 13, 14} under multiplication modulo 15:

(a) Construct the multiplication table of G.

(b) Find the values of: 2−1, 7

−1 and 11−1.

(c) Find the orders and subgroups generated by 2, 7, and 11.

(d) Is G cyclic [16]

5. (a) In how many ways can we draw a heart or spade from ordinary deck of playingcards? a heart or an ace? an ace or a king? A card numbered 2 through 10?

(b) How many ways are there to roll two distinguishable dice to yield a sum thatis divisible by 3? [8+8]

6. (a) Find a recurrence relation for number of ways to climb n stairs if the person

climbing the stairs can take one,two,or three stairs at a time.

(b) What are the initial conditions? How many ways can this person climb a flightof eight stairs? [8+8]

1 of 2

Page 6: 07a3bs04 Mathematical Foundations of Computer Science

8/9/2019 07a3bs04 Mathematical Foundations of Computer Science

http://slidepdf.com/reader/full/07a3bs04-mathematical-foundations-of-computer-science 6/8

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications

USA-UK-Australia-Germany-France-NewZealand Universities List

Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information

www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

www.andhracolleges.com

Code No: 07A3BS04 Set No. 3

7. (a) Write the algorithm for breadth first search spanning tree.

(b) Apply breadth first search on the following figure 7b. [6+10]

Figure 7b

8. (a) Let G = (V,E) be an undirected graph, with G1 = (V1,E1) a subgraph of G.Under what condition(s) is G1 not an induced subgraph of G?

(b) For the graph shown in figure8b, find a subgraph that is not an induced graph.[8+8]

Figure 8b

⋆ ⋆ ⋆ ⋆ ⋆

2 of 2

Page 7: 07a3bs04 Mathematical Foundations of Computer Science

8/9/2019 07a3bs04 Mathematical Foundations of Computer Science

http://slidepdf.com/reader/full/07a3bs04-mathematical-foundations-of-computer-science 7/8

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications

USA-UK-Australia-Germany-France-NewZealand Universities List

Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information

www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

www.andhracolleges.com

Code No: 07A3BS04 Set No. 4

II B.Tech I Semester Regular Examinations, November 2008MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE

( Common to Computer Science & Engineering, Information Technologyand Computer Science & Systems Engineering)

Time: 3 hours Max Marks: 80Answer any FIVE Questions

All Questions carry equal marks⋆ ⋆ ⋆ ⋆ ⋆

1. (a) Find the truth table for the propositional formula: (P ↔∼ Q) ↔ (Q → P).

(b) What is the compound statement that is true when exactly two of the three

statements P, Q and R are true?(c) What is the negation of the statement: “2 is even and -3 is negative?” [6+5+5]

2. (a) Prove or disprove the conclusion given below from the following axioms:“All men are morta. Mahatma Gandhi is a man. Every mortal lives less

than 100 years. Mahatma Gandhi was born in 1869. N ow, it is 2008.Therefore, Is Mahatma Gandhi alive now?”

(b) Using proof by contradiction, show that√

2 is not a rational number. [8+8]

3. (a) Consider the following recursive function definition:

If x < y, then f(x, y) = 0; If y ≤ x, then f(x, y) = f(x-y, y) + 1. Find thevalue of f(5861, 7).

(b) Let the relation R = {(1, 2), (2, 3), (3, 3)} on the set {1, 2, 3}. What is thetransitive closure of R? [8+8]

4. (a) Let (S1, *1), (S2, *2) and (S3, *3) be semi groups and f: S1 → S2 and g:S2 → S3 be homomorphisms. Prove that the mapping of g o f: S1 → S3

homomorphism.

(b) Prove that H = {0, 2, 4} forms a subgroup of (Z6, +). [8+8]

5. A group of 8 scientists is composed of 5 psychologists and sociologists:(a) In how many ways can a committee of 5 be formed?

(b) In how many ways can a committee of 5 be formed that has 3 psychologistsand 2 sociologists? [8+8]

6. (a) In how many ways can Traci select n marbles from a large supply of blue, redand yellow marbles( all of the same size) if the selection must include an evennumber of blue ones.

(b) Determine the sequence generated by f(x) =1/(1-x) + 3x7 -11. [8+8]

7. (a) Prove that a tree with n vertices has exactly n-1 edges.(b) Show that graph G is a tree iff G is connected and contains no circuits.

1 of 2

Page 8: 07a3bs04 Mathematical Foundations of Computer Science

8/9/2019 07a3bs04 Mathematical Foundations of Computer Science

http://slidepdf.com/reader/full/07a3bs04-mathematical-foundations-of-computer-science 8/8

Seminar Topics - Scholarships - Admission/Entrance Exam Notifications

USA-UK-Australia-Germany-France-NewZealand Universities List

Engineering MBA MCA Medical Pharmacy B Ed Law Colleges Information

www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh

Code No: 07A3BS04 Set No. 4

(c) How many vertices will the following graph contain 16 edges and all verticesof degree 2. [6+6+4]

8. (a) Give an example of a connected graph G where removing any edge of G resultsin a disconnected graph.

(b) Give an example for a bipartite graph with examples.

(c) Discuss graph coloring problem with required examples. [4+6+6]

⋆ ⋆ ⋆ ⋆ ⋆

2 of 2