SlideShare a Scribd company logo
Solution
Week 74 (2/9/04)
Comparing the numbers
(a) Let your number be n. We will average over the equally likely values of n
(excluding n = 1) at the end of the calculation.
For convenience, let p ≡ (n − 1)/(N − 1) be the probability that a person you
ask has a number smaller than yours. And let 1− p ≡ (N − n)/(N − 1) be the
probability that a person you ask has a number larger than yours.
Let An be the average number of people you have to ask in order to find a
number smaller than yours, given that you have the number n. An may be
calculated as follows.
There is a probability p that it takes only one check to find a smaller number.
There is a probability 1 − p that the first person you ask has a larger number.
From this point on, you have to ask (by definition) an average of An people
in order to find a smaller number. In this scenario, you end up asking a total
of An + 1 people.
Therefore, it must be true that
An = p · 1 + (1 − p)(An + 1). (1)
This gives
An =
1
p
=
N − 1
n − 1
. (2)
All values of n, from 2 to N, are equally likely, so we simply need to find the
average of the numbers An, for n ranging from 2 to N. This average is
A =
1
N − 1
N
n=2
N − 1
n − 1
= 1 +
1
2
+
1
3
+ · · · +
1
N − 1
. (3)
This expression for A is the exact answer to the problem. To obtain an ap-
proximate answer, note that the sum of the reciprocals of the numbers from 1
to M equals ln M + γ, where γ ≡ 0.577... is Euler’s constant. So if N is large,
you have to check about ln N + γ other numbers before you find one that is
smaller than yours.
(b) Let your number be n. As in part (a), we will average over the equally likely
values of n (excluding n = 1) at the end of the calculation.
Let BN
n be the average number of people you have to ask in order to find a
smaller number, given that you have the number n among the N numbers.
BN
n may be calculated as follows.
There is a probability (n − 1)/(N − 1) that it takes only one check to find a
smaller number.
1
There is a probability (N − n)/(N − 1) that the first person you ask has a
larger number. From this point on, you have to ask (by definition) an average
of BN−1
n people in order to find a smaller number. In this scenario, you end
up asking a total of BN−1
n + 1 people.
Therefore, it must be true that
BN
n =
n − 1
N − 1
· 1 +
N − n
N − 1
BN−1
n + 1
= 1 +
N − n
N − 1
BN−1
n . (4)
Using the fact that BN
n = 1 when N = n, we can use eq. (4) to inductively
increase N (while holding n constant) to obtain BN
n for N > n. If you work
out a few cases, you will quickly see that BN
n = N/n. We can then easily
check this by induction on N; it is true for N = n, so we simply need to verify
in eq. (4)) that
N
n
= 1 +
N − n
N − 1
N − 1
n
, (5)
which is indeed true. Therefore,
BN
n =
N
n
. (6)
As in part (a), all values of n, from 2 to N, are equally likely, so we simply
need to find the average of the numbers BN
n = N/n, for n ranging from 2 to
N. This average is
B =
1
N − 1
N
n=2
N
n
=
N
N − 1
1
2
+
1
3
+ · · · +
1
N
. (7)
This expression for B is the exact answer to the problem. If N is large, then
the result is approximately equal to ln N + γ − 1, due to the first term of “1”
missing in the parentheses. This result is one person fewer than the result in
part (a). So a good memory saves you, on average, one query.
Remark: The continuum version of this problem (in which case the quality of your
memory in irrelevant, to leading order) is the following.
Someone gives you a random number between 0 and 1, with a flat distribution. Pick
successive random numbers until you finally obtain one that is smaller. How many
numbers, on average, will you have to pick?
This is simply the original problem, in the limit N → ∞. So the answer should be
ln(∞), which is infinite. And indeed, from the reasoning in part (a), if you start with
the number x, then the average number of picks you need to make to find a smaller
number is 1/x, from eq. (2). Averaging these waiting times of 1/x, over the equally
2
likely values of x, gives an average waiting time of1
1
0
dx
x
= ∞. (8)
We can get around this infinite answer by changing the probability distribution on the
unit interval. For example, let the probability distribution be proportional to 1/
√
x.
Then the probability of someone having a number smaller than x is proportional to
x
0
dx/
√
x ∝
√
x. Therefore, if you start with the number x, then the average number
of picks you need to make to find a smaller number is proportional to 1/
√
x, from eq.
(2). Averaging these waiting times of 1/
√
x, over the equally likely values of x, gives
an average waiting time proportional to
1
0
1
√
x
dx = ∞. (9)
In general, if the probability distribution is proportional to xr
, then r = 0 (that is,
a flat distribution) is the cutoff case between having a finite or infinite expectation
value for the number of necessary picks.
1
However, if you play this game a few times, you will quickly discover that the average number
of necessary picks is not infinite. If you find this unsettling, you are encouraged to look at Problem
of the Week 6.
3

