{"id":467427,"date":"2025-07-18T21:13:05","date_gmt":"2025-07-18T21:13:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=467427"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=467427","title":{"rendered":"<span>\u0417\u0430\u0434\u0430\u0447\u0430 \u043e \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 (\u0438\u043b\u0438 \u0437\u0430\u0447\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443 M\u041a \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430)<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/38a\/12f\/af5\/38a12faf54a23695247752f9a62cdf10.png\" width=\"725\" height=\"316\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/38a\/12f\/af5\/38a12faf54a23695247752f9a62cdf10.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/38a\/12f\/af5\/38a12faf54a23695247752f9a62cdf10.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0442\u0435\u043a\u0441\u0442\u0435 \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435 \u0437\u0430\u0447\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u043d\u0443\u0436\u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430.<\/p>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u043e \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u043e\u0432 \u0438 NVRAM, \u0447\u0442\u043e\u0431\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c, \u0447\u0442\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u0438\u043b\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f. <\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0412\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a. \u041f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c \u043e\u0442 \u0438 \u0434\u043e. \u041d\u0430\u0434\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0435\u0442\u0441\u044f \u0441 \u0442\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0434\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0432 Flash \u043f\u0430\u043c\u044f\u0442\u044c. \u041d\u0430\u0434\u043e \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 Flash \u043f\u0430\u043c\u044f\u0442\u0438. \u0415\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u0432\u044b\u0434\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p>\u0422\u0440\u0435\u0442\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/757216\/\" rel=\"noopener noreferrer nofollow\">\u041f\u041e ISO-26262<\/a> \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c \u0432 run-time.  <\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/664\/0aa\/ee6\/6640aaee62352bca5b417147ace43de1.png\" alt=\"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u041f\u041e ISO-26262 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u043d\u0430 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c \" title=\"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u041f\u041e ISO-26262 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u043d\u0430 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c \" width=\"1128\" height=\"673\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/664\/0aa\/ee6\/6640aaee62352bca5b417147ace43de1.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/664\/0aa\/ee6\/6640aaee62352bca5b417147ace43de1.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/757216\/\" rel=\"noopener noreferrer nofollow\">\u041f\u041e ISO-26262<\/a> \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u043d\u0430 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c <\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043f\u0440\u043e\u0441\u0442\u0430\u044f  \u0437\u0430\u0434\u0430\u0447\u043a\u0430, \u043e\u0434\u043d\u0430\u043a\u043e, \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0432 \u043a\u043e\u0434\u0435 &#8212; \u044d\u0442\u043e \u0432\u043e\u0432\u0441\u0435 \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u043a\u0430. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0451\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443&#8230; <\/p>\n<p><strong>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/strong><\/p>\n<p>\u0414\u0430\u043d\u044b \u0434\u0432\u0430 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430: <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\"><strong>\u043d\u043e\u043c\u0435\u0440 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"111\" width=\"111\">\n<p align=\"left\"><strong>\u041d\u0430\u0447\u0430\u043b\u043e<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041a\u043e\u043d\u0435\u0446<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0418\u043c\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"111\" width=\"111\">\n<p align=\"left\">x1_start<\/p>\n<\/td>\n<td>\n<p align=\"left\">x1_end<\/p>\n<\/td>\n<td>\n<p align=\"left\">A<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"111\" width=\"111\">\n<p align=\"left\">x2_start<\/p>\n<\/td>\n<td>\n<p align=\"left\">x2_end<\/p>\n<\/td>\n<td>\n<p align=\"left\">B<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c:<\/p>\n<p>1&#8212;<strong>\u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f <\/strong>\u043b\u0438 \u044d\u0442\u0438 \u0434\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430?<br \/>2&#8212;<strong>\u043f\u043e\u0433\u043b\u043e\u0449\u0430\u0435\u0442 <\/strong>\u043b\u0438 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0434\u0440\u0443\u0433\u043e\u0439? <br \/>4&#8212;<strong>\u0441\u0442\u044b\u043a\u0443\u044e\u0442\u0441\u044f <\/strong>\u043b\u0438 \u044d\u0442\u0438 \u0434\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 <br \/>5&#8212;\u043f\u0440\u043e\u0447\u0435\u0435<\/p>\n<p>\u0422\u0443\u0442 \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0444\u0430\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\"><strong>#<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\"><strong>A<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\"><strong>B<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\"><strong>\u041f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f?<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[1 7]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[5 9]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0445\u043b\u0451\u0441\u0442<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[1 9]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[6 8]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412 \u0432\u043d\u0443\u0442\u0440\u0438 \u0410<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[0 1]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[1 2]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">0<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u043e\u043f\u0440\u0438\u043a\u0430\u0441\u0430\u044e\u0442\u0441\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">4<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[0 1]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[2 3]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">0<\/p>\n<\/td>\n<td>\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">5<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[0 1]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[1 1]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0442\u043e\u0447\u0435\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0441 \u043a\u0440\u0430\u044e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">6<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[7 7]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[0  9]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0442\u043e\u0447\u0435\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0432\u043d\u0443\u0442\u0440\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">7<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[0  5]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[5 9]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">0<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u043e\u043f\u0440\u0438\u043a\u0430\u0441\u0430\u044e\u0442\u0441\u044f<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 X \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0441\u0451, \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e: \u0430\u0434\u0440\u0435\u0441\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0432\u0440\u0435\u043c\u044f (time-stamp) \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0438 \u043f\u0440\u0438\u0431\u044b\u0442\u0438\u044f \u0430\u0432\u0442\u043e\u0431\u0443\u0441\u043e\u0432, \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435, \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0440\u0430\u0434\u0438\u043e \u0447\u0430\u0441\u0442\u043e\u0442. \u0421\u043b\u043e\u0432\u043e\u043c \u0432\u0441\u0451, \u0447\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0432\u0435\u043b\u0438\u0447\u0438\u043d.<\/p>\n<p><strong>\u0422\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f<\/strong><\/p>\n<p>\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0435 <strong>\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f<\/strong>, \u0435\u0441\u043b\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u043e\u0447\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043e\u0431\u043e\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u0445. <\/p>\n<p><strong>\u0423\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430\u044f (\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f) \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430<\/strong>\u00a0\u2014\u00a0\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0438\u043c\u0435\u044e\u0449\u0438\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043a\u043b\u044e\u0447\u0438, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"203\" width=\"203\">\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>AVERAGE Performance<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"203\" width=\"203\">\n<p align=\"left\">insertion sort<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0432\u0441\u0442\u0430\u0432\u043a\u0430\u043c\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u00bc\u00a0<em>n<\/em><sup>\u00a02<\/sup><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"203\" width=\"203\">\n<p align=\"left\">bubble sort<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u0443\u0437\u044b\u0440\u044c\u043a\u043e\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u00bd\u00a0<em>n<\/em><sup>\u00a02<\/sup><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"203\" width=\"203\">\n<p align=\"left\">mergesort<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0441\u043b\u0438\u044f\u043d\u0438\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><em>n<\/em>\u00a0log<sub>2<\/sub>\u00a0<em>n<\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0438\u043f\u0430 continuum<\/strong> &#8212; \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u0433\u0434\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c  \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong><\/p>\n<p>\u0412\u044b \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u043f\u043f\u0430\u0440\u0430\u0442 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u044b, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0432 \u0432\u0438\u0434\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u043f\u043e\u0442\u043e\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u044c \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u043a\u0442\u043e\u0440 Vy=(0; 1) \u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u0431\u0435\u0437\u0443\u043c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439. \u0422\u0430\u043a \u043d\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. <\/p>\n<p>\u0415\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0449\u0435. \u041d\u0430\u0434\u043e \u0432\u0437\u044f\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1: \u041f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u043e\u0447\u0435\u043a<\/strong><\/p>\n<p>\u041c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432\u0435\u043a\u0442\u043e\u0440\u044b \u0432 \u0432\u0438\u0434\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0442\u043e\u0447\u0435\u043a. \u041e\u0431\u0440\u0430\u0437\u043d\u043e \u0432\u044b\u0440\u0430\u0436\u0430\u044f\u0441\u044c, \u0440\u0430\u0441\u0449\u0435\u043f\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043d\u0430 \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438. \u0412\u043e\u0437\u044c\u043c\u0451\u043c \u0434\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0438\u0437 \u043d\u0438\u0445 \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u043e\u0447\u0435\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u0430\u0436\u0434\u0430\u044f \u0442\u043e\u0447\u043a\u0430, \u043a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0442\u0440\u0435\u043c\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.  <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"86\" width=\"86\">\n<p align=\"left\"><strong>\u2116<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"86\" width=\"86\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u0425<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (-N, -1, 0, 1, +N)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"86\" width=\"86\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f \u0441\u043a\u043e\u0431\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0447\u0430\u043b\u043e \u0438\u043b\u0438 \u043a\u043e\u043d\u0435\u0446 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430: [ \u0438\u043b\u0438 ]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"86\" width=\"86\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u043e\u043c\u0435\u0440 \u0441\u0430\u043c\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (1 2 3 4 5)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0438\u0437 4\u0445 \u0442\u043e\u0447\u0435\u043a.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2: \u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430<\/strong><\/p>\n<p>\u0412\u044b\u0431\u0435\u0440\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u043e\u0447\u0435\u043a \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0440\u0438 <strong>\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 <\/strong>\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043e\u043a \u0438\u043c\u0435\u0435\u0442 \u0442\u0443\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"75\" width=\"75\">\n<p align=\"left\"><strong>#<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"209\" width=\"209\">\n<p align=\"left\"><strong>\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u043a\u043e\u043c\u043f\u0430\u0440\u0430\u0442\u043e\u0440<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"75\" width=\"75\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"209\" width=\"209\">\n<p align=\"left\">\u043f\u043e \u0441\u043a\u043e\u0431\u043a\u0430\u043c <\/p>\n<\/td>\n<td>\n<p align=\"left\">[ &lt; ]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"75\" width=\"75\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"209\" width=\"209\">\n<p align=\"left\">\u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">1&lt;2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"75\" width=\"75\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td data-colwidth=\"209\" width=\"209\">\n<p align=\"left\">\u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0435 X<\/p>\n<\/td>\n<td>\n<p align=\"left\">1&lt;2<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0422\u0443\u0442 \u043d\u0443\u0436\u043d\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 (\u043f\u043e X) \u043d\u0435 \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u043b\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438  x \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0442\u0438\u043f\u0443 \u0441\u043a\u043e\u0431\u043a\u0438.   <\/p>\n<p><strong>\u0424\u0430\u0437\u0430 3 \u041f\u043e\u0438\u0441\u043a \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u0443 \u043d\u0430\u0441 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0442\u0440\u0438\u0436\u0434\u044b \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432.  \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a &#8212; \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e X. <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <strong>cross<\/strong>. \u0427\u0438\u0442\u0430\u0435\u043c \u0442\u043e\u0447\u043a\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441 \u043b\u0435\u0432\u0430-\u043d\u0430\u043f\u0440\u0430\u0432\u043e &#8212;&gt;. \u0415\u0441\u043b\u0438 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u0441\u043a\u043e\u0431\u043a\u0443, \u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c <strong>cross <\/strong>\u043d\u0430 +1 . \u0415\u0441\u043b\u0438 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0443\u044e\u0441\u044f \u0441\u043a\u043e\u0431\u043a\u0443, \u0442\u043e \u0432\u044b\u0447\u0438\u0442\u0430\u0435\u043c -1 \u0438\u0437 <strong>cross<\/strong>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0441\u043b\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong>cross <\/strong>\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 2, \u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0442\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u0438 \u043d\u0435 \u0437\u0430\u0442\u0435\u0439\u043b\u0435\u0432\u043e.  <\/p>\n<p><strong>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/strong><\/p>\n<p>\u0418\u0442\u0430\u043a, \u0442\u0430\u043d\u0446\u0443\u0435\u043c \u043e\u0442 \u043f\u0435\u0447\u043a\u0438&#8230; \u0422\u043e\u0447\u043a\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 <strong>IntervalPoints_t<\/strong>.<\/p>\n<pre><code class=\"cpp\">typedef enum {     INT_POINT_START = 1,     INT_POINT_END = 2,     INT_POINT_UNDEF = 0, } IntervalPoint_t;  typedef struct {     uint32_t val;     uint32_t num;     IntervalPoint_t type; } IntervalPoints_t;  typedef struct {     uint32_t start;     uint32_t end; } IntervalE_t;  typedef struct {     uint32_t start;     uint32_t size; } IntervalS_t; <\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u043d\u0430\u0431\u043e\u0440 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">#include \"interval.h\"  #include &lt;stdlib.h&gt; #include &lt;string.h&gt;  #include \"data_utils.h\" #include \"log.h\"   bool is_interval_e(const IntervalE_t* const Interval) {     bool res = false;     if(Interval-&gt;start &lt; Interval-&gt;end) {         res = true;     }     return res; }  bool IntervalConvert_e_s(const IntervalE_t* const in,                           IntervalS_t* const out) {     bool res = false;     res = is_interval_e(in);     if(res) {         out-&gt;start = in-&gt;start;         out-&gt;size = in-&gt;end - in-&gt;start;     }     return res; }  bool IntervalConvert_2_1(const IntervalS_t* const in,                           IntervalE_t* const out) {     bool res = false;     if(in) {         if(out) {             out-&gt;start = in-&gt;start;             out-&gt;end = in-&gt;start + in-&gt;size;         }     }     return res; }  static int comp_points(const void* elem1,                         const void* elem2) {     if((((IntervalPoints_t*)elem2)-&gt;val) &lt;         (((IntervalPoints_t*)elem1)-&gt;val))         return 1;     if((((IntervalPoints_t*)elem1)-&gt;val) &lt;        (((IntervalPoints_t*)elem2)-&gt;val))         return -1;     return 0; }  static int comp_num(const void* elem1,                      const void* elem2) {     int ret = 0;     if((((IntervalPoints_t*)elem2)-&gt;num) &lt;         (((IntervalPoints_t*)elem1)-&gt;num)   )         ret = 1;     if((((IntervalPoints_t*)elem1)-&gt;num) &lt;        (((IntervalPoints_t*)elem2)-&gt;num)   )         ret = -1;     return ret; }  static int comp_bracket(const void* elem1,                          const void* elem2) {     int ret = 0;     if((((IntervalPoints_t*)elem2)-&gt;type) &lt;         (((IntervalPoints_t*)elem1)-&gt;type)   )         ret = 1;     if((((IntervalPoints_t*)elem1)-&gt;type) &lt;         (((IntervalPoints_t*)elem2)-&gt;type)   )         ret = -1;     return ret; }   bool interval_intersect(const IntervalE_t* const A,                          const IntervalE_t* const B) {     bool res = false;     IntervalPoints_t Point[4] = {0};     Point[0].val = A-&gt;start;     Point[0].type = INT_POINT_START;     Point[0].num = 1;      Point[1].val = A-&gt;end;     Point[1].type = INT_POINT_END;     Point[1].num = 1;      Point[2].val = B-&gt;start;     Point[2].type = INT_POINT_START;     Point[2].num = 2;      Point[3].val = B-&gt;end;     Point[3].type = INT_POINT_END;     Point[3].num = 2;      mergeSort(Point, ARRAY_SIZE(Point),                sizeof(IntervalPoints_t), comp_bracket);        mergeSort(Point, ARRAY_SIZE(Point),                sizeof(IntervalPoints_t), comp_num);        mergeSort(Point, ARRAY_SIZE(Point),                sizeof(IntervalPoints_t), comp_points);      uint32_t i = 0;     int32_t cnt = 0;     for(i = 0; i &lt; ARRAY_SIZE(Point); i++) {         switch(Point[i].type) {             case INT_POINT_START:                 cnt++;                 break;             case INT_POINT_END:                 cnt--;                 break;             default:                 break;         }         if(1 &lt; cnt) {             res = true;             break;         }     }     return res; } <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0410 \u0444\u0443\u043d\u043a\u0446\u0438\u044f interval_intersect_continuum \u0438\u0449\u0435\u0442 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0445 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 true. <\/p>\n<pre><code class=\"cpp\">bool interval_intersect_continuum(const IntervalE_t* const A,                                   const IntervalE_t* const B) {     bool res = false;     bool spot_start = false;     bool spot_end = false;      IntervalE_t commom_e = {         .start = 0,         .end = 0,     };     IntervalPoints_t Point[4] = {0};     Point[0].val = A-&gt;start;     Point[0].type = INT_POINT_START;     Point[0].num = 1;      Point[1].val = A-&gt;end;     Point[1].type = INT_POINT_END;     Point[1].num = 1;      Point[2].val = B-&gt;start;     Point[2].type = INT_POINT_START;     Point[2].num = 2;      Point[3].val = B-&gt;end;     Point[3].type = INT_POINT_END;     Point[3].num = 2;      mergeSort(Point, ARRAY_SIZE(Point), sizeof(IntervalPoints_t), comp_bracket);     mergeSort(Point, ARRAY_SIZE(Point), sizeof(IntervalPoints_t), comp_num);     mergeSort(Point, ARRAY_SIZE(Point), sizeof(IntervalPoints_t), comp_points);      int32_t i = 0;     int32_t line_cnt = 0;     for(i = 0; i &lt; ARRAY_SIZE(Point); i++) {         switch(Point[i].type) {         case INT_POINT_START:             line_cnt++;             break;         case INT_POINT_END:             line_cnt--;             break;         default:             break;         }          if(2 == line_cnt) {             if(false == spot_start) {                 commom_e.start = Point[i].val;                 spot_start = true;             }         }          if(line_cnt &lt; 2) {             if(spot_start) {                 if(false == spot_end) {                     spot_end = true;                     commom_e.end = Point[i].val;                 }             }         }     }      IntervalS_t commom_s = {0};     res = IntervalConvert_e_s(&amp;commom_e, &amp;commom_s);     if(commom_s.size) {         res = true;     } else {         res = false;     }      return res; }<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f interval_is_dock \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0441\u0442\u044b\u043a\u0443\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0443 \u043a \u0434\u0440\u0443\u0433\u0443 \u0431\u0435\u0437 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0430. <\/p>\n<pre><code class=\"cpp\">bool interval_is_dock(const IntervalE_t* const pA, const IntervalE_t* const pB) {     bool dock = false;     if(pA-&gt;end == pB-&gt;start) {         dock = true;     }     if(pB-&gt;end == pA-&gt;start) {         dock = true;     }     return dock; } <\/code><\/pre>\n<p>\u0418 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b <strong>\u043f\u043e\u0433\u043b\u043e\u0449\u0430\u0435\u0442 <\/strong>\u0434\u0440\u0443\u0433\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b<\/p>\n<pre><code class=\"cpp\">static bool interval_is_a_in_b(const IntervalE_t* const pA,                                 const IntervalE_t* const pB) {     bool res = false;     if(pB-&gt;start &lt;= pA-&gt;start) {         if(pA-&gt;end &lt;= pB-&gt;end) {             res = true;         }     }     return res; }  bool interval_is_merge(IntervalE_t* const pA,                         IntervalE_t* const pB) {     bool res = false;     res = interval_is_a_in_b(pA, pB);     if(false == res) {         res = interval_is_a_in_b(pB, pA);     }     return res; }<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0435\u0441\u044c \u0434\u0436\u0435\u043d\u0442\u0435\u043b\u044c\u043c\u0435\u043d\u0441\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440. <\/p>\n<p>\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0443 \u043d\u0430\u0434 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c\u0438 \u043b\u0443\u0447\u0448\u0435 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong>interval<\/strong>. \u042d\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0412\u0430\u043c \u043c\u043d\u043e\u0433\u043e \u0433\u0434\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u0438\u043b\u0438 \u043f\u0440\u0438 \u043f\u0443\u0441\u043a\u0435  NVRAM.<\/p>\n<p><strong>\u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c<\/strong><\/p>\n<p>\u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0446\u0435\u043b\u0443\u044e \u0430\u043b\u0433\u0435\u0431\u0440\u0443 \u043d\u0430\u0434 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c\u0438. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432, \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432, \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043d\u0430 \u0447\u0438\u0441\u043b\u043e, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 &#171;\u0438&#187;, &#171;\u0438\u043b\u0438&#187;, &#171;\u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0435 \u0438\u043b\u0438&#187;, &#171;\u043d\u0435\u0442&#187; \u043c\u0435\u0436\u0434\u0443 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0433\u043e\u0435 [] \u0438 \u043d\u0435\u0441\u0442\u0440\u043e\u0433\u043e\u0435 () \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u043d\u0438\u0446 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 (\u043a\u0430\u043a \u0432 \u0448\u043a\u043e\u043b\u0435). \u041a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b-\u043b\u0443\u0447\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u0430\u043c\u0430\u044f \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 &#8212; \u044d\u0442\u043e \u0432\u0441\u0451 \u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043d\u0430 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0438 \u043d\u0430 \u043f\u043e\u0433\u043b\u043e\u0449\u0435\u043d\u0438\u0435. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 &#8212; \u0447\u0438\u0441\u0442\u043e \u0438\u0437 \u0430\u043a\u0430\u0434\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430.<\/p>\n<p><strong>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0438<\/strong><\/p>\n<p>1&#8212;\u041f\u043e\u0438\u0441\u043a \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u0432 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0430.<\/p>\n<p>2&#8212;\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430\u0445. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u0434\u043b\u044f NVRAM \u043d\u0430 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438.<\/p>\n<p>3&#8212;\u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c \u0413\u0430\u043d\u0442\u0430 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u0445 \u0437\u0430\u0434\u0430\u0447.<\/p>\n<p>4&#8212;\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>memmove()<\/strong><\/p>\n<p><strong>\u0418\u0442\u043e\u0433<\/strong><\/p>\n<p>\u0423\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0444\u0430\u043a\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f\/\u043f\u043e\u0433\u043b\u043e\u0449\u0435\u043d\u0438\u044f \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432. \u042d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0434\u043e\u0440\u043e\u0433\u0443 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441 NVRAM \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043d\u044b\u0445 \u043f\u0440\u043e\u0448\u0438\u0432\u043e\u043a \u0438 \u043c\u043d\u043e\u0433\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e. <\/p>\n<p><strong>\u0421\u0441\u044b\u043b\u043a\u0438<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"106\" width=\"106\">\n<p align=\"left\"><strong>\u2116<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>URL<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"106\" width=\"106\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0417\u0430\u0434\u0430\u0447\u0430 \u043e \u0412\u044b\u0431\u043e\u0440\u0435 \u0411\u0438\u043b\u0435\u0442\u043e\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/852100\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/852100\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"106\" width=\"106\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td>\n<p align=\"left\">NVRAM \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/706972\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/706972\/<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"106\" width=\"106\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td>\n<p align=\"left\">ISO 26262-6 \u0440\u0430\u0437\u0431\u043e\u0440 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 (\u0438\u043b\u0438 \u043a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0441\u043e\u0444\u0442)<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/habr.com\/ru\/articles\/757216\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/articles\/757216\/<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/892526\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">57.14% <\/span><span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span><span class=\"tm-article-poll__answer-votes\">28<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 57.14%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">42.86% <\/span><span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">21<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 42.86%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 49 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 7 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/892526\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u0412\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">64.71% <\/span><span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span><span class=\"tm-article-poll__answer-votes\">33<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 64.71%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">35.29% <\/span><span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">18<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 35.29%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b 51 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 4 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. <\/div>\n<p><!--]--><\/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=\"https:\/\/habr.com\/ru\/articles\/892526\/\"> https:\/\/habr.com\/ru\/articles\/892526\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0442\u0435\u043a\u0441\u0442\u0435 \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435 \u0437\u0430\u0447\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u043d\u0443\u0436\u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430.<\/p>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u043e \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u043e\u0432 \u0438 NVRAM, \u0447\u0442\u043e\u0431\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c, \u0447\u0442\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u0438\u043b\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f. <\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0412\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a. \u041f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c \u043e\u0442 \u0438 \u0434\u043e. \u041d\u0430\u0434\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0435\u0442\u0441\u044f \u0441 \u0442\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0434\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u0432 Flash \u043f\u0430\u043c\u044f\u0442\u044c. \u041d\u0430\u0434\u043e \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 Flash \u043f\u0430\u043c\u044f\u0442\u0438. \u0415\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u0432\u044b\u0434\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p>\u0422\u0440\u0435\u0442\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/757216\/\" rel=\"noopener noreferrer nofollow\">\u041f\u041e ISO-26262<\/a> \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c \u0432 run-time.  <\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/757216\/\" rel=\"noopener noreferrer nofollow\">\u041f\u041e ISO-26262<\/a> \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u043d\u0430 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442\u044c <\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043f\u0440\u043e\u0441\u0442\u0430\u044f  \u0437\u0430\u0434\u0430\u0447\u043a\u0430, \u043e\u0434\u043d\u0430\u043a\u043e, \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0432 \u043a\u043e\u0434\u0435 &#8212; \u044d\u0442\u043e \u0432\u043e\u0432\u0441\u0435 \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u043a\u0430. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0451\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443&#8230; <\/p>\n<p><strong>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/strong><\/p>\n<p>\u0414\u0430\u043d\u044b \u0434\u0432\u0430 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430: <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\"><strong>\u043d\u043e\u043c\u0435\u0440 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"111\" width=\"111\">\n<p align=\"left\"><strong>\u041d\u0430\u0447\u0430\u043b\u043e<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041a\u043e\u043d\u0435\u0446<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0418\u043c\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"111\" width=\"111\">\n<p align=\"left\">x1_start<\/p>\n<\/td>\n<td>\n<p align=\"left\">x1_end<\/p>\n<\/td>\n<td>\n<p align=\"left\">A<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"111\" width=\"111\">\n<p align=\"left\">x2_start<\/p>\n<\/td>\n<td>\n<p align=\"left\">x2_end<\/p>\n<\/td>\n<td>\n<p align=\"left\">B<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c:<\/p>\n<p>1&#8212;<strong>\u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f <\/strong>\u043b\u0438 \u044d\u0442\u0438 \u0434\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430?<br \/>2&#8212;<strong>\u043f\u043e\u0433\u043b\u043e\u0449\u0430\u0435\u0442 <\/strong>\u043b\u0438 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0434\u0440\u0443\u0433\u043e\u0439? <br \/>4&#8212;<strong>\u0441\u0442\u044b\u043a\u0443\u044e\u0442\u0441\u044f <\/strong>\u043b\u0438 \u044d\u0442\u0438 \u0434\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 <br \/>5&#8212;\u043f\u0440\u043e\u0447\u0435\u0435<\/p>\n<p>\u0422\u0443\u0442 \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0444\u0430\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\"><strong>#<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\"><strong>A<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\"><strong>B<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\"><strong>\u041f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f?<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[1 7]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[5 9]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0445\u043b\u0451\u0441\u0442<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[1 9]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[6 8]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412 \u0432\u043d\u0443\u0442\u0440\u0438 \u0410<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[0 1]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[1 2]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">0<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u043e\u043f\u0440\u0438\u043a\u0430\u0441\u0430\u044e\u0442\u0441\u044f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">4<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[0 1]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[2 3]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">0<\/p>\n<\/td>\n<td>\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">5<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[0 1]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[1 1]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0442\u043e\u0447\u0435\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0441 \u043a\u0440\u0430\u044e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">6<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[7 7]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[0  9]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0442\u043e\u0447\u0435\u0447\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0432\u043d\u0443\u0442\u0440\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"91\" width=\"91\">\n<p align=\"left\">7<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">[0  5]<\/p>\n<\/td>\n<td data-colwidth=\"63\" width=\"63\">\n<p align=\"left\">[5 9]<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p align=\"left\">0<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0441\u043e\u043f\u0440\u0438\u043a\u0430\u0441\u0430\u044e\u0442\u0441\u044f<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 X \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0441\u0451, \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e: \u0430\u0434\u0440\u0435\u0441\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0432\u0440\u0435\u043c\u044f (time-stamp) \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0438 \u043f\u0440\u0438\u0431\u044b\u0442\u0438\u044f \u0430\u0432\u0442\u043e\u0431\u0443\u0441\u043e\u0432, \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435, \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0440\u0430\u0434\u0438\u043e \u0447\u0430\u0441\u0442\u043e\u0442. \u0421\u043b\u043e\u0432\u043e\u043c \u0432\u0441\u0451, \u0447\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0432\u0435\u043b\u0438\u0447\u0438\u043d.<\/p>\n<p><strong>\u0422\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f<\/strong><\/p>\n<p>\u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0435 <strong>\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0442\u0441\u044f<\/strong>, \u0435\u0441\u043b\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u043e\u0447\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043e\u0431\u043e\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u0445. <\/p>\n<p><strong>\u0423\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u0430\u044f (\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f) \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430<\/strong>\u00a0\u2014\u00a0\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0438\u043c\u0435\u044e\u0449\u0438\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u043a\u043b\u044e\u0447\u0438, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"203\" width=\"203\">\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>AVERAGE Performance<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"203\" width=\"203\">\n<p align=\"left\">insertion sort<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0432\u0441\u0442\u0430\u0432\u043a\u0430\u043c\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u00bc\u00a0<em>n<\/em><sup>\u00a02<\/sup><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"203\" width=\"203\">\n<p align=\"left\">bubble sort<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u0443\u0437\u044b\u0440\u044c\u043a\u043e\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u00bd\u00a0<em>n<\/em><sup>\u00a02<\/sup><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"203\" width=\"203\">\n<p align=\"left\">mergesort<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0441\u043b\u0438\u044f\u043d\u0438\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"left\"><em>n<\/em>\u00a0log<sub>2<\/sub>\u00a0<em>n<\/em><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0438\u043f\u0430 continuum<\/strong> &#8212; \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u0433\u0434\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c  \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong><\/p>\n<p>\u0412\u044b \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u043f\u043f\u0430\u0440\u0430\u0442 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u044b, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0432 \u0432\u0438\u0434\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u043f\u043e\u0442\u043e\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u044c \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u043a\u0442\u043e\u0440 Vy=(0; 1) \u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u0431\u0435\u0437\u0443\u043c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439. \u0422\u0430\u043a \u043d\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. <\/p>\n<p>\u0415\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0449\u0435. \u041d\u0430\u0434\u043e \u0432\u0437\u044f\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1: \u041f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u043e\u0447\u0435\u043a<\/strong><\/p>\n<p>\u041c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432\u0435\u043a\u0442\u043e\u0440\u044b \u0432 \u0432\u0438\u0434\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0442\u043e\u0447\u0435\u043a. \u041e\u0431\u0440\u0430\u0437\u043d\u043e \u0432\u044b\u0440\u0430\u0436\u0430\u044f\u0441\u044c, \u0440\u0430\u0441\u0449\u0435\u043f\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043d\u0430 \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438. \u0412\u043e\u0437\u044c\u043c\u0451\u043c \u0434\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0438\u0437 \u043d\u0438\u0445 \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u043e\u0447\u0435\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u0430\u0436\u0434\u0430\u044f \u0442\u043e\u0447\u043a\u0430, \u043a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0442\u0440\u0435\u043c\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.  <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"86\" width=\"86\">\n<p align=\"left\"><strong>\u2116<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"86\" width=\"86\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u0425<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (-N, -1, 0, 1, +N)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"86\" width=\"86\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0422\u0438\u043f \u0441\u043a\u043e\u0431\u043a\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0447\u0430\u043b\u043e \u0438\u043b\u0438 \u043a\u043e\u043d\u0435\u0446 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430: [ \u0438\u043b\u0438 ]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"86\" width=\"86\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u043e\u043c\u0435\u0440 \u0441\u0430\u043c\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e (1 2 3 4 5)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0438\u0437 4\u0445 \u0442\u043e\u0447\u0435\u043a.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2: \u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430<\/strong><\/p>\n<p>\u0412\u044b\u0431\u0435\u0440\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u043e\u0447\u0435\u043a \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0440\u0438 <strong>\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 <\/strong>\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043e\u043a \u0438\u043c\u0435\u0435\u0442 \u0442\u0443\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"75\" width=\"75\">\n<p align=\"left\"><strong>#<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"209\" width=\"209\">\n<p align=\"left\"><strong>\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u043a\u043e\u043c\u043f\u0430\u0440\u0430\u0442\u043e\u0440<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"75\" width=\"75\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"209\" width=\"209\">\n<p align=\"left\">\u043f\u043e \u0441\u043a\u043e\u0431\u043a\u0430\u043c <\/p>\n<\/td>\n<td>\n<p align=\"left\">[ &lt; ]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"75\" width=\"75\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"209\" width=\"209\">\n<p align=\"left\">\u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">1&lt;2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"75\" width=\"75\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td data-colwidth=\"209\" width=\"209\">\n<p align=\"left\">\u043f\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0435 X<\/p>\n<\/td>\n<td>\n<p align=\"left\">1&lt;2<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0422\u0443\u0442 \u043d\u0443\u0436\u043d\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 (\u043f\u043e X) \u043d\u0435 \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u043b\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438  x \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0442\u0438\u043f\u0443 \u0441\u043a\u043e\u0431\u043a\u0438.   <\/p>\n<p><strong>\u0424\u0430\u0437\u0430 3 \u041f\u043e\u0438\u0441\u043a \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f<\/strong><\/p>\n<p>\u0412\u043e\u0442 \u0443 \u043d\u0430\u0441 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0442\u0440\u0438\u0436\u0434\u044b \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432.  \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a &#8212; \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043f\u043e X. <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <strong>cross<\/strong>. \u0427\u0438\u0442\u0430\u0435\u043c \u0442\u043e\u0447\u043a\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441 \u043b\u0435\u0432\u0430-\u043d\u0430\u043f\u0440\u0430\u0432\u043e &#8212;&gt;. \u0415\u0441\u043b\u0438 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u0441\u043a\u043e\u0431\u043a\u0443, \u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c <strong>cross <\/strong>\u043d\u0430 +1 . \u0415\u0441\u043b\u0438 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0443\u044e\u0441\u044f \u0441\u043a\u043e\u0431\u043a\u0443, \u0442\u043e \u0432\u044b\u0447\u0438\u0442\u0430\u0435\u043c -1 \u0438\u0437 <strong>cross<\/strong>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0441\u043b\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong>cross <\/strong>\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 2, \u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0442\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u0438 \u043d\u0435 \u0437\u0430\u0442\u0435\u0439\u043b\u0435\u0432\u043e.  <\/p>\n<p><strong>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/strong><\/p>\n<p>\u0418\u0442\u0430\u043a, \u0442\u0430\u043d\u0446\u0443\u0435\u043c \u043e\u0442 \u043f\u0435\u0447\u043a\u0438&#8230; \u0422\u043e\u0447\u043a\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 <strong>IntervalPoints_t<\/strong>.<\/p>\n<pre><code class=\"cpp\">typedef enum {     INT_POINT_START = 1,     INT_POINT_END = 2,     INT_POINT_UNDEF = 0, } IntervalPoint_t;  typedef struct {     uint32_t val;     uint32_t num;     IntervalPoint_t type; } IntervalPoints_t;  typedef struct {     uint32_t start;     uint32_t end; } IntervalE_t;  typedef struct {     uint32_t start;     uint32_t size; } IntervalS_t; <\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u043d\u0430\u0431\u043e\u0440 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">#include \"interval.h\"  #include &lt;stdlib.h&gt; #include &lt;string.h&gt;  #include \"data_utils.h\" #include \"log.h\"   bool is_interval_e(const IntervalE_t* const Interval) {     bool res = false;     if(Interval-&gt;start &lt; Interval-&gt;end) {         res = true;     }     return res; }  bool IntervalConvert_e_s(const IntervalE_t* const in,                           IntervalS_t* const out) {     bool res = false;     res = is_interval_e(in);     if(res) {         out-&gt;start = in-&gt;start;         out-&gt;size = in-&gt;end - in-&gt;start;     }     return res; }  bool IntervalConvert_2_1(const IntervalS_t* const in,                           IntervalE_t* const out) {     bool res = false;     if(in) {         if(out) {             out-&gt;start = in-&gt;start;             out-&gt;end = in-&gt;start + in-&gt;size;         }     }     return res; }  static int comp_points(const void* elem1,                         const void* elem2) {     if((((IntervalPoints_t*)elem2)-&gt;val) &lt;         (((IntervalPoints_t*)elem1)-&gt;val))         return 1;     if((((IntervalPoints_t*)elem1)-&gt;val) &lt;        (((IntervalPoints_t*)elem2)-&gt;val))         return -1;     return 0; }  static int comp_num(const void* elem1,                      const void* elem2) {     int ret = 0;     if((((IntervalPoints_t*)elem2)-&gt;num) &lt;         (((IntervalPoints_t*)elem1)-&gt;num)   )         ret = 1;     if((((IntervalPoints_t*)elem1)-&gt;num) &lt;        (((IntervalPoints_t*)elem2)-&gt;num)   )         ret = -1;     return ret; }  static int comp_bracket(const void* elem1,                          const void* elem2) {     int ret = 0;     if((((IntervalPoints_t*)elem2)-&gt;type) &lt;         (((IntervalPoints_t*)elem1)-&gt;type)   )         ret = 1;     if((((IntervalPoints_t*)elem1)-&gt;type) &lt;         (((IntervalPoints_t*)elem2)-&gt;type)   )         ret = -1;     return ret; }   bool interval_intersect(const IntervalE_t* const A,                          const IntervalE_t* const B) {     bool res = false;     IntervalPoints_t Point[4] = {0};     Point[0].val = A-&gt;start;     Point[0].type = INT_POINT_START;     Point[0].num = 1;      Point[1].val = A-&gt;end;     Point[1].type = INT_POINT_END;     Point[1].num = 1;      Point[2].val = B-&gt;start;     Point[2].type = INT_POINT_START;     Point[2].num = 2;      Point[3].val = B-&gt;end;     Point[3].type = INT_POINT_END;     Point[3].num = 2;      mergeSort(Point, ARRAY_SIZE(Point),                sizeof(IntervalPoints_t), comp_bracket);        mergeSort(Point, ARRAY_SIZE(Point),                sizeof(IntervalPoints_t), comp_num);        mergeSort(Point, ARRAY_SIZE(Point),                sizeof(IntervalPoints_t), comp_points);      uint32_t i = 0;     int32_t cnt = 0;     for(i = 0; i &lt; ARRAY_SIZE(Point); i++) {         switch(Point[i].type) {             case INT_POINT_START:                 cnt++;                 break;             case INT_POINT_END:                 cnt--;                 break;             default:                 break;         }         if(1 &lt; cnt) {             res = true;             break;         }     }     return res; } <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0410 \u0444\u0443\u043d\u043a\u0446\u0438\u044f interval_intersect_continuum \u0438\u0449\u0435\u0442 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u044f. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0445 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 true. <\/p>\n<pre><code class=\"cpp\">bool interval_intersect_continuum(const IntervalE_t* const A,                                   const IntervalE_t* const B) {     bool res = false;     bool spot_start = false;     bool spot_end = false;      IntervalE_t commom_e = {         .start = 0,         .end = 0,     };     IntervalPoints_t Point[4] = {0};     Point[0].val = A-&gt;start;     Point[0].type = INT_POINT_START;     Point[0].num = 1;      Point[1].val = A-&gt;end;     Point[1].type = INT_POINT_END;     Point[1].num = 1;      Point[2].val = B-&gt;start;     Point[2].type = INT_POINT_START;     Point[2].num = 2;      Point[3].val = B-&gt;end;     Point[3].type = INT_POINT_END;     Point[3].num = 2;      mergeSort(Point, ARRAY_SIZE(Point), sizeof(IntervalPoints_t), comp_bracket);     mergeSort(Point, ARRAY_SIZE(Point), sizeof(IntervalPoints_t), comp_num);     mergeSort(Point, ARRAY_SIZE(Point), sizeof(IntervalPoints_t), comp_points);      int32_t i = 0;     int32_t line_cnt = 0;     for(i = 0; i &lt; ARRAY_SIZE(Point); i++) {         switch(Point[i].type) {         case INT_POINT_START:             line_cnt++;             break;         case INT_POINT_END:             line_cnt--;             break;         default:             break;         }          if(2 == line_cnt) {             if(false == spot_start) {                 commom_e.start = Point[i].val;                 spot_start = true;             }         }          if(line_cnt &lt; 2) {             if(spot_start) {                 if(false == spot_end) {                     spot_end = true;                     commom_e.end = Point[i].val;                 }             }         }     }      IntervalS_t commom_s = {0};     res = IntervalConvert_e_s(&amp;commom_e, &amp;commom_s);     if(commom_s.size) {         res = true;     } else {         res = false;     }      return res; }<\/code><\/pre>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f interval_is_dock \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0447\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u0441\u0442\u044b\u043a\u0443\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0443 \u043a \u0434\u0440\u0443\u0433\u0443 \u0431\u0435\u0437 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0430. <\/p>\n<pre><code class=\"cpp\">bool interval_is_dock(const IntervalE_t* const pA, const IntervalE_t* const pB) {     bool dock = false;     if(pA-&gt;end == pB-&gt;start) {         dock = true;     }     if(pB-&gt;end == pA-&gt;start) {         dock = true;     }     return dock; } <\/code><\/pre>\n<p>\u0418 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b <strong>\u043f<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-467427","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467427","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=467427"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467427\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}