Skip to content

Commit 52ce8d6

Browse files
committed
Built site for gh-pages
1 parent ca07739 commit 52ce8d6

7 files changed

Lines changed: 161 additions & 7 deletions

File tree

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a83d61a5
1+
06e003f0

archive.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ <h5 class="no-anchor card-title listing-title">
779779
</div>
780780
</div></a>
781781
</div>
782-
<div class="g-col-1" data-index="12" data-categories="cHl0aG9uJTJDYm93bGluZw==" data-listing-date-sort="1700982000000" data-listing-file-modified-sort="1766875896868" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="13" data-listing-word-count-sort="2533">
782+
<div class="g-col-1" data-index="12" data-categories="cHl0aG9uJTJDYm93bGluZw==" data-listing-date-sort="1700982000000" data-listing-file-modified-sort="1775178113358" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="15" data-listing-word-count-sort="2871">
783783
<a href="./posts/impossible_bowling/index.html" class="quarto-grid-link">
784784
<div class="quarto-grid-item card h-100 card-left">
785785
<p class="card-img-top"><img src="posts/impossible_bowling/index_files/figure-html/5fe67f81-f378-4258-a005-1914e099b559-1-31ff655b-8ba9-40cd-a9af-7ff1538b1345.png" style="height: 150px;" class="thumbnail-image card-img"/></p>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ <h3 class="no-anchor listing-title">
726726
</a>
727727
</div>
728728
</div>
729-
<div class="quarto-post image-right" data-index="12" data-categories="cHl0aG9uJTJDYm93bGluZw==" data-listing-date-sort="1700982000000" data-listing-file-modified-sort="1766875896868" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="13" data-listing-word-count-sort="2533">
729+
<div class="quarto-post image-right" data-index="12" data-categories="cHl0aG9uJTJDYm93bGluZw==" data-listing-date-sort="1700982000000" data-listing-file-modified-sort="1775178113358" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="15" data-listing-word-count-sort="2871">
730730
<div class="thumbnail"><a href="./posts/impossible_bowling/index.html" class="no-external">
731731

732732
<p class="card-img-top"><img data-src="posts/impossible_bowling/index_files/figure-html/5fe67f81-f378-4258-a005-1914e099b559-1-31ff655b-8ba9-40cd-a9af-7ff1538b1345.png" class="thumbnail-image card-img"/></p>
@@ -751,7 +751,7 @@ <h3 class="no-anchor listing-title">
751751
<div class="listing-author">
752752
Allan Farrell
753753
</div>
754-
<div class="listing-reading-time">13 min</div>
754+
<div class="listing-reading-time">15 min</div>
755755
</a>
756756
</div>
757757
</div>

