CMSC 203 Fall 2004 Exam: Logic and Functions, Exams of Discrete Structures and Graph Theory

The fall 2004 exam for cmsc 203, a university-level course in logic and functions. The exam includes multiple-choice questions, problems involving logical statements and functions, and proofs. Students are required to apply concepts of logic, sets, functions, and algorithms to solve the problems.

Typology: Exams

2012/2013

Uploaded on 04/27/2013

ashay
ashay 🇮🇳

4.1

(15)

196 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Exam 1 CMSC 203 Fall 2004
1. Circle T for True or F for False as they apply to the following statements:
T F In logic, all compound statements are either a tautology or a contradiction.
T F The Rational numbers are all infinite decimal expansions.
T F A set with 10 elements has 1024 subsets.
T F Sets that are disjoint have no elements in common.
T F H(010011000111, 110110110110) = d(100101110001).
T F The Rationals are closed under addition and multiplication.
T F The Irrationals are closed under addition and multiplication
T F If there is an ONTO function mapping set A to set B, then B is a subset of A.
T F Algorithms of polynomial order complexity are better than those of exponential
order complexity.
T F That all dogs like bones and Spot likes bones implies Spot is a dog.
2. Use the Laws of Logic to show: (p r) q p (r q)
3. Find the inverse for the Universal Conditional Statement:
Every integer that is even has a square that is even.
4. Let f be function defined as: f = {(0, 3), (1, 2), (2, 4), (3, 1), (4, 0)}. Find f o f o f .
5. Let A = {1, 2, 4} and B = {0, 1, 2, 3, 4} and U = {0, 1, 2, 3, 4, 5, 6}
(a) Find A x (Bc ) (b) Find the Power Set of A (c) Find (A B)c (Ac B)
6. Find the Big-O for the algorithm with complexity: n4(3n3 + 5) + n5(2n2 + 8n)
7. Show that the function f: R - R given by f(x) = 7x + 4 is a bijection.
8. Use Valid Reasoning to obtain the given conclusion: q ¬r t
s p
r s
q ¬p
-----------
t
9. Prove TWO of the THREE theorems below:
Theorem 1: (by Contradiction) There is no greatest integer.
Theorem 2: The product of 3 consecutive integers is an even integer.
Theorem 3: (by Contaposition) For all integers, n, if n2 is odd, then n is odd.
Docsity.com

Partial preview of the text

Download CMSC 203 Fall 2004 Exam: Logic and Functions and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

Exam 1 CMSC 203 Fall 2004

  1. Circle T for True or F for False as they apply to the following statements: T F In logic, all compound statements are either a tautology or a contradiction. T F The Rational numbers are all infinite decimal expansions. T F A set with 10 elements has 1024 subsets. T F Sets that are disjoint have no elements in common. T F H(010011000111, 110110110110) = d(100101110001). T F The Rationals are closed under addition and multiplication. T F The Irrationals are closed under addition and multiplication T F If there is an ONTO function mapping set A to set B, then B is a subset of A. T F Algorithms of polynomial order complexity are better than those of exponential order complexity. T F That all dogs like bones and Spot likes bones implies Spot is a dog.

2. Use the Laws of Logic to show: ( p ∧ r ) → q ≡ p → ( r → q )

  1. Find the inverse for the Universal Conditional Statement: Every integer that is even has a square that is even.
  2. Let f be function defined as: f = {(0, 3), (1, 2), (2, 4), (3, 1), (4, 0)}. Find f o f o f.
  3. Let A = {1, 2, 4} and B = {0, 1, 2, 3, 4} and U = {0, 1, 2, 3, 4, 5, 6}

(a) Find A x (Bc^ ) (b) Find the Power Set of A (c) Find (A ∪ B)c^ ∩ (A c^ − B)

  1. Find the Big-O for the algorithm with complexity: n^4 (3 n^3 + 5) + n^5 (2 n^2 + 8 n )
  2. Show that the function f : R - R given by f ( x ) = 7 x + 4 is a bijection.

8. Use Valid Reasoning to obtain the given conclusion: q ∨ ¬ r ∨ t

sp

r ∧ s

q → ¬ p

∴ t

  1. Prove TWO of the THREE theorems below: Theorem 1: (by Contradiction) There is no greatest integer. Theorem 2: The product of 3 consecutive integers is an even integer.

Theorem 3: (by Contaposition) For all integers, n , if n^2 is odd, then n is odd.

Docsity.com