Unit 1-Lecture 6:Sets and Sequence

1 Set Definition

  • A set is a bunch of objects, which are called the elements of the set.
  • Set builder notation is to define a set using predicate: the set consists of all values that make the predicate true.

2 Set Operation

  • The union of set A and B:
    xABIFFxAORxB
  • The intersection of set A and B:
    xABIFFxAANDxB
  • The set difference of A and B:
    xABIFFxAANDxB
  • The complement of set A:
    xA¯IFFxDANDxA
  • The power of set A:
    BPOW(A)IFFBA

3 Set Equalities

  • X = Y means that zx if and only if y zz .
  • Distributive Law for Sets:
    A(BC)=(AB)(AC)
  • De Morgan’s Law for set equality:
    AB¯¯¯¯¯¯¯¯¯=A¯¯¯B¯¯¯

4 Sequence

  • Definition: a list of objects called terms or components.
  • The difference between Set and Sequence:
    • The elements of a set are required to be distinct, but terms in a sequence can be the same.
    • The terms in a sequence have a specified order, but the elements of a set do not.

Reference

[1] Lehman E, Leighton F H, Meyer A R. Mathematics for Computer Science[J]. 2015.

你可能感兴趣的:(离散数学)