index.xml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23309,6 +23309,82 @@ Figure&nbsp;1: The points value of each pin in five-pin bowling.
2330923309
<p>While hanging out at the lanes a few obvious impossible scores got thrown out: a <em>1</em>, obviously, but also a <em>449</em> – there’s no way to throw a 14 with the last ball in the tenth frame. But the question still lingered: are there any other gaps? It was not immediately obvious, to my bowling team, how you would figure that out without checking.</p>
2331023310
<p>Maybe we can brute-force this and try every conceivable bowling game? However there are <em>a lot</em> of possible bowling games. As a first pass, there are thirty balls thrown in a game and each ball has <em>up to</em> fourteen possible pinfall scores (0 through 15 excluding 1 and 14). This would give <em>14<sup>30</sup></em> possible bowling games. Even if it took a single nanosecond to evaluate each game that would take longer than the current age of the universe to work through.</p>
2331123311
<p>But that’s not a great upper bound, it doesn’t take into account the rules of bowling: you can only knock down up to five pins in any given frame, for example if the first ball scores a <em>13</em> then the second ball doesn’t get to choose from fourteen possibilities, it gets to chose from two: 0 and 2. Still, it is going to be a large number. The vast majority of those games are going to be completely redundant, since we are only looking for scores from 2 to 450.</p>
23312+
<div class="callout callout-style-default callout-note callout-titled">
23313+
<div class="callout-header d-flex align-content-center">
23314+
<div class="callout-icon-container">
23315+
<i class="callout-icon"></i>
23316+
</div>
23317+
<div class="callout-title-container flex-fill">
23318+
Note
23319+
</div>
23320+
</div>
23321+
<div class="callout-body-container callout-body">
23322+
<p>I was thinking about this some more and there is a different way of looking at this that gives a better estimate for the number of possible games. First let’s consider a single frame (within the first 9 frames). We can count the number of ways to knock down any subset of pins (including all and none):</p>
23323+
<p><img src="https://latex.codecogs.com/png.latex?%0A%5Cbinom%7B5%7D%7B0%7D%20+%20%5Cbinom%7B5%7D%7B1%7D%20+%20%5Cbinom%7B5%7D%7B2%7D%20+%20%5Cbinom%7B5%7D%7B3%7D%20+%20%5Cbinom%7B5%7D%7B4%7D%20+%20%5Cbinom%7B5%7D%7B5%7D%20=%2032%0A"></p>
23324+
<p>For a single frame there are three possibilities:</p>
23325+
<table class="caption-top table">
23326+
<thead>
23327+
<tr class="header">
23328+
<th style="text-align: left;">Frame</th>
23329+
<th style="text-align: left;">Number of Possibilities</th>
23330+
<th style="text-align: left;">description</th>
23331+
</tr>
23332+
</thead>
23333+
<tbody>
23334+
<tr class="odd">
23335+
<td style="text-align: left;">? ? ?</td>
23336+
<td style="text-align: left;">32</td>
23337+
<td style="text-align: left;">All three balls are thrown</td>
23338+
</tr>
23339+
<tr class="even">
23340+
<td style="text-align: left;">X</td>
23341+
<td style="text-align: left;">1</td>
23342+
<td style="text-align: left;">A single ball is thrown, a strike</td>
23343+
</tr>
23344+
<tr class="odd">
23345+
<td style="text-align: left;">? \</td>
23346+
<td style="text-align: left;">31</td>
23347+
<td style="text-align: left;">Two balls are thrown, a spare</td>
23348+
</tr>
23349+
</tbody>
23350+
</table>
23351+
<p>So there are 64 possible ways of bowling a single frame of bowling <em>that is not the tenth frame</em>.</p>
23352+
<p>The tenth frame has some extra rules, so lets go through it:</p>
23353+
<table class="caption-top table">
23354+
<thead>
23355+
<tr class="header">
23356+
<th style="text-align: left;">Frame</th>
23357+
<th style="text-align: left;">Number of Possibilities</th>
23358+
<th style="text-align: left;">description</th>
23359+
</tr>
23360+
</thead>
23361+
<tbody>
23362+
<tr class="odd">
23363+
<td style="text-align: left;">? ? ?</td>
23364+
<td style="text-align: left;">32</td>
23365+
<td style="text-align: left;">Anything but a strike or spare in the first two balls</td>
23366+
</tr>
23367+
<tr class="even">
23368+
<td style="text-align: left;">X ? ?</td>
23369+
<td style="text-align: left;">32</td>
23370+
<td style="text-align: left;">First ball a strike, two non strikes</td>
23371+
</tr>
23372+
<tr class="odd">
23373+
<td style="text-align: left;">X X ?</td>
23374+
<td style="text-align: left;">32</td>
23375+
<td style="text-align: left;">Two strikes, one anything</td>
23376+
</tr>
23377+
<tr class="even">
23378+
<td style="text-align: left;">? \ ?</td>
23379+
<td style="text-align: left;">992</td>
23380+
<td style="text-align: left;">A spare (31 options) and anything (32)</td>
23381+
</tr>
23382+
</tbody>
23383+
</table>
23384+
<p>Which gives 1088 possible ways of bowling the 10th frame.</p>
23385+
<p>So this gives a total count of possible 5 pin bowling games of <img src="https://latex.codecogs.com/png.latex?1088%20%5Ctimes%2064%5E9"> which is about <img src="https://latex.codecogs.com/png.latex?2%20%5Ctimes%2010%5E%7B19%7D"></p>
23386+
</div>
23387+
</div>
2331223388
</section>
2331323389
<section id="nothing-fancy" class="level2 page-columns page-full">
2331423390
<h2 class="anchored" data-anchor-id="nothing-fancy">Nothing fancy</h2>

