CIS 160 Midterm 1

  1. What is a statement that is either true or false
    proposition
  2. Negation
    Conjunction
    Disjunction
    Exclusive OR
    Implication
    Biconditional
    • Negation (¬p): not p
    • Conjunction (p⋀q): p and q
    • Disjunction (p⋁q): p or q
    • Exclusive OR (p⊕q): p exclusive or q
    • Implication (p→q): p implies q
    • Biconditional (p↔q): p if and only if q
  3. Truth Table
    Image Upload 2
  4. p is a sufficient condition for q means
    p → q
  5. p is a necessary condition for q means that
    • ¬p → ¬q or equivalently q → p
    • (p ∧ q is not the correct answer because p could still be true but q may be false, q still may happen without p)
  6. p is a necessary and sufficient condition for q means
    p iff q (p↔q)
  7. Universal Quantifier (for all)
    ∀ statement is true for all elements in the domain of x
  8. Existential quantifier (There exists)
    ∃ means that there is an element in the domain of x for which the predicate is true
  9. When is an integer prime?
    An integer n is prime iff n > 1 and for all positive integers r and s, if n = r x s, then r = 1 or s = 1. Otherwise n is composite.
  10. For any set S, the empty set
    ∅⊆S and S⊆S.
    If A⊆B and A≠B then we say that A is a proper subset of B (A⊂B). A is a proper subset of B if A is a subset of B and there is an element in B that does not belong to A.
  11. Theorem of Number of Numbers between numbers
    If m and n are integers and m ≤ n then there are n-m+1 integers from m to n inclusive.
  12. The number of elements in the Power set of set S, with n elements can be given by
    Image Upload 3
  13. The number of permutations of set S where S has n elements can be given by
    n!
  14. The union of sets A and B
    A∪B is the set that contains those elements that are in A or in B or in both.
  15. The intersection of sets A and B
    A∩B is the set that contains those elements that are in both A and B.
  16. Two sets are called ____ if their intersection is an empty set
    disjoint
  17. A collection of sets is a partition of a set A iff and only if
    • 1. A = union of all sets in the partition
    • 2. all the sets in the partition are mutually disjoint
  18. The difference of sets A and B
    A \ B is the set containing those elements that are in A but not in B.
  19. The complement of set A
    U \ A or ¬A is the set of elements not in A.
  20. The cartesian product of A and B
    A x B is the set of all ordered pairs formed by taking an element from A together with an element from B in all possible ways.
  21. Let A and B be sets. Then A = B if and only if
    • A ⊆ B
    • B ⊆ A
  22. A - (B ∪ C) = 
    A - (B ∩ C) =
    • A - (B ∪ C) = (A-B)∩(A-C)
    • A - (B ∩ C) = (A-B)∪(A-C)
  23. Let P(n,r) denote the number of r-permutations of a set of n elements. What is the value of P(n,r)?
    P(n,r) = Image Upload 4
  24. The Inclusion-Exclusion Formula

    If A, B, and C are any finite sets, then
    |A∪B∪C| =
    • |A| + |B| + |C| - |A∩B| - |A∩C| - |B∩C| + |A∩B∩C|
    • Observe that if the sets are mutually disjoint then |A∪B∪C| = |A| + |B| + |C| (Sum Rule)
  25. An r-combination of a set of n elements means an unordered selection of r of the n elements of S. Image Upload 5 is the value of
    Image Upload 6
  26. Fundamental Theorem of Arithmetic

    • Given any integer n > 1, there exist a positive integer k, distinct prime numbers
    • p1, p2, . . . , pk, and positive integers e1, e2, . . . , ek such that
    • n = p1^e1 p2^e2 p3^e3...pk^ek
    • and any other expression of n as a product of primes is identical to this except,
    • perhaps, for the order in which the factors are written.
  27. The elements of a multiset are ____ however, the elements of each element are _____.
    • distinguishable
    • indistinguishable
  28. The permutations of a multiset S with nk elements of n total objects is
    Image Upload 7
  29. r-combinations with repetition allowed
    n: n-1 sticks
    r: n crosses
    The total number of possible ways to choose multisets of size r from a multiset of n objects with repetition of each object is
    Image Upload 8 or Image Upload 9
  30. Steps for an Induction Proof
    • 1. Assert what you want to prove
    • 2. Base Case
    • 3. Induction Hypothosis
    • 4. Induction Step
  31. Steps for a combinatorial proof
    • 1. Ask a question
    • 2. Show that LHS answers the question
    • 3. Show RHS answers the question
    • 4. Conclude they are equal
  32. Pascal's Formula
    • If n and k are positive ints with n >= k then
    • Image Upload 10
  33. The Binomial Theorem
    • For any real numbers a and b and non-negative integer n
    • Image Upload 11
  34. The Pigeonhole Principle
    • If k + 1 or more objects are distributed among k bins then there is at least one bin that has
    • two or more objects. For example, the pigeon hole principle can be used to conclude that
    • in any group of thirteen people there are at least two who are born in the same month.
Author
Henri93
ID
324065
Card Set
CIS 160 Midterm 1
Description
CIS 160 MIDTERM 1
Updated