{"id":687,"date":"2018-02-02T11:09:19","date_gmt":"2018-02-02T19:09:19","guid":{"rendered":"http:\/\/puzzlezapper.com\/blog\/?p=687"},"modified":"2018-02-02T11:09:19","modified_gmt":"2018-02-02T19:09:19","slug":"vexed-by-convexity","status":"publish","type":"post","link":"https:\/\/puzzlezapper.com\/blog\/2018\/02\/vexed-by-convexity\/","title":{"rendered":"Vexed by Convexity, part one"},"content":{"rendered":"<p>Last September I came across <a href=\"https:\/\/twitter.com\/panlepan\/status\/909460153686200320\">a conversation<\/a> on Twitter about how convex the 12 pentominoes are. At first glance, this might seem like an uninteresting problem. Clearly, the I pentomino is convex, and the rest aren&#8217;t. (Recall that a shape is convex if, for any pair of points inside the shape, the segment connecting them is entirely within the shape. Otherwise, we call it concave.)<\/p>\n<p>But the problem wasn&#8217;t <em>whether<\/em> the pentominoes are convex, but <em>how<\/em> convex they are. In order to answer that, we&#8217;d like a measure that gives 1 for a shape that is convex, and ranges between 0 and 1 for concave shapes, getting higher as they more closely resemble some convex shape.<\/p>\n<p>There are several measures that work. (For a discussion of convexity measures, see <a href=\"http:\/\/citeseerx.ist.psu.edu\/viewdoc\/summary?doi=10.1.1.11.9307\">this paper<\/a> by J. Zunic and P. Rosen.) One strategy for measuring convexity is to consider a shape in relation to its <em>convex hull<\/em>. A shape&#8217;s convex hull is the smallest convex shape it is contained in. Naturally, a convex shape is its own convex hull. The ratio of the area of a shape to that of its convex hull makes a reasonable measure of convexity. Or instead of areas, we could instead look at perimeters. The perimeter of a shape can never be less than that of its convex hull. So the ratio of a shape&#8217;s convex hull&#8217;s perimeter to that of the shape itself can also be used as a convexity measure. <\/p>\n<p>Another method of measuring convexity is the probability that the segment between two points in a shape chosen at random lies entirely within the shape. Finding exact values for this measure can involve some tricky math, which Dan Piponi <a href=\"https:\/\/github.com\/dpiponi\/polyomino\/blob\/master\/convexity.pdf\">worked through for the P pentomino<\/a>. However, calculating an estimate by randomly picking a large number of pairs of points is also an option. And, as it happens, Rod Bogart <a href=\"https:\/\/twitter.com\/RodBogart\/status\/910521233837629440\">did exactly that<\/a>.<\/p>\n<p>The following table shows the convexities of the pentominoes according to each of these three measures.<\/p>\n<table>\n<tr>\n<td>Pentomino, shown with convex hull<\/td>\n<td>Area \/ Convex Hull Area<\/td>\n<td>Convex Hull Perimeter \/ Perimeter<\/td>\n<td>Probabilistic method<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-f-ch.png\" alt=\"\" width=\"44\" height=\"44\" class=\"aligncenter size-full wp-image-695\" \/><\/td>\n<td>.7143<\/td>\n<td>.8387<\/td>\n<td>.786<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-i-ch.png\" alt=\"\" width=\"73\" height=\"15\" class=\"aligncenter size-full wp-image-696\" \/><\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-l-ch.png\" alt=\"\" width=\"59\" height=\"30\" class=\"aligncenter size-full wp-image-697\" \/><\/td>\n<td>.7692<\/td>\n<td>.9302<\/td>\n<td>.822<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-n-ch.png\" alt=\"\" width=\"59\" height=\"30\" class=\"aligncenter size-full wp-image-699\" \/><\/td>\n<td>.7692<\/td>\n<td>.8875<\/td>\n<td>.778<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-p-ch.png\" alt=\"\" width=\"44\" height=\"30\" class=\"aligncenter size-full wp-image-698\" \/><\/td>\n<td>.9091<\/td>\n<td>.9414<\/td>\n<td>.946<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-t-ch.png\" alt=\"\" width=\"44\" height=\"44\" class=\"aligncenter size-full wp-image-700\" \/><\/td>\n<td>.7143<\/td>\n<td>.8726<\/td>\n<td>.788<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-u-ch.png\" alt=\"\" width=\"44\" height=\"30\" class=\"aligncenter size-full wp-image-701\" \/><\/td>\n<td>.8333<\/td>\n<td>.8333<\/td>\n<td>.708<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-v-ch.png\" alt=\"\" width=\"44\" height=\"44\" class=\"aligncenter size-full wp-image-702\" \/><\/td>\n<td>.7143<\/td>\n<td>.9024<\/td>\n<td>.748<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-w-ch.png\" alt=\"\" width=\"44\" height=\"44\" class=\"aligncenter size-full wp-image-703\" \/><\/td>\n<td>.7692<\/td>\n<td>.8536<\/td>\n<td>.772<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-x-ch.png\" alt=\"\" width=\"44\" height=\"44\" class=\"aligncenter size-full wp-image-704\" \/><\/td>\n<td>.7143<\/td>\n<td>.8047<\/td>\n<td>.840<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-y-ch.png\" alt=\"\" width=\"59\" height=\"30\" class=\"aligncenter size-full wp-image-705\" \/><\/td>\n<td>.7692<\/td>\n<td>.8875<\/td>\n<td>.854<\/td>\n<\/tr>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puzzlezapper.com\/blog\/wp-content\/uploads\/2018\/01\/5om-z-ch.png\" alt=\"\" width=\"44\" height=\"44\" class=\"aligncenter size-full wp-image-706\" \/><\/td>\n<td>.7143<\/td>\n<td>.8726<\/td>\n<td>.720<\/td>\n<\/tr>\n<\/table>\n<p><em>Convex hull area method data by Vincent Pantaloni. Convex hull perimeter method data mine. Probabilistic method data by Ron Bogart.<\/em><\/p>\n<p>Even though these shapes are pretty simple, the data above shows that the different convexity measures treat them differently in interesting ways. Notice that the X pentomino, for example, is tied for the least convex pentomino by the convex hull area method, but is the fourth <em>most<\/em> convex by the probabilistic method.<\/p>\n<p>I hope I&#8217;ve shown that convexity, as applied to polyominoes, is more interesting than it might have seemed! In part two, I&#8217;ll look at how we can use these convexity measures to make some new puzzles.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last September I came across a conversation on Twitter about how convex the 12 pentominoes are. At first glance, this might seem like an uninteresting problem. Clearly, the I pentomino is convex, and the rest aren&#8217;t. (Recall that a shape is convex if, for any pair of points inside the shape, the segment connecting them &hellip; <a href=\"https:\/\/puzzlezapper.com\/blog\/2018\/02\/vexed-by-convexity\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Vexed by Convexity, part one<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[194,10,33],"class_list":["post-687","post","type-post","status-publish","format-standard","hentry","category-recreational-mathematics","tag-convexity","tag-pentominoes","tag-tetrominoes"],"_links":{"self":[{"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/posts\/687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/comments?post=687"}],"version-history":[{"count":14,"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/posts\/687\/revisions"}],"predecessor-version":[{"id":718,"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/posts\/687\/revisions\/718"}],"wp:attachment":[{"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/media?parent=687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/categories?post=687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puzzlezapper.com\/blog\/wp-json\/wp\/v2\/tags?post=687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}