{"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><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>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>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>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>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>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>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>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='bootstrap-yop yop-poll-mc'>\n\t\t\t\t\t\t\t<div class=\"basic-yop-poll-container\" style=\"background-color:#b70004; border:0px; border-style:solid; border-color:#b70004; border-radius:0px; padding:10px 10px;\" data-id=\"24\" data-temp=\"basic\" data-skin=\"minimal\" data-cscheme=\"black\" data-cap=\"0\" data-access=\"wordpress\" data-tid=\"\" data-uid=\"39d585fb7dd84d9cc8cdc655f22881a9\" data-pid=\"591\" data-resdet=\"percentages\" data-show-results-to=\"\" data-show-results-moment=\"never\" data-show-results-only=\"false\" data-show-message=\"true\" data-show-results-as=\"bar\" data-sort-results-by=\"as-defined\" data-sort-results-rule=\"asc\"data-is-ended=\"0\" data-gdpr=\"no\" data-gdpr-sol=\"consent\" data-css=\".basic-yop-poll-container[data-uid] .basic-vote { text-align: center; }\" data-counter=\"0\" data-load-with=\"1\" data-notification-section=\"top\"><div class=\"row\"><div class=\"col-md-12\"><div class=\"basic-inner\"><div class=\"basic-message hide\" style=\"border-left: 10px solid #008000; padding: 0px 10px;\" data-error=\"#ff0000\" data-success=\"#008000\"><p class=\"basic-message-text\" style=\"color:#000000; font-size:14px; font-weight:normal;\"><\/p><\/div><div class=\"basic-overlay hide\"><div class=\"basic-vote-options\"><\/div><div class=\"basic-preloader\"><div class=\"basic-windows8\"><div class=\"basic-wBall basic-wBall_1\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_2\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_3\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_4\"><div class=\"basic-wInnerBall\"><\/div><\/div><div class=\"basic-wBall basic-wBall_5\"><div class=\"basic-wInnerBall\"><\/div><\/div><\/div><\/div><\/div><form class=\"basic-form\"><input type=\"hidden\" name=\"_token\" value=\"9927342c35\" autocomplete=\"off\"><div class=\"basic-elements\"><div class=\"basic-element basic-question basic-question-text-horizontal\" data-id=\"24\" data-uid=\"c501fc81f693e8059cabd5dc782873f7\" data-type=\"question\" data-question-type=\"text\" data-allow-multiple=\"no\" data-min=\"1\" data-max=\"1\" data-display=\"horizontal\" data-colnum=\"\" data-display-others=\"no\" data-others-color=\"\" data-others=\"\"><div role=\"heading\" aria-level=\"5\" class=\"basic-question-title\" style=\"color:#ffffff; font-size:14px; font-weight:normal; text-align:center;\">Choose an option:<\/div><ul class=\"basic-answers basic-h-answers\"><li class=\"basic-answer col-xs-6 col-sm-6 col-md-3\" style=\"padding:0px 0px;\" data-id=\"161\" data-type=\"text\" data-vn=\"16\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[161]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[161]\" name=\"answer[24]\" value=\"161\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">a<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 col-md-3\" style=\"padding:0px 0px;\" data-id=\"162\" data-type=\"text\" data-vn=\"90\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[162]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[162]\" name=\"answer[24]\" value=\"162\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">b<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 col-md-3\" style=\"padding:0px 0px;\" data-id=\"163\" data-type=\"text\" data-vn=\"13\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[163]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[163]\" name=\"answer[24]\" value=\"163\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">c<\/span><\/label><\/div><\/li><li class=\"basic-answer col-xs-6 col-sm-6 col-md-3\" style=\"padding:0px 0px;\" data-id=\"202\" data-type=\"text\" data-vn=\"10\" data-color=\"#000000\" data-make-link=\"no\" data-link=\"\"><div class=\"basic-answer-content basic-text-horizontal\"><label for=\"answer[202]\" class=\"basic-answer-label\"><input type=\"radio\" id=\"answer[202]\" name=\"answer[24]\" value=\"202\" autocomplete=\"off\"><span class=\"basic-text\" style=\"color: #ffffff; font-size: 14px; font-weight: normal;\" tabindex=\"0\">d<\/span><\/label><\/div><\/li><\/ul><\/div><div class=\"clearfix\"><\/div><\/div><div class=\"basic-vote\"><a href=\"#\" class=\"button basic-vote-button\" role=\"button\" style=\"background:#ffffff; border:1px; border-style: solid; border-color:#000000; border-radius:0px; padding:5px 10px; color:#000000; font-size:14px; font-weight:normal;\">&gt;&gt;&gt;<\/a><\/div><\/form><div class=\"yop-poll-modal\"><div class=\"yop-poll-modal-content\"><div class=\"yop-poll-modal-header\"><span class=\"yop-poll-modal-close\">&times;<\/span><\/div><div class=\"yop-poll-modal-body\"><div class=\"yop-poll-form-group\"><label class=\"yop-poll-user-or-email-label\">Username or Email Address<\/label><input type=\"text\" class=\"yop-poll-user-or-email-input\" autocomplete=\"off\"><\/div><div class=\"yop-poll-form-group\"><label class=\"yop-poll-password-label\">Password<\/label><input type=\"password\" class=\"yop-poll-password-input\" autocomplete=\"off\"><\/div><div class=\"yop-poll-form-group submit\"><button class=\"button button-primary button-large yop-poll-login-button\">Log In<\/button><\/div><div class=\"yop-poll-form-group yop-poll-section-login-options\"><p><a href=\"https:\/\/control-advent.com\/wp-login.php?action=register\" target=\"_blank\">No account? Register here<\/a><\/p><p><a href=\"https:\/\/control-advent.com\/wp-login.php?action=lostpassword\" target=\"_blank\">Forgot password<\/a><\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>\n\t\t\t\t\t\t<\/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}]}}