SlideShare a Scribd company logo
1 of 1
Download to read offline
Solution
Week 82 (4/5/04)
Standing in a line
First solution: Let TN be the expected number of people who are able to make
the given statement. If we consider everyone except the last person in line, then
this group of N − 1 people has by definition TN−1 people who are able to make the
statement. Let us now add on the last person. There is a 1/N chance that she is
the tallest, in which case she is able to make the statement. Otherwise she cannot.
Therefore, we have
TN = TN−1 +
1
N
. (1)
Starting with T1 = 1, we therefore inductively find
TN = 1 +
1
2
+
1
3
+ · · · +
1
N
. (2)
For large N, this goes like ln N, which grows very slowly with N.
Second solution: Let TN be the desired average. Consider the location of the
tallest person. If he is the last person in the line (which occurs with probability
1/N), then the problem reduces to that for the N − 1 people in front of him. So in
this case, we can expect 1+TN−1 people who are able to make the given statement.
If the tallest person is the second to last person in the line (which occurs with
probability 1/N), then the problem reduces to that for the N − 2 people in front of
him (because the person behind him is not able to make the statement). So in this
case, we can expect 1 + TN−2 people who are able to make the given statement.
Continuing along these lines, and adding up all N possibilities for the location
of the tallest person, we find
TN =
1
N
(1 + TN−1) + (1 + TN−2) + · · · + (1 + T1) + (1 + T0)
=⇒ NTN = N + TN−1 + TN−2 + · · · + T1. (3)
Writing down the analogous equation for N − 1,
(N − 1)TN−1 = (N − 1) + TN−2 + TN−2 + · · · + T1, (4)
and then subtracting this from eq. (3), yields
TN = TN−1 +
1
N
, (5)
which agrees with the first solution.
1

More Related Content

Viewers also liked (18)

Sol79
Sol79Sol79
Sol79
 
99k House Competition (bpm Entry 08)
99k House Competition (bpm Entry 08)99k House Competition (bpm Entry 08)
99k House Competition (bpm Entry 08)
 
Sol78
Sol78Sol78
Sol78
 
Sol70
Sol70Sol70
Sol70
 
Sol87
Sol87Sol87
Sol87
 
Sol64
Sol64Sol64
Sol64
 
Camila
CamilaCamila
Camila
 
Sol59
Sol59Sol59
Sol59
 
Sol55
Sol55Sol55
Sol55
 
Sol63
Sol63Sol63
Sol63
 
Información
InformaciónInformación
Información
 
Sol83
Sol83Sol83
Sol83
 
Sol73
Sol73Sol73
Sol73
 
Sol86
Sol86Sol86
Sol86
 
Sol60
Sol60Sol60
Sol60
 
HOLA
HOLA HOLA
HOLA
 
Sol68
Sol68Sol68
Sol68
 
Sol62
Sol62Sol62
Sol62
 

Similar to Sol82

A Solution Manual And Notes For Kalman Filtering Theory And Practice Using ...
A Solution Manual And Notes For  Kalman Filtering  Theory And Practice Using ...A Solution Manual And Notes For  Kalman Filtering  Theory And Practice Using ...
A Solution Manual And Notes For Kalman Filtering Theory And Practice Using ...Daniel Wachtel
 
Recurrent problems: TOH, Pizza Cutting and Josephus Problems
Recurrent problems: TOH, Pizza Cutting and Josephus ProblemsRecurrent problems: TOH, Pizza Cutting and Josephus Problems
Recurrent problems: TOH, Pizza Cutting and Josephus ProblemsMenglinLiu1
 
recurence solutions
recurence solutionsrecurence solutions
recurence solutionssoumya8396
 
Algorithm Design and Complexity - Course 3
Algorithm Design and Complexity - Course 3Algorithm Design and Complexity - Course 3
Algorithm Design and Complexity - Course 3Traian Rebedea
 

Similar to Sol82 (7)

A Solution Manual And Notes For Kalman Filtering Theory And Practice Using ...
A Solution Manual And Notes For  Kalman Filtering  Theory And Practice Using ...A Solution Manual And Notes For  Kalman Filtering  Theory And Practice Using ...
A Solution Manual And Notes For Kalman Filtering Theory And Practice Using ...
 
Recurrent problems: TOH, Pizza Cutting and Josephus Problems
Recurrent problems: TOH, Pizza Cutting and Josephus ProblemsRecurrent problems: TOH, Pizza Cutting and Josephus Problems
Recurrent problems: TOH, Pizza Cutting and Josephus Problems
 
mathstat.pdf
mathstat.pdfmathstat.pdf
mathstat.pdf
 
Sol38
Sol38Sol38
Sol38
 
Sol38
Sol38Sol38
Sol38
 
recurence solutions
recurence solutionsrecurence solutions
recurence solutions
 
Algorithm Design and Complexity - Course 3
Algorithm Design and Complexity - Course 3Algorithm Design and Complexity - Course 3
Algorithm Design and Complexity - Course 3
 

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-2eli priyatna laidan
 
Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5Soal up sosial kepribadian pendidik 5
Soal up sosial kepribadian pendidik 5eli priyatna laidan
 
Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4Soal up sosial kepribadian pendidik 4
Soal up sosial kepribadian pendidik 4eli priyatna laidan
 
Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3Soal up sosial kepribadian pendidik 3
Soal up sosial kepribadian pendidik 3eli priyatna laidan
 
Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2Soal up sosial kepribadian pendidik 2
Soal up sosial kepribadian pendidik 2eli priyatna laidan
 
Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1Soal up sosial kepribadian pendidik 1
Soal up sosial kepribadian pendidik 1eli 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 didikeli priyatna laidan
 
Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017Soal latihan utn pedagogik plpg 2017
Soal latihan utn pedagogik plpg 2017eli 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-v2eli 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
 

Sol82

  • 1. Solution Week 82 (4/5/04) Standing in a line First solution: Let TN be the expected number of people who are able to make the given statement. If we consider everyone except the last person in line, then this group of N − 1 people has by definition TN−1 people who are able to make the statement. Let us now add on the last person. There is a 1/N chance that she is the tallest, in which case she is able to make the statement. Otherwise she cannot. Therefore, we have TN = TN−1 + 1 N . (1) Starting with T1 = 1, we therefore inductively find TN = 1 + 1 2 + 1 3 + · · · + 1 N . (2) For large N, this goes like ln N, which grows very slowly with N. Second solution: Let TN be the desired average. Consider the location of the tallest person. If he is the last person in the line (which occurs with probability 1/N), then the problem reduces to that for the N − 1 people in front of him. So in this case, we can expect 1+TN−1 people who are able to make the given statement. If the tallest person is the second to last person in the line (which occurs with probability 1/N), then the problem reduces to that for the N − 2 people in front of him (because the person behind him is not able to make the statement). So in this case, we can expect 1 + TN−2 people who are able to make the given statement. Continuing along these lines, and adding up all N possibilities for the location of the tallest person, we find TN = 1 N (1 + TN−1) + (1 + TN−2) + · · · + (1 + T1) + (1 + T0) =⇒ NTN = N + TN−1 + TN−2 + · · · + T1. (3) Writing down the analogous equation for N − 1, (N − 1)TN−1 = (N − 1) + TN−2 + TN−2 + · · · + T1, (4) and then subtracting this from eq. (3), yields TN = TN−1 + 1 N , (5) which agrees with the first solution. 1