{"id":168291,"date":"2013-02-11T04:20:03","date_gmt":"2013-02-11T00:20:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=168291"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=168291","title":{"rendered":"<span class=\"post_title\">\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0430\u0445<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a85\/e1f\/239\/a85e1f2399a47a10a0f1a4fe97cc7520.png\" align=\"right\"\/><br \/>  \u041d\u0430 \u0445\u0430\u0431\u0440\u0435 \u0443\u0436\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/154753\/\">\u043c\u043d\u043e\u0433\u043e<\/a>&#8212;<a href=\"http:\/\/habrahabr.ru\/post\/136100\/\">\u043c\u043d\u043e\u0433\u043e<\/a>&#8212;<a href=\"http:\/\/habrahabr.ru\/post\/154015\/\">\u043c\u043d\u043e\u0433\u043e<\/a> \u0440\u0430\u0437 \u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0440\u043e \u0438\u0433\u0440\u0443 \u00ab\u0416\u0438\u0437\u043d\u044c\u00bb. \u0421\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f <a href=\"http:\/\/habrahabr.ru\/post\/168421\/\">\u0416\u0438\u0437\u043d\u044c \u043d\u0430 \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438 \u041b\u043e\u0431\u0430\u0447\u0435\u0432\u0441\u043a\u043e\u0433\u043e<\/a>. \u041d\u043e \u0438\u0433\u0440\u0430 \u00ab\u0416\u0438\u0437\u043d\u044c\u00bb \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u043d\u044b\u043c \u0441\u043b\u0443\u0447\u0430\u0435\u043c \u0442. \u043d. <i>\u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u0432<\/i>. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u0432 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043d\u0430 \u0438\u0433\u0440\u0443 \u00ab\u0416\u0438\u0437\u043d\u044c\u00bb, \u043d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445. \u041f\u0440\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c.<\/p>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u044f\u0434 \u043a\u043b\u0435\u0442\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445, \u043a\u0440\u043e\u043c\u0435 \u043e\u0434\u043d\u043e\u0439, \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0443\u043b\u0438:<\/p>\n<pre>... 0  1  0  0  0  0  0  0 ...<\/pre>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0432 \u043a\u043b\u0435\u0442\u043a\u0435 \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0438 \u0441\u043e\u0441\u0435\u0434\u0430 \u0441\u043b\u0435\u0432\u0430. \u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0435\u0440\u0438\u044e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439: <\/p>\n<pre> ... 0  1  0  0  0  0  0  0 ... ... 0  1  1  0  0  0  0  0 ... ... 0  1  2  1  0  0  0  0 ... ... 0  1  3  3  1  0  0  0 ... ... 0  1  4  6  4  1  0  0 ... ... 0  1  5 10 10  5  1  0 ... ... 0  1  6 15 20 15  6  1 ... <\/pre>\n<p>  \u041d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e &mdash; \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u041f\u0430\u0441\u043a\u0430\u043b\u044f. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e \u0434\u0432\u0430. \u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e (\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u0432 \u0445\u0430\u0431\u0440\u0430\u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/167817\/\">\u0422\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0421\u0435\u0440\u043f\u0438\u043d\u0441\u043a\u043e\u0433\u043e \u0438 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u041f\u0430\u0441\u043a\u0430\u043b\u044f<\/a>), \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0421\u0435\u0440\u043f\u0438\u043d\u0441\u043a\u043e\u0433\u043e:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5cd\/0d2\/af3\/5cd0d2af39e5211dadedeb2815962ac9.png\" align=\"right\"\/>  <\/p>\n<pre> ... 0  1  0  0  0  0  0  0 ... ... 0  1  1  0  0  0  0  0 ... ... 0  1  0  1  0  0  0  0 ... ... 0  1  1  1  1  0  0  0 ... ... 0  1  0  0  0  1  0  0 ... ... 0  1  1  0  0  1  1  0 ... ... 0  1  0  1  0  1  0  1 ... <\/pre>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e? \u0427\u0438\u0442\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435!<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0414\u0430\u0432\u0430\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0430 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430, \u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u0432: <i>\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/i>, <i>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/i>, <i>\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u043e\u0441\u0442\u044c<\/i>. \u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043a\u043b\u0435\u0442\u043e\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430. \u041f\u043e\u0434 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043b\u0435\u0442\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u043b\u0435\u0442\u043a\u0438 \u0438 \u0435\u0451 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438. \u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u043e\u0441\u0442\u044c \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u0441\u0435 \u043a\u043b\u0435\u0442\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u043e\u0434\u043d\u0438\u043c \u0438 \u0442\u0435 \u0436\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c\u0438 \u0441\u0435\u0442\u043a\u0430\u043c\u0438, \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u044b \u043d\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u043a\u0435, \u0430 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438, \u0437\u0430\u0432\u0435\u0440\u043d\u0451\u043c \u0441\u0435\u0442\u043a\u0443 \u0432 \u0442\u043e\u0440. \u0414\u0432\u0435 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043a\u043b\u0435\u0442\u043a\u0438 \u0438\u043c\u0435\u044e\u0442 \u0438\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f: \u044d\u0442\u043e <i>\u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u041c\u0443\u0440\u0430<\/i> &mdash; \u0441\u043e\u0441\u0435\u0434\u044f\u043c\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0445 \u043a\u043b\u0435\u0442\u043e\u043a, \u0438 <i>\u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d \u041d\u0435\u0439\u043c\u0430\u043d\u0430<\/i> &mdash; \u0441\u043e\u0441\u0435\u0434\u044f\u043c\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0435 \u043a\u043b\u0435\u0442\u043a\u0438 \u0441\u043b\u0435\u0432\u0430, \u0441\u043f\u0440\u0430\u0432\u0430, \u0441\u0432\u0435\u0440\u0445\u0443 \u0438 \u0441\u043d\u0438\u0437\u0443. \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0434\u0432\u0443\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439, \u043a\u0440\u043e\u043c\u0435 \u0441\u043b\u043e\u0432\u0435\u0441\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u043b\u0435\u0442\u043a\u0438, \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <\/p>\n<pre><code class=\"java\">int transformCell(     int northWestCell, int northCell, int northEastCell,     int westCell, int centerCell, int eastCell,     int southWestCell, int southCell, int southEastCell); <\/code><\/pre>\n<h5>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439 \u0438 \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u043e\u0441\u0442<\/h5>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u0443\u0441\u0442\u044c \u043a\u043b\u0435\u0442\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0434\u0432\u0443\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u0445 0 &mdash; \u043c\u0451\u0440\u0442\u0432\u0430\u044f, \u0438 1 &mdash; \u0436\u0438\u0432\u0430\u044f. <br \/>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e: \u043a\u043b\u0435\u0442\u043a\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0436\u0438\u0432\u043e\u0439, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d \u0438\u0437 \u0435\u0451 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u0436\u0438\u0432\u043e\u0439; \u043a\u043b\u0435\u0442\u043a\u0430, \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u0441\u0442\u0430\u0432 \u0436\u0438\u0432\u043e\u0439, \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0436\u0438\u0432\u043e\u0439 \u0432\u0441\u0435\u0433\u0434\u0430. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u041c\u0443\u0440\u0430 \u0442\u0435\u043b\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>transformCell()<\/code> \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c:<\/p>\n<pre><code class=\"java\">int sum = northWestCell + northCell + northEastCell +      westCell + eastCell +      southWestCell + southCell + southEastCell; if (sum &gt; 0) {     return 1; } else {     return centerCell; } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u0435 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u043d\u0443\u043b\u044f\u043c\u0438, \u0442\u043e \u0436\u0438\u0432\u044b\u0445 \u043a\u043b\u0435\u0442\u043e\u043a \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f, \u043d\u043e \u0435\u0441\u043b\u0438 \u043e\u0434\u043d\u0443 \u0438\u0437 \u043a\u043b\u0435\u0442\u043e\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0436\u0438\u0432\u043e\u0439, \u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u00ab\u0437\u0430\u0440\u043e\u0434\u044b\u0448\u0430\u00bb \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0438\u0437 \u0436\u0438\u0432\u044b\u0445 \u043a\u043b\u0435\u0442\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442 \u043f\u043e\u043b\u0435. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0438\u0437 \u0436\u0438\u0432\u044b\u0445 \u043a\u043b\u0435\u0442\u043e\u043a \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e &mdash; \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0441\u0432\u0435\u0442\u0430. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/6a1\/fe5\/e98\/6a1fe5e98948376f43a9339dbd5c8ee1.png\"\/><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/7c4\/ece\/f59\/7c4ecef59714c1121d4c9d3b9d80015e.png\"\/><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/486\/be4\/6e0\/486be46e0b49fd43c179fcf9db2e4be2.png\"\/><\/p>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0432\u044b\u0448\u0435: \u0432\u043c\u0435\u0441\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u00ab\u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u0436\u0438\u0432\u043e\u0439\u00bb, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u00ab\u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u0436\u0438\u0432\u043e\u0439\u00bb. <\/p>\n<pre><code class=\"java\">int sum = northWestCell + northCell + northEastCell +      westCell + eastCell +      southWestCell + southCell + southEastCell; if (sum == 1) {     return 1; } else {     return centerCell; } <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u0430\u044f \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u043a\u043b\u0435\u0442\u043a\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u0443\u0434\u0435\u0442, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0440\u0430\u0437\u0440\u0435\u0436\u0435\u043d\u043d\u0435\u0439, \u0430, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u044f\u0432\u043d\u044b\u0439 \u0444\u0440\u0430\u043a\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/f1a\/643\/ae9\/f1a643ae9cbcac7db78fb7aefd109466.png\"\/><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/804\/d4a\/883\/804d4a8837c9259c02236c87d620c308.png\"\/><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ef9\/002\/357\/ef90023571702eacd4780e423bfe1b00.png\"\/><\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u041c\u0443\u0440\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d \u041d\u0435\u0439\u043c\u0430\u043d\u0430:<\/p>\n<pre><code class=\"java\">int sum = northCell + westCell + eastCell + southCell; if (sum == 1) {     return 1; } else {     return centerCell; } <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/563\/344\/838\/563344838059c89b575cd21b74fb0fb9.png\"\/><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b0f\/983\/8e8\/b0f9838e8215092968f815250c2510fe.png\"\/><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/36d\/670\/c08\/36d670c085ae5f8171a182d72f26325a.png\"\/><\/p>\n<h5>\u0426\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u044b<\/h5>\n<p>  \u0426\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u044b \u0431\u044b\u043b\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u044b \u0414\u044d\u0432\u0438\u0434\u043e\u043c \u0413\u0440\u0438\u0444\u0444\u0438\u0442\u043e\u043c. \u041a\u043b\u0435\u0442\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 <i>n<\/i> \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0435\u043c \u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u0430\u043c\u0438 0, 1, &#8230;, <i>n<\/i> &ndash; 1. \u0411\u0443\u0434\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <i>m<\/i> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <i>\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c<\/i> \u0437\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c <i>k<\/i>, \u0435\u0441\u043b\u0438 <i>m<\/i> + 1 = <i>k<\/i> (mod <i>n<\/i>). \u041a\u043b\u0435\u0442\u043a\u0430 \u0438\u0437 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f <i>m<\/i> \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <i>k<\/i>, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u0434\u043d\u0430 \u0438\u0437 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u043a\u043b\u0435\u0442\u043e\u043a \u0438\u043c\u0435\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <i>k<\/i>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0444\u043e\u043d \u041d\u0435\u0439\u043c\u0430\u043d\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"java\">int nextState = (centerCell + 1) % statesNumber; if (northCell == nextState ||         westCell == nextState ||         eastCell == nextState ||         southCell == nextState) {     return nextState; } else {     return centerCell; } <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0435\u0441\u043b\u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u0441\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c\u0441\u044f \u0442\u0440\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0442\u0430\u0434\u0438\u0438. \u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0434\u0438\u044f &mdash; \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u043f\u043e\u043b\u0435. \u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0446\u0432\u0435\u0442\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0433\u043b\u043e\u0449\u0430\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e. \u042d\u0442\u0438 \u0431\u043b\u043e\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u00ab\u0432\u043e\u043b\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u00bb \u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0439 \u0446\u0432\u0435\u0442. \u0414\u0430\u043b\u0435\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0441\u043f\u0438\u0440\u0430\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 <i>\u0434\u0435\u043c\u043e\u043d\u0430\u043c\u0438<\/i>. \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0441\u0442\u0430\u0434\u0438\u0438, \u043f\u043e\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0433\u043b\u043e\u0449\u0435\u043d\u043e \u0434\u0435\u043c\u043e\u043d\u0430\u043c\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b54\/49e\/10c\/b5449e10cbb6b4c7f2055c9b45b0d26d.png\"\/> <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/046\/76f\/b43\/04676fb4352fbcf16a4c58df1c95819f.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/03d\/2b2\/eb1\/03d2b2eb1cf6d1e721005d9b65266bc7.png\"\/> <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/bf9\/134\/f89\/bf9134f89c5e2748841d824afdf512e6.png\"\/><\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442:  <\/p>\n<pre><code class=\"java\">int transformCell(int leftCell, int centerCell, int rightCell) {     int nextState = (centerCell + 1) % statesNumber;     if (nextState == leftCell || nextState == rightCell) {         return nextState;     } else {         return centerCell;     } } <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/adc\/50b\/eba\/adc50beba382fea3b2a35e5110b6586b.png\"\/> <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a84\/699\/419\/a846994193c862ecf0dad4385910af22.png\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439, \u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u0432\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u0438 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Cyclic_cellular_automaton\">Cyclic cellular automaton<\/a>.<\/p>\n<h5>\u041c\u0435\u0448\u0430\u043d\u0438\u043d\u0430<\/h5>\n<p>  \u041f\u0443\u0441\u0442\u044c \u0441\u043d\u043e\u0432\u0430 \u043a\u043b\u0435\u0442\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f\u0445 0, 1, &#8230;, <i>n<\/i> &ndash; 1.<br \/>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0438\u0437 \u0442\u0440\u0451\u0445 \u0447\u0430\u0441\u0442\u0435\u0439.<\/p>\n<p>  <i>\u0417\u0434\u043e\u0440\u043e\u0432\u044c\u0435<\/i>. \u0415\u0441\u043b\u0438 \u043a\u043b\u0435\u0442\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 0 (\u0442. \u0435. \u0437\u0434\u043e\u0440\u043e\u0432\u0430), \u0442\u043e \u043e\u043d\u0430 \u0437\u0430\u0431\u043e\u043b\u0435\u0432\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0435\u0451 \u0441\u043e\u0441\u0435\u0434\u0435\u0439 \u0431\u043e\u043b\u044c\u043d\u044b (\u0442. \u0435. \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438).<\/p>\n<p>  <i>\u0412\u044b\u0437\u0434\u043e\u0440\u043e\u0432\u043b\u0435\u043d\u0438\u0435<\/i>. \u0415\u0441\u043b\u0438 \u043a\u043b\u0435\u0442\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 <i>n<\/i> &ndash; 1, \u0442\u043e \u043e\u043d\u0430 \u0441\u0430\u043c\u043e\u0432\u044b\u043b\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 0.<\/p>\n<p>  <i>\u0411\u043e\u043b\u0435\u0437\u043d\u044c<\/i>. \u0418\u043d\u0430\u0447\u0435 \u0436\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043b\u0435\u0442\u043a\u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u043a\u043b\u0435\u0442\u043e\u043a \u043f\u043b\u044e\u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430. (\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c <i>n<\/i> &ndash; 1, \u0442\u043e \u043d\u043e\u0432\u044b\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u0431\u0443\u0434\u0435\u0442 <i>n<\/i> &ndash; 1.)<\/p>\n<pre><code class=\"java\">int sum = northWestCell + northCell + northEastCell +         westCell + eastCell +         southWestCell + southCell + southEastCell; if (centerCell == 0) {     if (sum &lt; 5) {         return 0;     } else if (sum &lt; 100) {         return 2;     } else {         return 3;     } } else if (centerCell == statesNumber - 1) {     return 0; } else {     return Math.min(sum \/ 8 + 5, statesNumber - 1); } <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/152\/429\/8a0\/1524298a0c169fb17e41cf22557c5699.png\"\/> <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2c2\/e91\/aae\/2c2e91aaee442e6a8a580c2ece81ce24.png\"\/><\/p>\n<p>  \u041e\u0442\u043c\u0435\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0435 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u043e\u043b\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u0440\u0435\u0430\u043a\u0446\u0438\u044e <a href=\"http:\/\/en.wikipedia.org\/wiki\/Belousov\u2013Zhabotinsky_reaction\">\u0411\u0435\u043b\u043e\u0443\u0441\u043e\u0432\u0430 &ndash; \u0416\u0430\u0431\u043e\u0442\u0438\u043d\u0441\u043a\u043e\u0433\u043e<\/a>.<\/p>\n<h5>\u041f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u044c \u0412\u0435\u043d\u0435\u0440\u044b<\/h5>\n<p>  \u042d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e (\u043a\u0430\u043a \u0432\u043f\u0440\u043e\u0447\u0435\u043c \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0435) \u044f \u043d\u0430\u0448\u0451\u043b \u0432 <a href=\"http:\/\/www.cs.sjsu.edu\/faculty\/rucker\/celdoc\/rules.html#Hodge\">Cellab Manual<\/a>. \u041a\u0430\u0436\u0434\u0430\u044f \u043a\u043b\u0435\u0442\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 0, 1, 2 \u0438\u043b\u0438 4. \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0438\u043c\u0435\u0435\u0442 \u0432\u0438\u0434:  <\/p>\n<pre><code class=\"java\">if (centerCell == 0) {     return 2 * ((northWestCell % 2) ^ (northEastCell % 2)) + northCell % 2; } else if (centerCell == 1) {     return 2 * ((northWestCell % 2) ^ (southWestCell % 2)) + westCell % 2; } else if (centerCell == 2) {     return 2 * ((southWestCell % 2) ^ (southEastCell % 2)) + southCell % 2; } else {     return 2 * ((southEastCell % 2) ^ (northEastCell % 2)) + eastCell % 2; } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u0442\u043e \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0432\u0430 \u0432\u0440\u0435\u0437\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0430 \u00ab\u043f\u043e\u0442\u043e\u043a\u0430\u00bb: \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439. \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u00ab\u043f\u043e\u0442\u043e\u043a\u043e\u0432\u00bb \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u0440\u0435\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c. \u0418 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/41b\/f93\/93f\/41bf9393fd94ed6a7c7ed727cd8e714d.png\"\/> <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/098\/d77\/d9a\/098d77d9ad9da58297c6b2ae6e105390.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/c27\/9d3\/33a\/c279d333ae806e36250a3d6dfa2f7428.png\"\/> <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/4d3\/3eb\/80d\/4d33eb80d47404bff99dce2bb94bdc2f.png\"\/><\/p>\n<p>  \u042d\u0442\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u0432, \u043f\u0440\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043d\u043e \u044f \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u0441\u0442\u0430\u043b\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0439. \u0414\u043b\u044f \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0434\u0430\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0441\u044b\u043b\u043e\u043a:<\/p>\n<p>  (1) \u0422. \u0422\u043e\u0444\u0444\u043e\u043b\u0438, \u041d. \u041c\u0430\u0440\u0433\u043e\u043b\u0443\u0441, <i>\u041c\u0430\u0448\u0438\u043d\u044b \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u0432<\/i>, \u041c., \u041c\u0438\u0440, 1991. <\/p>\n<p>  (2) \u041c. \u0428\u0440\u0435\u0434\u0435\u0440, <i>\u0424\u0440\u0430\u043a\u0442\u0430\u043b\u044b, \u0445\u0430\u043e\u0441, \u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u043a\u043e\u043d\u044b. \u041c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u044b \u0438\u0437 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0440\u0430\u044f<\/i>, \u0418\u0436\u0435\u0432\u0441\u043a, \u0420\u0425\u0414, 2001, \u0441\u0442\u0440. 469&#8212;490.<\/p>\n<p>  (3) R. Rucker, J. Walker <i><a href=\"http:\/\/www.cs.sjsu.edu\/faculty\/rucker\/celdoc\/cellab.html\">Cellab Manual<\/a><\/i>.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/168291\/\"> http:\/\/habrahabr.ru\/post\/168291\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a85\/e1f\/239\/a85e1f2399a47a10a0f1a4fe97cc7520.png\" align=\"right\"\/><br \/>  \u041d\u0430 \u0445\u0430\u0431\u0440\u0435 \u0443\u0436\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/154753\/\">\u043c\u043d\u043e\u0433\u043e<\/a>&#8212;<a href=\"http:\/\/habrahabr.ru\/post\/136100\/\">\u043c\u043d\u043e\u0433\u043e<\/a>&#8212;<a href=\"http:\/\/habrahabr.ru\/post\/154015\/\">\u043c\u043d\u043e\u0433\u043e<\/a> \u0440\u0430\u0437 \u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0440\u043e \u0438\u0433\u0440\u0443 \u00ab\u0416\u0438\u0437\u043d\u044c\u00bb. \u0421\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f <a href=\"http:\/\/habrahabr.ru\/post\/168421\/\">\u0416\u0438\u0437\u043d\u044c \u043d\u0430 \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u0438 \u041b\u043e\u0431\u0430\u0447\u0435\u0432\u0441\u043a\u043e\u0433\u043e<\/a>. \u041d\u043e \u0438\u0433\u0440\u0430 \u00ab\u0416\u0438\u0437\u043d\u044c\u00bb \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u043d\u044b\u043c \u0441\u043b\u0443\u0447\u0430\u0435\u043c \u0442. \u043d. <i>\u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u0432<\/i>. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043b\u0435\u0442\u043e\u0447\u043d\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u0432 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u043d\u0430 \u0438\u0433\u0440\u0443 \u00ab\u0416\u0438\u0437\u043d\u044c\u00bb, \u043d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445. \u041f\u0440\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c.<\/p>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u044f\u0434 \u043a\u043b\u0435\u0442\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445, \u043a\u0440\u043e\u043c\u0435 \u043e\u0434\u043d\u043e\u0439, \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0443\u043b\u0438:<\/p>\n<pre>... 0  1  0  0  0  0  0  0 ...<\/pre>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0432 \u043a\u043b\u0435\u0442\u043a\u0435 \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0438 \u0441\u043e\u0441\u0435\u0434\u0430 \u0441\u043b\u0435\u0432\u0430. \u041f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0435\u0440\u0438\u044e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439: <\/p>\n<pre> ... 0  1  0  0  0  0  0  0 ... ... 0  1  1  0  0  0  0  0 ... ... 0  1  2  1  0  0  0  0 ... ... 0  1  3  3  1  0  0  0 ... ... 0  1  4  6  4  1  0  0 ... ... 0  1  5 10 10  5  1  0 ... ... 0  1  6 15 20 15  6  1 ... <\/pre>\n<p>  \u041d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e &mdash; \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u041f\u0430\u0441\u043a\u0430\u043b\u044f. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e \u0434\u0432\u0430. \u0418\u0437\u0432\u0435\u0441\u0442\u043d\u043e (\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u0432 \u0445\u0430\u0431\u0440\u0430\u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/167817\/\">\u0422\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0421\u0435\u0440\u043f\u0438\u043d\u0441\u043a\u043e\u0433\u043e \u0438 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u041f\u0430\u0441\u043a\u0430\u043b\u044f<\/a>), \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0421\u0435\u0440\u043f\u0438\u043d\u0441\u043a\u043e\u0433\u043e:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5cd\/0d2\/af3\/5cd0d2af39e5211dadedeb2815962ac9.png\" align=\"right\"\/>  <\/p>\n<pre> ... 0  1  0  0  0  0  0  0 ... ... 0  1  1  0  0  0  0  0 ... ... 0  1  0  1  0  0  0  0 ... ... 0  1  1  1  1  0  0  0 ... ... 0  1  0  0  0  1  0  0 ... ... 0  1  1  0  0  1  1  0 ... ... 0  1  0  1  0  1  0  1 ... <\/pre>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e? \u0427\u0438\u0442\u0430\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435!  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-168291","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168291"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168291\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}