More Related Content

What's hot

Probabilistic Reasoning
Probabilistic ReasoningProbabilistic Reasoning
Probabilistic Reasoning
Junya Tanaka
 
Limits at Infinity, Part 1
Limits at Infinity, Part 1Limits at Infinity, Part 1
Limits at Infinity, Part 1
Pablo Antuna
 
Scientific Notation
Scientific NotationScientific Notation
Scientific Notation
Ver Louie Gautani
 
Tenth class state syllabus-text book-em-ap-ts-mathematics
Tenth class state syllabus-text book-em-ap-ts-mathematicsTenth class state syllabus-text book-em-ap-ts-mathematics
Tenth class state syllabus-text book-em-ap-ts-mathematics
NaukriTuts
 
Scientific notation
Scientific notationScientific notation
Scientific notationIDOLChem
 
Binomial Distribution Part 5
Binomial Distribution Part 5Binomial Distribution Part 5
Binomial Distribution Part 5
Suchithra Edakunni
 
Scientific Notation
Scientific NotationScientific Notation
Scientific Notationcrespiryan
 
Scientific notation
Scientific notationScientific notation
Scientific notationserokat
 
Alaina's POTW solution
Alaina's POTW solutionAlaina's POTW solution
Alaina's POTW solutionalainarose4
 
Scientific notation powerpoint
Scientific notation powerpointScientific notation powerpoint
Scientific notation powerpointEdison Orgil
 
Scientific Notation
Scientific NotationScientific Notation
Scientific NotationAwais Khan
 
Operations of-scientific-notation (Kyle Balais)
Operations of-scientific-notation (Kyle Balais)Operations of-scientific-notation (Kyle Balais)
Operations of-scientific-notation (Kyle Balais)
TheaJasmineElyssaAle
 
Statistical Assignment Help
Statistical Assignment HelpStatistical Assignment Help
Statistical Assignment Help
Statistics Homework Helper
 
Handa ka funda math formulas 5.0
Handa ka funda   math formulas 5.0Handa ka funda   math formulas 5.0
Handa ka funda math formulas 5.0
Chandan Kumar
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
Robert Tinaro
 
Add sub mul_div_scientific_notation
Add sub mul_div_scientific_notationAdd sub mul_div_scientific_notation
Add sub mul_div_scientific_notation
JanelyvieEnrique
 
Proving existential statements
Proving existential statementsProving existential statements
Proving existential statements
Abdur Rehman
 

What's hot (19)

Probabilistic Reasoning
Probabilistic ReasoningProbabilistic Reasoning
Probabilistic Reasoning
 
Limits at Infinity, Part 1
Limits at Infinity, Part 1Limits at Infinity, Part 1
Limits at Infinity, Part 1
 
Scientific Notation
Scientific NotationScientific Notation
Scientific Notation
 
