{"id":95,"date":"2023-08-01T11:03:58","date_gmt":"2023-08-01T09:03:58","guid":{"rendered":"https:\/\/actilud.com\/info\/en\/?p=95"},"modified":"2025-03-29T11:57:01","modified_gmt":"2025-03-29T10:57:01","slug":"alternative-instruction","status":"publish","type":"post","link":"https:\/\/actilud.com\/info\/en\/alternative-instruction\/","title":{"rendered":"The ALTERNATIVE instruction"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-723 size-full alignleft\" src=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/instr_alternative.png\" alt=\"\" width=\"100\" height=\"100\" data-src=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/instr_alternative.png\" \/>Creates an alternative regarding a given topic. The alternative can take place in a single grid or across two grids.<\/p>\n<p><em>When the alternative concerns a single grid, there is no need to use Booleans: false<\/em> signs are sufficient.<br \/>\nWhen it concerns several grids, Booleans must be used with the grid of alternatives.<\/p>\n<p>The alternatives translate into plain language in two ways:<\/p>\n<ul>\n<li>use of the expression <em>either, or&#8230;<\/em><\/li>\n<li>use of the conjunction <em>or,<\/em> implied the <em>\u201cexclusive\u201d or<\/em> of mathematicians (it is one or the other, but not both!)<\/li>\n<\/ul>\n<p>Some alternatives don&#8217;t make much sense and are therefore eliminated from Actilud&#8217;s integrams. For example, in the sand yacht puzzle, we could imagine: <em>&#8220;either Hugo has a red chariot, or the 16-year-old plays for 50 minutes.&#8221;<\/em> We realize that, in real life, no one would dare to make such an alternative with such disparate elements, even if it is mathematically correct!<\/p>\n<p>That&#8217;s why we need a common element, shared by the same subject; despite everything, it can still be a bit &#8220;far-fetched&#8221; but at least there is a certain coherence: <em>Djamel has a blue kite or plays for 30 minutes.<\/em><\/p>\n<blockquote>\n<h4>Kite Riddle<\/h4>\n<p>Either Djamel plays for 30 minutes, or he has a blue kite.<br \/>\nMelody&#8217;s kite is red or orange.<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-863 size-full aligncenter\" src=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18.png\" sizes=\"auto, (min-width: 960px) 75vw, 100vw\" srcset=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18.png 617w, https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18-300x300.png 300w, https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18-150x150.png 150w, https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18-482x480.png 482w\" alt=\"\" width=\"617\" height=\"615\" data-src=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18.png\" data-srcset=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18.png 617w, https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18-300x300.png 300w, https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18-150x150.png 150w, https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme18-482x480.png 482w\" data-sizes=\"(min-width: 960px) 75vw, 100vw\" \/><\/p>\n<p><strong>Djamel:<\/strong> His alternative involves two grids. So we code it with two Booleans, which are reported in the <em>Alternatives grid, which<\/em> tells the solver that one of the two is true. They are not both true, or both false. We deduce that the person who plays for 30 minutes does not have a blue kite.<\/p>\n<p><strong>Melody:<\/strong> its alternative is in the same grid. So we code it with false signs.<\/p>\n<h1>Designer<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-865 size-full\" src=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme19.png\" sizes=\"auto, (min-width: 960px) 75vw, 100vw\" srcset=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme19.png 314w, https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme19-300x194.png 300w\" alt=\"\" width=\"314\" height=\"203\" data-src=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme19.png\" data-srcset=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme19.png 314w, https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/integramme19-300x194.png 300w\" data-sizes=\"auto, (min-width: 960px) 75vw, 100vw\" \/><\/p>\n<p>Create an alternative that covers a single grid or two grids.<\/p>\n<h3>Possible distribution:<\/h3>\n<p>There are three possibilities: on one grid, on two grids with booleans, or random choice: it&#8217;s the program that decides.<\/p>\n<h3>Subject Header:<\/h3>\n<p>You can impose the subject header or leave the choice to chance.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-688 alignleft\" src=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/maximum.png\" alt=\"\" width=\"35\" height=\"35\" data-src=\"https:\/\/actilud.com\/info\/wp-content\/uploads\/2023\/08\/maximum.png\" \/><\/p>\n<p>Maximum number of executions of this instruction.<\/p>\n<h2>Generated formal proposals<\/h2>\n<blockquote><p>a: b \u22bb c<\/p>\n<p>Djamel: 30mn \u22bb blue<br \/>\nMelody: red \u22bb orange<\/p><\/blockquote>\n<h6>either a \u2229 b is true, or a \u2229 c is true.<br \/>\nThe sign \u22bb is the <em>exclusive or.<\/em><\/h6>\n<h1>Failure to execute instructions<\/h1>\n<p><em>Sometimes, some instructions may not appear in your statement even though you have programmed them. Alternative<\/em> instructions are particularly sensitive to disappearance.<\/p>\n<p>In fact, they&#8217;re all implemented if possible. But then, once all the instructions are generated, a <strong>simplification module<\/strong> takes over and removes everything that&#8217;s unnecessary. Often, unfortunately, the alternatives pay the price.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creates an alternative regarding a given topic. The alternative can take place in a single grid or across two grids. When the alternative concerns a single grid, there is no need to use Booleans: false signs are sufficient. When it concerns several grids, Booleans must be used with the grid of alternatives. The alternatives translate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-zebra-puzzles-glossary-of-programming-instructions"],"_links":{"self":[{"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":4,"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":115,"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/posts\/95\/revisions\/115"}],"wp:attachment":[{"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actilud.com\/info\/en\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}