posts/impossible_bowling/index.html

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,84 @@ <h2 class="anchored" data-anchor-id="trying-everything">Trying everything</h2>
479479
<p>While hanging out at the lanes a few obvious impossible scores got thrown out: a <em>1</em>, obviously, but also a <em>449</em> – there’s no way to throw a 14 with the last ball in the tenth frame. But the question still lingered: are there any other gaps? It was not immediately obvious, to my bowling team, how you would figure that out without checking.</p>
480480
<p>Maybe we can brute-force this and try every conceivable bowling game? However there are <em>a lot</em> of possible bowling games. As a first pass, there are thirty balls thrown in a game and each ball has <em>up to</em> fourteen possible pinfall scores (0 through 15 excluding 1 and 14). This would give <em>14<sup>30</sup></em> possible bowling games. Even if it took a single nanosecond to evaluate each game that would take longer than the current age of the universe to work through.</p>
481481
<p>But that’s not a great upper bound, it doesn’t take into account the rules of bowling: you can only knock down up to five pins in any given frame, for example if the first ball scores a <em>13</em> then the second ball doesn’t get to choose from fourteen possibilities, it gets to chose from two: 0 and 2. Still, it is going to be a large number. The vast majority of those games are going to be completely redundant, since we are only looking for scores from 2 to 450.</p>
482+
<div class="callout callout-style-default callout-note callout-titled">
483+
<div class="callout-header d-flex align-content-center">
484+
<div class="callout-icon-container">
485+
<i class="callout-icon"></i>
486+
</div>
487+
<div class="callout-title-container flex-fill">
488+
Note
489+
</div>
490+
</div>
491+
<div class="callout-body-container callout-body">
492+
<p>I was thinking about this some more and there is a different way of looking at this that gives a better estimate for the number of possible games. First let’s consider a single frame (within the first 9 frames). We can count the number of ways to knock down any subset of pins (including all and none):</p>
493+
<p><span class="math display">\[
494+
\binom{5}{0} + \binom{5}{1} + \binom{5}{2} + \binom{5}{3} + \binom{5}{4} + \binom{5}{5} = 32
495+
\]</span></p>
496+
<p>For a single frame there are three possibilities:</p>
497+
<table class="caption-top table">
498+
<thead>
499+
<tr class="header">
500+
<th style="text-align: left;">Frame</th>
501+
<th style="text-align: left;">Number of Possibilities</th>
502+
<th style="text-align: left;">description</th>
503+
</tr>
504+
</thead>
505+
<tbody>
506+
<tr class="odd">
507+
<td style="text-align: left;">? ? ?</td>
508+
<td style="text-align: left;">32</td>
509+
<td style="text-align: left;">All three balls are thrown</td>
510+
</tr>
511+
<tr class="even">
512+
<td style="text-align: left;">X</td>
513+
<td style="text-align: left;">1</td>
514+
<td style="text-align: left;">A single ball is thrown, a strike</td>
515+
</tr>
516+
<tr class="odd">
517+
<td style="text-align: left;">? \</td>
518+
<td style="text-align: left;">31</td>
519+
<td style="text-align: left;">Two balls are thrown, a spare</td>
520+
</tr>
521+
</tbody>
522+
</table>
523+
<p>So there are 64 possible ways of bowling a single frame of bowling <em>that is not the tenth frame</em>.</p>
524+
<p>The tenth frame has some extra rules, so lets go through it:</p>
525+
<table class="caption-top table">
526+
<thead>
527+
<tr class="header">
528+
<th style="text-align: left;">Frame</th>
529+
<th style="text-align: left;">Number of Possibilities</th>
530+
<th style="text-align: left;">description</th>
531+
</tr>
532+
</thead>
533+
<tbody>
534+
<tr class="odd">
535+
<td style="text-align: left;">? ? ?</td>
536+
<td style="text-align: left;">32</td>
537+
<td style="text-align: left;">Anything but a strike or spare in the first two balls</td>
538+
</tr>
539+
<tr class="even">
540+
<td style="text-align: left;">X ? ?</td>
541+
<td style="text-align: left;">32</td>
542+
<td style="text-align: left;">First ball a strike, two non strikes</td>
543+
</tr>
544+
<tr class="odd">
545+
<td style="text-align: left;">X X ?</td>
546+
<td style="text-align: left;">32</td>
547+
<td style="text-align: left;">Two strikes, one anything</td>
548+
</tr>
549+
<tr class="even">
550+
<td style="text-align: left;">? \ ?</td>
551+
<td style="text-align: left;">992</td>
552+
<td style="text-align: left;">A spare (31 options) and anything (32)</td>
553+
</tr>
554+
</tbody>
555+
</table>
556+
<p>Which gives 1088 possible ways of bowling the 10th frame.</p>
557+
<p>So this gives a total count of possible 5 pin bowling games of <span class="math inline">\(1088 \times 64^9\)</span> which is about <span class="math inline">\(2 \times 10^{19}\)</span></p>
558+
</div>
559+
</div>
482560
</section>
483561
<section id="nothing-fancy" class="level2 page-columns page-full">
484562
<h2 class="anchored" data-anchor-id="nothing-fancy">Nothing fancy</h2>

0 commit comments

Comments
 (0)