Tenth class state syllabus-text book-em-ap-ts-mathematics
Tenth class state syllabus-text book-em-ap-ts-mathematicsTenth class state syllabus-text book-em-ap-ts-mathematics
Tenth class state syllabus-text book-em-ap-ts-mathematics
 
Scientific notation
Scientific notationScientific notation
Scientific notation
 
Binomial Distribution Part 5
Binomial Distribution Part 5Binomial Distribution Part 5
Binomial Distribution Part 5
 
Scientific Notation
Scientific NotationScientific Notation
Scientific Notation
 
Scientific notation
Scientific notationScientific notation
Scientific notation
 
Alaina's POTW solution
Alaina's POTW solutionAlaina's POTW solution
Alaina's POTW solution
 
Scientific notation powerpoint
Scientific notation powerpointScientific notation powerpoint
Scientific notation powerpoint
 
Scientific Notation
Scientific NotationScientific Notation
Scientific Notation
 
Operations of-scientific-notation (Kyle Balais)
Operations of-scientific-notation (Kyle Balais)Operations of-scientific-notation (Kyle Balais)
Operations of-scientific-notation (Kyle Balais)
 
Statistical Assignment Help
Statistical Assignment HelpStatistical Assignment Help
Statistical Assignment Help
 
Handa ka funda math formulas 5.0
Handa ka funda   math formulas 5.0Handa ka funda   math formulas 5.0
Handa ka funda math formulas 5.0
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
Add sub mul_div_scientific_notation
Add sub mul_div_scientific_notationAdd sub mul_div_scientific_notation
Add sub mul_div_scientific_notation
 
Scientific Notation
Scientific NotationScientific Notation
Scientific Notation
 
Proving existential statements
Proving existential statementsProving existential statements
Proving existential statements
 
Problems 2
Problems 2Problems 2
Problems 2
 

Viewers also liked

Volta à ásia em 8 minutos
Volta à ásia em 8 minutosVolta à ásia em 8 minutos
Volta à ásia em 8 minutos
Emanuel Martins
 
Acupuncture For Pets
Acupuncture For PetsAcupuncture For Pets
Acupuncture For Petscarefirst1
 
Desaprenderyaprender (1) (1)
Desaprenderyaprender (1) (1)Desaprenderyaprender (1) (1)
Desaprenderyaprender (1) (1)Albert Antebi
 
Blazey Michael Oct 2015 CR
Blazey Michael Oct 2015 CRBlazey Michael Oct 2015 CR
Blazey Michael Oct 2015 CRMichael Blazey
 
2015 estudioanualredessociales-6-150128095116-conversion-gate02
2015 estudioanualredessociales-6-150128095116-conversion-gate022015 estudioanualredessociales-6-150128095116-conversion-gate02
2015 estudioanualredessociales-6-150128095116-conversion-gate02
mpereles
 
Fisica 2
Fisica 2Fisica 2
MONICA YASELGA
MONICA YASELGA MONICA YASELGA
MONICA YASELGA Pauly Nice
 

Viewers also liked (20)

Publicity art
Publicity artPublicity art
Publicity art
 
Volta à ásia em 8 minutos
Volta à ásia em 8 minutosVolta à ásia em 8 minutos
Volta à ásia em 8 minutos
 
Syria
SyriaSyria
Syria
 
Acupuncture For Pets
Acupuncture For PetsAcupuncture For Pets
Acupuncture For Pets
 
Desaprenderyaprender (1) (1)
Desaprenderyaprender (1) (1)Desaprenderyaprender (1) (1)
Desaprenderyaprender (1) (1)
 
L'oiseau (1)
L'oiseau (1)L'oiseau (1)
L'oiseau (1)
 
Sol89
Sol89Sol89
Sol89
 
Sol73
Sol73Sol73
Sol73
 
Sol76
Sol76Sol76
Sol76
 
Blazey Michael Oct 2015 CR
Blazey Michael Oct 2015 CRBlazey Michael Oct 2015 CR
Blazey Michael Oct 2015 CR
 
