CSE 312
Foundations of Computing II
Lecture 1: Welcome & Introduction
Stefano Tessaro
tessaro@cs.washington.edu
1
Foundations of Computing II Lecture 1: Welcome & Introduction - - PowerPoint PPT Presentation
CSE 312 Foundations of Computing II Lecture 1: Welcome & Introduction Stefano Tessaro tessaro@cs.washington.edu 1 Foundations of Computing II = Introduction to Probability & Statistics for computer scientists What is probability??
1
2
for computer scientists
3
Big data Data compression Congestion control Cryptography Load Balancing Machine Learning Data Structures Natural Language Processing Algorithms Computational Biology Fault-tolerant systems Complexity theory Error-correcting codes + much more!
4 Kushal Jhunjhunwalla Leonid Baraznenok barazl@cs kushaljh@cs Duowen (Justin) Chen chendw98@cs Tina Kelly Li 3nakli@cs Zhanhao Zhang zhangz73@cs Su Ye yes23@cs Siva N. Ramamoorthy sivanr@cs Stefano Tessaro tessaro@cs
Cryptographer, Associate Professor @ Allen School since Jan 2019.
5
tl;dr:
Gradescope only, individual submissions.
posted one day in advance. Do attend them.
6
7
8
Order irrelevant: 1,2,3 = 3,1,2 = 3,2,1 = 1,3,2 = ⋯ No repe00ons: 1,2,2,3 = 1,2,3
9
Examples:
Examples:
10
G H ∈ ℝ I, J ∈ ℤ, J ≠ 0}
finite sets infinite sets countable uncountable
11
What is this set?
What is this set?
unambiguous ambiguous
12
[Sometimes also: - − .]
13
universe Ω
[Sometimes also: ̅
14
Equivalent naming: 2-sequence = 2-tuple = ordered pair.
Order ma9ers: 1,2,3 ≠ 3,2,1 ≠ (1,3,2) Repe00ons ma9er: 1,2,3 ≠ 1,2,2,3 ≠ 1,1,2,3
15
Example.
16
Q times
17
18
“How many ways are there to assign 7 TAs to 5 sec3ons, such that each sec3on is assigned to two TAs, and no TA is assigned to more than two sec3ons?” “How many integer solutions ", b, c ∈ ℤd does the equation "d + bd = cd have?” Generally: Question boils down to computing cardinality |$| of some given (implicitly defined) set $.
How many string of length 5 over the alphabet -, ., e, … , f are there?
19
Answer: 26g = 11881376
26 op&ons
h f
f
f i
f j
f k
h
j k
26 options 26 op&ons 26 op&ons 26 op&ons
20
How many string of length 5 over the alphabet -, ., e, … , f are there?
g = 26g.
21
Product rule
22
23
e = {blue, orange, purple, silver} n = {128GB, 256GB, 512GB}
$ = {13”, 15”} Configuration = element of e×n×o×$
Product rule
24
Example. 2 ★,♠ = {∅, ★ , ♠ , {★, ♠}} 2∅ = {∅}
…
25
subset s ⊆ $ sequence 1t ∈ 0,1 l
1-to-1 correspondence
l
Product rule
(Case $ = ∅ needs to be handled separately)
26
Sequential process: We fix elements in a sequence one by one, and see how many possibilities we have at each step. Example: “How many sequences are there in 1,2,3 d?” 1 2 3 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 2 2 3 3 3 3 3 3 3 3 3 "K "O "d
27 paths = 27 sequences
27
Example: “How many sequences are there in 1,2,3 d with no repea3ng elements?” 1 2 3 1 1 1 1 2 2 2 3 3 2 3 3 "K "O "d
6 sequences
28
“How many sequences in = l with no repea3ng elements?”
Answer = =× = − 1 × = − 2 × ⋯×2×1
”Permutations”
2| ⋅ =l~K
O ⋅ Äl≤ =! ≤ ⋅ =l~K O⋅ Äl .
= 2.5066 = 2.7183