{"id":591,"date":"2024-12-19T08:00:00","date_gmt":"2024-12-19T07:00:00","guid":{"rendered":"https:\/\/control-advent.com\/?p=591"},"modified":"2025-11-28T19:06:17","modified_gmt":"2025-11-28T18:06:17","slug":"19-the-curious-case-of-conveyor-control-and-cookie-craving-squirrels","status":"publish","type":"post","link":"https:\/\/control-advent.com\/?p=591","title":{"rendered":"19 &#8211; The Curious Case of Conveyor Control and Cookie-Craving Squirrels"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Author of this question:<\/strong>\u00a0Antonio Visioli,\u00a0<em>Dipartimento di Ingegneria Meccanica e Industriale,<\/em>\u00a0Universit\u00e0 degli Studi di Brescia, Italy<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Santa wants the elves to make the gift-wrapping process as smooth and efficient as possible. To achieve this, he asks them to develop a system that keeps the conveyor belt at a consistent, desired speed. The belt&#8217;s speed can be modified by pressing specific buttons: holding down a blue button contributes to accelerating the belt, while holding down a red button contributes to decelerating it. This means that holding down two blue buttons accelerates the belt twice as fast as holding only one, and the same principle applies to the red buttons for deceleration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The elves have come up with an ingenious way to automatize the interaction with the blue and red buttons, involving the large community of squirrels living in the forest around Santa&#8217;s workshop. Each minute, a squirrel arrives to assist. If, during the previous minute, the conveyor belt moved too slowly on average, that squirrel begins pressing a blue button. Conversely, if the belt moved too quickly on average, that squirrel starts pressing a red button. Of course, if there is a squirrel pressing a blue button and another pressing a red button, their efforts cancel out, and they can both return to the forest. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When Santa learns about this newly developed system, he realizes there is a significant issue he needs to warn the elves about (and no, it&#8217;s not the extra cookies required to keep the squirrels energized).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024.jpg\" alt=\"\" class=\"wp-image-433\" style=\"width:691px;height:auto\" srcset=\"https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024.jpg 1024w, https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024-300x300.jpg 300w, https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024-150x150.jpg 150w, https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024-768x768.jpg 768w, https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024-640x640.jpg 640w, https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024-24x24.jpg 24w, https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024-36x36.jpg 36w, https:\/\/control-advent.com\/wp-content\/uploads\/2024\/11\/19-Dec-2024-48x48.jpg 48w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">a. \ud83d\ude80\ud83d\udcc8\u23f8\ufe0f Watch out! If a new higher speed is suddenly set, the conveyor belt might accelerate uncontrollably until it reaches its maximum speed and will get stuck at that level indefinitely!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">b. \u26a1\ud83c\udfa2\ud83c\udfc3\u200d\u2642\ufe0f Watch out! If a new higher speed is suddenly set, there will be moments when the belt moves faster than desired!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">c. \ud83d\udc3f\ufe0f\ud83d\udca5\ud83d\udeab Watch out! If a new higher speed is set at the exact moment a new squirrel appears, the motor could become overwhelmed and fail!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">d. \ud83d\uded1\u23f3\ud83d\udcca Watch out! If a new higher speed is suddenly set, the belt might stop completely before catching up to the target speed.<\/p>\n\n\n<div class=\"yop-poll-container\" data-yop-poll-id=\"24\"><script type=\"application\/json\" data-yop-poll-init>{\"poll\":{\"id\":\"24\",\"name\":\"19-Dec-2024\",\"template\":\"3\",\"template_base\":\"classic\",\"skin_base\":\"red-v1\",\"status\":\"published\",\"meta_data\":{\"style\":{\"poll\":{\"backgroundColor\":\"#b70004\",\"borderSize\":0,\"borderStyle\":\"none\",\"borderColor\":\"#b70004\",\"borderRadius\":0,\"paddingLeftRight\":10,\"paddingTopBottom\":10},\"questions\":{\"paddingLeftRight\":0,\"paddingTopBottom\":10,\"textColor\":\"#ffffff\",\"textSize\":14,\"textWeight\":\"normal\",\"textAlign\":\"center\"},\"answers\":{\"paddingLeftRight\":0,\"paddingTopBottom\":0,\"textColor\":\"#ffffff\",\"textSize\":14,\"textWeight\":\"normal\",\"skin\":\"minimal\",\"colorScheme\":\"black\"},\"buttons\":{\"backgroundColor\":\"#ffffff\",\"borderSize\":1,\"borderStyle\":\"solid\",\"borderColor\":\"#000000\",\"borderRadius\":0,\"paddingLeftRight\":10,\"paddingTopBottom\":5,\"textColor\":\"#000000\",\"textSize\":14,\"textWeight\":\"normal\",\"align\":\"center\"},\"errors\":{\"borderLeftColorForSuccess\":\"#008000\",\"borderLeftColorForError\":\"#ff0000\",\"borderLeftSize\":10,\"paddingTopBottom\":0,\"textColor\":\"#000000\",\"textSize\":14,\"textWeight\":\"normal\"},\"captcha\":[],\"custom\":{\"css\":\"\"}},\"options\":{\"poll\":{\"voteButtonLabel\":\"&gt;&gt;&gt;\",\"showResultsLink\":\"no\",\"resultsLabelText\":\"Results\",\"showTotalVotes\":\"no\",\"showTotalAnswers\":\"no\",\"startDateOption\":\"now\",\"startDateCustom\":\"\",\"endDateOption\":\"never\",\"endDateCustom\":\"\",\"redirectAfterVote\":\"no\",\"redirectUrl\":\"\",\"redirectAfter\":\"\",\"pageLink\":\"\",\"useCaptcha\":\"no\",\"enableGdpr\":\"no\",\"gdprSolution\":\"ask_consent\",\"gdprConsentText\":\"\",\"loadWithAjax\":\"no\",\"notificationMessageLocation\":\"top\"},\"results\":{\"showResultsMoment\":[\"never\"],\"customDateResults\":\"\",\"showResultsTo\":[],\"resultsDetails\":[\"percentages\"],\"backToVoteOption\":\"no\",\"backToVoteCaption\":\"Back to vote\",\"sortResults\":\"as-defined\",\"sortResultsRule\":\"asc\",\"displayResultsAs\":\"bar\"},\"access\":{\"votePermissions\":[\"wordpress\"]}}}},\"elements\":[{\"id\":\"24\",\"poll_id\":\"24\",\"etext\":\"Choose an option:\",\"etype\":\"question-text\",\"status\":\"active\",\"sorder\":\"1\",\"meta_data\":{\"allowOtherAnswers\":\"no\",\"otherAnswersLabel\":\"Other\",\"addOtherAnswers\":\"no\",\"displayOtherAnswersInResults\":\"no\",\"resultsColorForOtherAnswers\":\"#000000\",\"allowMultipleAnswers\":\"no\",\"multipleAnswersMinim\":\"1\",\"multipleAnswersMaxim\":\"1\",\"answersDisplay\":\"horizontal\",\"answersColumns\":\"\",\"answersSort\":\"as-defined\"},\"subelements\":[{\"id\":\"161\",\"poll_id\":\"24\",\"element_id\":\"24\",\"stext\":\"a\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"1\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"162\",\"poll_id\":\"24\",\"element_id\":\"24\",\"stext\":\"b\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"2\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"163\",\"poll_id\":\"24\",\"element_id\":\"24\",\"stext\":\"c\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"3\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}},{\"id\":\"202\",\"poll_id\":\"24\",\"element_id\":\"24\",\"stext\":\"d\",\"stype\":\"text\",\"status\":\"active\",\"sorder\":\"4\",\"meta_data\":{\"makeDefault\":\"0\",\"makeLink\":\"0\",\"link\":\"\",\"resultsColor\":\"#000000\"}}]}],\"messages\":{\"captcha\":{\"accessibility-alt\":\"Sound icon\",\"accessibility-title\":\"Accessibility option: listen to a question and answer it!\",\"accessibility-description\":\"Type below the [STRONG]answer[\\\/STRONG] to what you hear. Numbers or words:\",\"explanation\":\"Click or touch the [STRONG]ANSWER[\\\/STRONG]\",\"refresh-alt\":\"Refresh\\\/reload icon\",\"refresh-title\":\"Refresh\\\/reload: get new images and accessibility option!\"},\"buttons\":{\"anonymous\":\"Anonymous Vote\",\"wordpress\":\"Sign in with WordPress\",\"facebook\":\"Sign in with Facebook\",\"google\":\"Sign in with Google\"},\"voting\":{\"poll-ended\":\"This poll is no longer accepting votes\",\"poll-not-started\":\"This poll is not accepting votes yet\",\"already-voted-on-poll\":\"Thank you for your vote\",\"invalid-poll\":\"Invalid Poll\",\"no-answers-selected\":\"No answer selected\",\"min-answers-required\":\"At least {min_answers_allowed} answer(s) required\",\"max-answers-required\":\"A max of {max_answers_allowed} answer(s) accepted\",\"no-answer-for-other\":\"No other answer entered\",\"no-value-for-custom-field\":\"{custom_field_name} is required\",\"consent-not-checked\":\"You must agree to our terms and conditions\",\"no-captcha-selected\":\"Captcha is required\",\"not-allowed-by-ban\":\"Vote not allowed\",\"not-allowed-by-block\":\"Vote not allowed\",\"not-allowed-by-limit\":\"Vote not allowed\",\"thank-you\":\"Thank you for your vote\",\"too-many-chars-for-custom-field\":\"Text for {custom_field_name} is too long\"},\"results\":{\"single-vote\":\"vote\",\"multiple-votes\":\"votes\",\"single-answer\":\"answer\",\"multiple-answers\":\"answers\"}},\"date_format\":\"F j, Y\",\"nonce\":\"c3c56823ce\",\"page_id\":0,\"tracking_id\":\"https:\\\/\\\/control-advent.com\"}<\/script><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Author of this question:\u00a0Antonio Visioli,\u00a0Dipartimento di Ingegneria Meccanica e Industriale,\u00a0Universit\u00e0 degli Studi di Brescia, Italy Santa wants the elves to make the gift-wrapping process as smooth and efficient as possible. To achieve this, he asks them to develop a system &hellip; <span class=\"more-link\"><a href=\"https:\/\/control-advent.com\/?p=591\" class=\"readmore\">Continue reading<span class=\"screen-reader-text\">19 &#8211; The Curious Case of Conveyor Control and Cookie-Craving Squirrels<\/span><\/a><\/span><\/p>\n","protected":false},"author":4,"featured_media":433,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[99],"class_list":["post-591","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-english","tag-99"],"_links":{"self":[{"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/posts\/591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=591"}],"version-history":[{"count":4,"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/posts\/591\/revisions"}],"predecessor-version":[{"id":1202,"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/posts\/591\/revisions\/1202"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=\/wp\/v2\/media\/433"}],"wp:attachment":[{"href":"https:\/\/control-advent.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/control-advent.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}