Sol88
Sol88Sol88
Sol88
 
Sol83
Sol83Sol83
Sol83
 
Sol85
Sol85Sol85
Sol85
 
Sol75
Sol75Sol75
Sol75
 
Sol86
Sol86Sol86
Sol86
 
Sol71
Sol71Sol71
Sol71
 
2015 estudioanualredessociales-6-150128095116-conversion-gate02
2015 estudioanualredessociales-6-150128095116-conversion-gate022015 estudioanualredessociales-6-150128095116-conversion-gate02
2015 estudioanualredessociales-6-150128095116-conversion-gate02
 
Sol78
Sol78Sol78
Sol78
 
Fisica 2
Fisica 2Fisica 2
Fisica 2
 
MONICA YASELGA
MONICA YASELGA MONICA YASELGA
MONICA YASELGA
 

Similar to Sol74

Lesson 4 square numbers
Lesson 4   square numbersLesson 4   square numbers
Lesson 4 square numbers
MLG College of Learning, Inc
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
Statistics Homework Helper
 
Set Of Primes Is Infinite - Number Theory
Set Of Primes Is Infinite - Number TheorySet Of Primes Is Infinite - Number Theory
Set Of Primes Is Infinite - Number Theory
Methusael Cebrian
 
Normal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson DistributionNormal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson Distribution
Q Dauh Q Alam
 
Mathematical Statistics Homework Help
Mathematical Statistics Homework HelpMathematical Statistics Homework Help
Mathematical Statistics Homework Help
Statistics Homework Helper
 
C2 st lecture 10 basic statistics and the z test handout
C2 st lecture 10   basic statistics and the z test handoutC2 st lecture 10   basic statistics and the z test handout
C2 st lecture 10 basic statistics and the z test handoutfatima d
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
Statistics Homework Helper
 
Probability and Statistics Assignment Help
Probability and Statistics Assignment HelpProbability and Statistics Assignment Help
Probability and Statistics Assignment Help
Statistics Assignment Help
 

Similar to Sol74 (20)

Sol18
Sol18Sol18
Sol18
 
Sol18
Sol18Sol18
Sol18
 
Sol44
Sol44Sol44
Sol44
 
Sol44
Sol44Sol44
Sol44
 
Lesson 4 square numbers
Lesson 4   square numbersLesson 4   square numbers
Lesson 4 square numbers
 
Sol46
Sol46Sol46
Sol46
 
Sol46
Sol46Sol46
Sol46
 
Sol60
Sol60Sol60
Sol60
 
Sol60
Sol60Sol60
Sol60
 
Chap2
Chap2Chap2
Chap2
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
Set Of Primes Is Infinite - Number Theory
Set Of Primes Is Infinite - Number TheorySet Of Primes Is Infinite - Number Theory
Set Of Primes Is Infinite - Number Theory
 
Sol38
Sol38Sol38
Sol38
 
Sol38
Sol38Sol38
Sol38
 
Normal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson DistributionNormal Distribution, Binomial Distribution, Poisson Distribution
Normal Distribution, Binomial Distribution, Poisson Distribution
 
Mathematical Statistics Homework Help
Mathematical Statistics Homework HelpMathematical Statistics Homework Help
Mathematical Statistics Homework Help
 
C2 st lecture 10 basic statistics and the z test handout
C2 st lecture 10   basic statistics and the z test handoutC2 st lecture 10   basic statistics and the z test handout
C2 st lecture 10 basic statistics and the z test handout
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Probability and Statistics Assignment Help
Probability and Statistics Assignment HelpProbability and Statistics Assignment Help
Probability and Statistics Assignment Help
 
series.pdf
series.pdfseries.pdf
series.pdf
 

More from eli priyatna laidan

Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2
eli priyatna laidan
 
Soal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.netSoal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.net
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2
eli priyatna laidan
 
Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1
eli priyatna laidan
 
