• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/47

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

47 Cards in this Set

  • Front
  • Back

countable set

can identify a recipe to enumerate the set's items

uncountable set

no series of steps to enumerate all of the set's items




example: Real numbers

addition principle

when a choice needs to be made from any one of several cases




|AUB|=|A|+|B|


for disjoint A and B only


aka cardinality of set union

multiplication principle

when a series of choices needs to be made


# of possibilities: product of the input set cardinalities

general property of set intersection cardinality

|A^B|=|A|-|A-B|

general property of set union

|AUB| U |A^B| U |B-A|

Principle of Inclusion and Exclusion (for two sets)

|AUB|=|A| + |B| - |A^B|

Principle of Inclusion and Exclusion (for 3 sets)

|AUBUC|=|A|+|B|+|C|-|A^B|-|A^C|- |B^C|+ |A^B^C|

general pattern for inclusion/exclusion

add the singletons


subtract pairs


add triples


etc...

Pigeonhole Principle

If more than K objects are placed into K holes, then at least one hole has more than one objects

Permutation

*ordered* set of objects


formula: P(n,r) = n!/(n-r)!


where n=#of objects


r=#of selections

Combination

*non-ordered* set of objects


formula: C(n,r) = n!/r!(n-r)!


where n=# of objects


and r=#of selections

Combination with replacement

formula: Crep(n,r) = C(n+(r-1), r)


example: I rent a car from from a place with 3 cars to choose from. Later, I rent again after returning the first car so it can be rented again. How many combinations of cars are there?


C(3+(2-1),2) = C(4,2)


=4!/2!2! = 6



Probability

finding the chance of a particular outcome

Sample space

the set of all possible outcomes

event space

the particular outcome

P(E) formula

P(E) = |E|/|S|

conditional probablility

probability of an event happening given that some other event has already happened




notation: P(E1|E2)


formula:P(E1|E2) = P(E1^E2)/P(E1)

Probability distribution

collection of certain outcomes; used when not all outcomes are equally likely

Expected Value

average(mean)/weighted value




notation: E(x)


Defn: Sum (Value xi) P(xi)




**make table of xi and P(xi) then add

Binomial theorem

formula: C(n,0)a^n b^0 + C(n,1)a^(n-1) b^1....


**a's decrease from first exponent, b's increase from starting at 0

Binary Relation

Produces items in a subset of SXS and involve 2 tuples

Binary Relation classifications

1. One-to-many: at least 1 element of S appears twice


2. One-to-One: each 1st and 2nd component of tuples is only appearing once


3. Many-to-One: at least one element of the second set appears twice


4. Many-to-Many: duplication of some S and some T elements

Symmetric (relation property)

if x is related to y, then y is related to x


ex:


S={1,2,3,4,5,6}


p={(1,2)(2,1)}

reflexive (relation property)

each x must be related, and one of its relatives must be itself


ex:


S={1,2,3}


P={(1,1)(2,2)(3,3)}

transitive (relation property)

if x is related to y and y is related to z then x must also be related to z


ex:


S={1,2,3,4,5,6}


p={(1,1)(1,2)(2,1)(2,2)}

anti-symmetric (relation property)

if x is related to y and y is related to x then x=y


example:


S={1,2}


p={(1,1)}



Extension

a new relation that's a superset of another relation

closure

the smallest possible extension of a set



set partition

collection of subsets (of some sets) whose union with S is with:


1. each subset is non-empty


2. no overlap between subsets

block

one of the sets making up a partition

equivalence relation

binary relation that is: reflexive, symmetric and transitive

equivalence class

set of items that an item is related to




notation: [...]


formal definition: given some element a that is in S, [a]={b|b is an element of S and a is related to b}


**each class is a block and all classes form a partition

Partial Ordering

binary relation that is: reflexive, anti-symmetric and transitive




notation: (S,p)

Predecessor

any item in the partial ordering that gets related is a predecessor




formally if (S,p) contains x related to y then x is a predecessor of y

Hasse diagram

graph of a partial ordering

vertices

elements of S



edges

connections showing individual element relations

total ordering

type of partial ordering in which every element of S is related to each other element

minimal element

has no predecessors except for itself

maximal element

has no successors except for itself

PERT diagram

is a Hasse diagram rotated 90 degrees clockwise and add arrows to the edges

critical path

path leading to completion that encompasses the minimal time to completion


**this is NOT the LEAST time to completion

Topological sorting

defines a way to sequence tasks to complete an activity




context: partial ordering


algorithm:





Function

A function f is one that maps elements of a set S to another set T, and is a subset of SXT in which each element of S is mapped to one element of T




examples are: one-to-one and one-to-many




fan out must always be one



domain

the source set





co-domain

the destination set