MATH10220 - Found. of Math. Comp. Sci II

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

14 Terms

1
New cards
What is a Cartesian product?
The Cartesian product A × B is the set of all ordered pairs (a,b) where a ∈ A and b ∈ B
2
New cards
What is the size formula for Cartesian products?
|A × B| = |A| · |B|, and for n sets: |A₁ × A₂ × ... × Aₙ| = |A₁| · |A₂| · ... · |Aₙ|
3
New cards
What is an ordered pair?
Elements of A × B written as (a,b) where order matters: (1,x) ≠ (x,1)
4
New cards
What is an ordered n-tuple?
Elements of A₁ × A₂ × ... × Aₙ written as (a₁,a₂,...,aₙ), also called strings or words
5
New cards
How many bytes are possible?
2⁸ = 256 different bytes (8 positions, each can be 0 or 1)
6
New cards
When does order matter vs not matter?
Order matters when objects are distinguishable (red die vs green die). Order doesn't matter when objects are indistinguishable (two green dice)
7
New cards
Two distinguishable dice, repetition allowed
Order important, repetition allowed: 6² = 36 outcomes
8
New cards
Two indistinguishable dice, repetition allowed
Order not important, repetition allowed: 21 outcomes
9
New cards
Two distinguishable dice, no repetition
Order important, repetition not allowed: 30 outcomes
10
New cards
Two indistinguishable dice, no repetition
Order not important, repetition not allowed: 15 outcomes
11
New cards
Key difference: ordered pairs vs sets
For ordered pairs: (x,y) ≠ (y,x) and (x,x) is valid. For sets: {x,y} = {y,x} and {x,x} = {x}
12
New cards
What is A × ∅?
A × ∅ = ∅ (empty set)
13
New cards
Example of Cartesian product
If A = {1,2,3} and B = {x,y}, then A × B = {(1,x),(1,y),(2,x),(2,y),(3,x),(3,y)}
14
New cards
What are the 4 counting categories?
1) Order matters, repetition allowed 2) Order matters, no repetition 3) Order doesn't matter, repetition allowed 4) Order doesn't matter, no repetitio