Soal up akmal
Soal up akmalSoal up akmal
Soal up akmal
eli priyatna laidan
 
Soal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannyaSoal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannya
eli priyatna laidan
 
Soal tes wawasan kebangsaan
Soal tes wawasan kebangsaanSoal tes wawasan kebangsaan
Soal tes wawasan kebangsaan
eli priyatna laidan
 
Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)
eli priyatna laidan
 
Soal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didikSoal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didik
eli priyatna laidan
 
Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017
eli priyatna laidan
 
Rekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogiRekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogi
eli priyatna laidan
 
Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2
eli priyatna laidan
 
Bank soal ppg
Bank soal ppgBank soal ppg
Bank soal ppg
eli priyatna laidan
 
Soal cpns-paket-17
Soal cpns-paket-17Soal cpns-paket-17
Soal cpns-paket-17
eli priyatna laidan
 
Soal cpns-paket-14
Soal cpns-paket-14Soal cpns-paket-14
Soal cpns-paket-14
eli priyatna laidan
 
Soal cpns-paket-13
Soal cpns-paket-13Soal cpns-paket-13
Soal cpns-paket-13
eli priyatna laidan
 
Soal cpns-paket-12
Soal cpns-paket-12Soal cpns-paket-12
Soal cpns-paket-12
eli priyatna laidan
 

More from eli priyatna laidan (20)

Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2Up ppg daljab latihan soal-pgsd-set-2
Up ppg daljab latihan soal-pgsd-set-2
 
Soal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.netSoal utn plus kunci gurusd.net
Soal utn plus kunci gurusd.net
 
Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5
 
Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4
 
Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3
 
Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2
 
Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1
 
Soal up akmal
Soal up akmalSoal up akmal
Soal up akmal
 
Soal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannyaSoal tkp serta kunci jawabannya
Soal tkp serta kunci jawabannya
 
Soal tes wawasan kebangsaan
Soal tes wawasan kebangsaanSoal tes wawasan kebangsaan
Soal tes wawasan kebangsaan
 
Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)Soal sospri ukm ulang i 2017 1 (1)
Soal sospri ukm ulang i 2017 1 (1)
 
Soal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didikSoal perkembangan kognitif peserta didik
Soal perkembangan kognitif peserta didik
 
Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017
 
Rekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogiRekap soal kompetensi pedagogi
Rekap soal kompetensi pedagogi
 
Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2Bank soal pedagogik terbaru 175 soal-v2
Bank soal pedagogik terbaru 175 soal-v2
 
Bank soal ppg
Bank soal ppgBank soal ppg
Bank soal ppg
 
Soal cpns-paket-17
Soal cpns-paket-17Soal cpns-paket-17
Soal cpns-paket-17
 
Soal cpns-paket-14
Soal cpns-paket-14Soal cpns-paket-14
Soal cpns-paket-14
 
Soal cpns-paket-13
Soal cpns-paket-13Soal cpns-paket-13
Soal cpns-paket-13
 
Soal cpns-paket-12
Soal cpns-paket-12Soal cpns-paket-12
Soal cpns-paket-12
 

Recently uploaded

FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 

