CSE20 Midterm 2 Study Notes - May 12, 2011, Exams of Discrete Mathematics

These study notes cover the topics from the cse20 midterm 2 exam held on may 12, 2011, including residual number system, boolean algebra, and recursive functions. Examples and problems related to the chinese remainder theorem, de morgan's theorem, and frog jumping problem.

Typology: Exams

2012/2013

Uploaded on 04/23/2013

sarangapani
sarangapani 🇮🇳

4.5

(10)

62 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSE20 Midterm 2, May 12, 2011, Name
1. Residual Number System (10 points): Show the operation of 8 ×17 in a residual
number system with moduli (m1, m2, m3) = (3,7,8).
2. Residual Number System (15 points): Suppose (x%4, x%5, x%7) = (1,2,3),
where symbol % denotes modulus operation. Follow the procedure of Chinese re-
mainder theorem to derive the smallest positive integer xthat satisfies this system.
3. Boolean Algebra (10 points): State the definition of Boolean algebra.
4. Boolean Algebra (10 points): Use Boolean algebra (laws and theorems) to prove
the De Morgan’s theorem: (ab)0=a0+b0.
5. Boolean Algebra (15 points): Use Boolean algebra (laws and theorems) to trans-
form Boolean function, E(a, b, c) = a0bc +ab0+bc0, into product-of-sums form.
6. Boolean Algebra (15 points): Reduce the following to an expression of a minimal
number of literals: E(a, b, c) = a0b0+b0c+ac +bc +a0bc0.
7. Recursive Function (15 points): A frog knows 3 jumping styles (A, B, C). Styles
A, B jump forward by 1 foot, and style C jumps forward by 2 feet. Let aidenote
the number of ways to jump over a total distance of ifeet.
(a) What is a1,a2,a3?
(b) Derive the recursive formula of an.
(c) Find the solution of the recursion.
8. Recursive Function (10 points): Consider the following homogeneous linear
recurrence relation: an= 2ran1r2an2. Show that an=c1rn+c2nrnsatisfies
the recurrence relation, where c1,and c2,are constant coefficients.
1
Docsity.com

Partial preview of the text

Download CSE20 Midterm 2 Study Notes - May 12, 2011 and more Exams Discrete Mathematics in PDF only on Docsity!

CSE20 Midterm 2, May 12, 2011, Name

  1. Residual Number System (10 points): Show the operation of 8 × 17 in a residual number system with moduli (m 1 , m 2 , m 3 ) = (3, 7 , 8).
  2. Residual Number System (15 points): Suppose (x%4, x%5, x%7) = (1, 2 , 3), where symbol % denotes modulus operation. Follow the procedure of Chinese re- mainder theorem to derive the smallest positive integer x that satisfies this system.
  3. Boolean Algebra (10 points): State the definition of Boolean algebra.
  4. Boolean Algebra (10 points): Use Boolean algebra (laws and theorems) to prove the De Morgan’s theorem: (ab)′^ = a′^ + b′.
  5. Boolean Algebra (15 points): Use Boolean algebra (laws and theorems) to trans- form Boolean function, E(a, b, c) = a′bc + ab′^ + bc′, into product-of-sums form.
  6. Boolean Algebra (15 points): Reduce the following to an expression of a minimal number of literals: E(a, b, c) = a′b′^ + b′c + ac + bc + a′bc′.
  7. Recursive Function (15 points): A frog knows 3 jumping styles (A, B, C). Styles A, B jump forward by 1 foot, and style C jumps forward by 2 feet. Let ai denote the number of ways to jump over a total distance of i feet. (a) What is a 1 , a 2 , a 3? (b) Derive the recursive formula of an. (c) Find the solution of the recursion.
  8. Recursive Function (10 points): Consider the following homogeneous linear recurrence relation: an = 2ran− 1 − r^2 an− 2. Show that an = c 1 rn^ + c 2 nrn^ satisfies the recurrence relation, where c 1 , and c 2 , are constant coefficients.

Docsity.com