{"id":337,"date":"2019-07-20T12:23:21","date_gmt":"2019-07-20T15:23:21","guid":{"rendered":"https:\/\/www.blogs.unicamp.br\/zero\/?p=337"},"modified":"2022-05-23T17:20:25","modified_gmt":"2022-05-23T20:20:25","slug":"conditional-hydra","status":"publish","type":"post","link":"https:\/\/www.blogs.unicamp.br\/zero\/337\/","title":{"rendered":"Conditional Hydra"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"337\" class=\"elementor elementor-337\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9a00a97 elementor-section-boxed elementor-section-height-default elementor-section-height-default jltma-glass-effect-no\" data-id=\"9a00a97\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-de15667 jltma-glass-effect-no\" data-id=\"de15667\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f39b4c0 jltma-glass-effect-no elementor-widget elementor-widget-heading\" data-id=\"f39b4c0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/www.blogs.unicamp.br\/zero\/2019\/07\/20\/conditional-hydra\/\">(Translate)<\/a><\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0593184 jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"0593184\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"justify\">The Hydra in Greek Mythology was a monster with a dragon body and several serpent heads that inhabited a swamp near the lake of Lerna. In some versions of the legend, the Hydra has a real head that if destroyed, the Hydra would die and other false heads, which when destroyed would generate two new heads. For the construction of our problem, we will assume this version as the true one.<\/p><p align=\"justify\">So suppose there is a blind, tireless and invulnerable hero, capable of attacking the Hydra for as long as he wants. But by definition (according to legend), each false head that is cut off generates two new false heads. So, each time the wrong head is cut, your chance of hitting the right head will be less.<\/p><p align=\"justify\">To illustrate this problem, let&#8217;s assume that the Hydra starts with two heads (but it could start with any N heads, where N is greater than or equal to 2).<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f8c7bb9 jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"f8c7bb9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-01-1024x670.jpg\" class=\"attachment-large size-large wp-image-340\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-01-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-01-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-01-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-01-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-01.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1e8b632 jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"1e8b632\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"justify\">Our blind hero stands before the two-headed Hydra. The chance of hitting the real head is 50% and the chance of hitting the false head is 50%.<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c83f0df jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"c83f0df\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-02-1024x670.jpg\" class=\"attachment-large size-large wp-image-341\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-02-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-02-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-02-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-02-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-02.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-526784d jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"526784d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"center\"><i>He attacks a head.<\/i><\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7c599ad jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"7c599ad\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-03-1024x670.jpg\" class=\"attachment-large size-large wp-image-342\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-03-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-03-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-03-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-03-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-03.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8cbbade jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"8cbbade\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"center\"><i>The head is pulled out.<\/i><\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7c5a3a9 jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"7c5a3a9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-04-1024x670.jpg\" class=\"attachment-large size-large wp-image-343\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-04-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-04-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-04-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-04-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-04.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-20971e3 jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"20971e3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"justify\">But unfortunately, it was the false head. Then two new heads are born. Now your chance of hitting the real head is approximately 33% and the chance of hitting a false head is approximately 67%.<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bfb3395 jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"bfb3395\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-05-1024x670.jpg\" class=\"attachment-large size-large wp-image-344\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-05-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-05-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-05-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-05-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-05.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d6c6c68 jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"d6c6c68\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"center\"><i>He attacks a head.<\/i><\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d41bb23 jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"d41bb23\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-06-1024x670.jpg\" class=\"attachment-large size-large wp-image-345\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-06-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-06-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-06-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-06-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-06.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a54137d jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"a54137d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"center\"><i>The head is pulled out.<\/i><\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1347c7c jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"1347c7c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-07-1024x670.jpg\" class=\"attachment-large size-large wp-image-346\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-07-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-07-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-07-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-07-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-07.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-67f160f jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"67f160f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"justify\">But unfortunately, it was the false head. Then two new heads are born. Now your chance to hit the real head is 25% and the chance to hit a fake head is 75%.<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cb541c6 jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"cb541c6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-08-1024x670.jpg\" class=\"attachment-large size-large wp-image-347\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-08-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-08-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-08-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-08-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-08.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9651851 jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"9651851\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"center\"><i>He attacks a head.<\/i><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-13101a0 jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"13101a0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-09-1024x670.jpg\" class=\"attachment-large size-large wp-image-348\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-09-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-09-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-09-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-09-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-09.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-741099d jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"741099d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"center\"><i>The head is pulled out.<\/i><\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6d98ad9 jltma-glass-effect-no elementor-widget elementor-widget-image\" data-id=\"6d98ad9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"670\" src=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-10-1024x670.jpg\" class=\"attachment-large size-large wp-image-349\" alt=\"\" srcset=\"https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-10-1024x670.jpg 1024w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-10-300x196.jpg 300w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-10-768x503.jpg 768w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-10-700x458.jpg 700w, https:\/\/www.blogs.unicamp.br\/zero\/wp-content\/uploads\/sites\/187\/2019\/07\/hydra-10.jpg 1100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dc41603 jltma-glass-effect-no elementor-widget elementor-widget-text-editor\" data-id=\"dc41603\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p align=\"justify\">But unfortunately, it was the false head. Then two new heads are born. Now your chance to hit the real head is 20% and the chance to hit a fake head is 80%. We will stop with just 5 heads, but in this problem, apparently the longer our hero takes to kill the Hydra, the more improbable the chance that he will hit the real head (given that the number of false heads increases). You may even think that killing it is a matter of luck, but unfortunately (for Hydra) the conditional probability tells us something else.<\/p><p align=\"justify\">If we observe the chance of our hero defeating the Hydra with each new stroke, this probability will be 1\/(number-total-heads), so for example, a Hydra with 100 heads, the chance of the hero hitting the real head will be 1%.<\/p><p align=\"justify\">On the other hand (using conditional probability), let&#8217;s look at the Hydra&#8217;s chance of surviving each hit. For in the case of a Hydra that starts with two heads, it will only reach 100 heads, if the hero hits the wrong head 98 times.<\/p><p align=\"justify\">For the Hydra to reach n+2 heads, the hero must have missed all the first n blows.<\/p><p align=\"justify\">Analyzing then from the first of our hero&#8217;s mistakes, the chance of this Hydra surviving the first blow and reaching 3 heads is 50%.<\/p><p align=\"justify\">However the chance of this Hydra surviving two strokes of the hero, will be the probability that it will survive the second stroke since it survived the first stroke. That is (50%).(67%), which gives 33%.<\/p><p align=\"justify\">Similarly, the chance that this Hydra will survive three strokes of the hero, will be the probability that it will survive the third stroke since it survived the first and second strokes. That is (50%).(67%).(75%), which gives 25%.<\/p><p align=\"justify\">Survive four strokes: probability of surviving the fourth stroke as it survived the first 3 strokes: (50%).(67%).(75%).(80%), which gives 20%.<\/p><p align=\"justify\">We will only show the results for the following cases:<\/p><p align=\"center\"><i>Survive five hits: 16%.<\/i><\/p><p align=\"center\"><i>Survive six hits: 14%.<\/i><\/p><p align=\"center\"><i>Survive seven hits: 12%.<\/i><\/p><p align=\"center\"><i>Survive eight hits: 11%.<\/i><\/p><p align=\"center\"><i>Survive nine hits: 10%.<\/i><\/p><p align=\"center\"><i>Survive ten hits: 9%.<\/i><\/p><p align=\"center\">\u2026<\/p><p align=\"center\"><i>Survive 98 hits: 1%.<\/i><\/p><p align=\"center\">\u2026<\/p><p align=\"center\"><i>Survive 998 hits: 0.1%.<\/i><\/p><p align=\"justify\">Thus, the chance of a Hydra in these conditions reaching 100 heads (surviving 98 hits) is approximately 1%. The chance of this same Hydra reaching 1000 heads is approximately 0.1%. In this way, we can see that as the number of attacks increases, the chance of the Hydra remaining alive decreases despite the number of heads increasing.<\/p><p align=\"justify\">Although the chances of Hydra surviving will always increase (from the point of view of hero attacks), the probability of hitting a very large number of heads is getting closer and closer to 0%. That is, surely (sooner or later) the hero will land a blow to the real head and the fight will end.<\/p><p align=\"justify\">You may be thinking that this only worked because our Hydra was very weak, if it were a &#8220;Super-Hydra&#8221; things could be different. Let&#8217;s suppose then that our hero is facing a \u201cSuper-Hydra\u201d with N heads and with each false head destroyed, M heads appear. Any N and M natural numbers.<\/p><p align=\"justify\">Likewise, your chance of surviving our hero&#8217;s first n attacks will be:<\/p><p align=\"center\"><i>(N-1\/N).(N-2+M\/N-1+M).(N-3+2M\/N-2+2M).(N-4+3M\/N-3+3M) \u2026 (N-n+(n-1)M\/N-(n-1)+(n-1).M).<\/i><\/p><p align=\"justify\">Now it is difficult to perceive for any value of M and N, that as the number of attacks (n) increases, the chance of surviving the \u201cSuper-Hydra\u201d will decrease. But note that the denominator is always greater than the quotient, so for each attack of the hero, the chance of the \u201cSuper-Hydra\u201d to survive is less than 1. So when we multiply all these numbers less than 1, this product will always be in reduction, so the chance that the &#8220;Super-Hydra&#8221; will survive each new attack will always decrease, no matter the size of M and N.<\/p><p align=\"justify\">For example, with M = 100 and N = 100.<\/p><p align=\"justify\">After 10 attacks, the chance for the \u201cSuper-Hydra\u201d to stay alive is 97%;<\/p><p align=\"justify\">After 100 attacks, the chance of the &#8220;Super-Hydra&#8221; remaining alive is 95%.<\/p><p align=\"justify\">This chance is slowly decreasing, but for a sufficiently large number, the chance of the &#8220;Super-Hydra&#8221; remaining alive will be very close to 0%.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f7dad24 elementor-section-boxed elementor-section-height-default elementor-section-height-default jltma-glass-effect-no\" data-id=\"f7dad24\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-93c159b jltma-glass-effect-no\" data-id=\"93c159b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b47d563 jltma-glass-effect-no elementor-widget elementor-widget-heading\" data-id=\"b47d563\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/www.blogs.unicamp.br\/zero\/\">Back to main page<\/a><\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ce2828f elementor-section-boxed elementor-section-height-default elementor-section-height-default jltma-glass-effect-no\" data-id=\"ce2828f\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bedc4f1 jltma-glass-effect-no\" data-id=\"bedc4f1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6d39887 jltma-glass-effect-no elementor-widget elementor-widget-heading\" data-id=\"6d39887\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/www.blogs.unicamp.br\/zero\/who-writes-the-posts\/\">Who write the posts?<\/a><\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In Greek mythology the hydra is a monster that when it loses a false head, others are born in its place &#8230; where will the conditional probability appear?<\/p>\n","protected":false},"author":434,"featured_media":366,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"pgc_sgb_lightbox_settings":"","_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"categories":[1209],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-v-2-ed-2"],"_links":{"self":[{"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/users\/434"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/comments?post=337"}],"version-history":[{"count":16,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":1636,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/posts\/337\/revisions\/1636"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/media\/366"}],"wp:attachment":[{"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/media?parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/categories?post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blogs.unicamp.br\/zero\/wp-json\/wp\/v2\/tags?post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}