Sol74

  • 1. Solution Week 74 (2/9/04) Comparing the numbers (a) Let your number be n. We will average over the equally likely values of n (excluding n = 1) at the end of the calculation. For convenience, let p ≡ (n − 1)/(N − 1) be the probability that a person you ask has a number smaller than yours. And let 1− p ≡ (N − n)/(N − 1) be the probability that a person you ask has a number larger than yours. Let An be the average number of people you have to ask in order to find a number smaller than yours, given that you have the number n. An may be calculated as follows. There is a probability p that it takes only one check to find a smaller number. There is a probability 1 − p that the first person you ask has a larger number. From this point on, you have to ask (by definition) an average of An people in order to find a smaller number. In this scenario, you end up asking a total of An + 1 people. Therefore, it must be true that An = p · 1 + (1 − p)(An + 1). (1) This gives An = 1 p = N − 1 n − 1 . (2) All values of n, from 2 to N, are equally likely, so we simply need to find the average of the numbers An, for n ranging from 2 to N. This average is A = 1 N − 1 N n=2 N − 1 n − 1 = 1 + 1 2 + 1 3 + · · · + 1 N − 1 . (3) This expression for A is the exact answer to the problem. To obtain an ap- proximate answer, note that the sum of the reciprocals of the numbers from 1 to M equals ln M + γ, where γ ≡ 0.577... is Euler’s constant. So if N is large, you have to check about ln N + γ other numbers before you find one that is smaller than yours. (b) Let your number be n. As in part (a), we will average over the equally likely values of n (excluding n = 1) at the end of the calculation. Let BN n be the average number of people you have to ask in order to find a smaller number, given that you have the number n among the N numbers. BN n may be calculated as follows. There is a probability (n − 1)/(N − 1) that it takes only one check to find a smaller number. 1
  • 2. There is a probability (N − n)/(N − 1) that the first person you ask has a larger number. From this point on, you have to ask (by definition) an average of BN−1 n people in order to find a smaller number. In this scenario, you end up asking a total of BN−1 n + 1 people. Therefore, it must be true that BN n = n − 1 N − 1 · 1 + N − n N − 1 BN−1 n + 1 = 1 + N − n N − 1 BN−1 n . (4) Using the fact that BN n = 1 when N = n, we can use eq. (4) to inductively increase N (while holding n constant) to obtain BN n for N > n. If you work out a few cases, you will quickly see that BN n = N/n. We can then easily check this by induction on N; it is true for N = n, so we simply need to verify in eq. (4)) that N n = 1 + N − n N − 1 N − 1 n , (5) which is indeed true. Therefore, BN n = N n . (6) As in part (a), all values of n, from 2 to N, are equally likely, so we simply need to find the average of the numbers BN n = N/n, for n ranging from 2 to N. This average is B = 1 N − 1 N n=2 N n = N N − 1 1 2 + 1 3 + · · · + 1 N . (7) This expression for B is the exact answer to the problem. If N is large, then the result is approximately equal to ln N + γ − 1, due to the first term of “1” missing in the parentheses. This result is one person fewer than the result in part (a). So a good memory saves you, on average, one query. Remark: The continuum version of this problem (in which case the quality of your memory in irrelevant, to leading order) is the following. Someone gives you a random number between 0 and 1, with a flat distribution. Pick successive random numbers until you finally obtain one that is smaller. How many numbers, on average, will you have to pick? This is simply the original problem, in the limit N → ∞. So the answer should be ln(∞), which is infinite. And indeed, from the reasoning in part (a), if you start with the number x, then the average number of picks you need to make to find a smaller number is 1/x, from eq. (2). Averaging these waiting times of 1/x, over the equally 2
  • 3. likely values of x, gives an average waiting time of1 1 0 dx x = ∞. (8) We can get around this infinite answer by changing the probability distribution on the unit interval. For example, let the probability distribution be proportional to 1/ √ x. Then the probability of someone having a number smaller than x is proportional to x 0 dx/ √ x ∝ √ x. Therefore, if you start with the number x, then the average number of picks you need to make to find a smaller number is proportional to 1/ √ x, from eq. (2). Averaging these waiting times of 1/ √ x, over the equally likely values of x, gives an average waiting time proportional to 1 0 1 √ x dx = ∞. (9) In general, if the probability distribution is proportional to xr , then r = 0 (that is, a flat distribution) is the cutoff case between having a finite or infinite expectation value for the number of necessary picks. 1 However, if you play this game a few times, you will quickly discover that the average number of necessary picks is not infinite. If you find this unsettling, you are encouraged to look at Problem of the Week 6. 3