{"id":335248,"date":"2022-07-02T15:00:14","date_gmt":"2022-07-02T15:00:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=335248"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=335248","title":{"rendered":"<span>[\u0413\u0440\u043e\u043a\u0430\u0435\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b] \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 \u0448\u0438\u0440\u0438\u043d\u0443 \u043d\u0430 C# (BFS)<\/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<p>\u0412\u0441\u0435\u043c \u0447\u0438\u0442\u0430\u044e\u0449\u0438\u043c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e <em>\u0437\u0434\u0440\u0430\u0441\u0442\u0435<\/em>. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0441\u0432\u043e\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 \u0448\u0438\u0440\u0438\u043d\u0443 (BFS) \u043d\u0430 C#. <\/p>\n<blockquote>\n<p>\u041d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043c\u043e\u0435\u0433\u043e \u0433\u043e\u0432\u043d\u043e\u043a\u043e\u0434\u0430 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u041d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0430\u043c \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0432\u0441\u0435\u0433\u043e. \u042f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0430\u0436\u0435 \u043a \u043b\u0443\u0447\u0448\u0435\u043c\u0443.<\/p>\n<\/blockquote>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043a\u0440\u0430\u0442\u043a\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c \u0432\u0430\u0441 \u0441  \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430<\/p>\n<h2>\u0427\u0442\u043e \u043a \u0447\u0435\u043c\u0443?<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u044f \u0441\u043e\u0437\u0434\u0430\u043b <strong>\u043a\u043b\u0430\u0441\u0441<\/strong> \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>BFS<\/strong>:<\/p>\n<pre><code class=\"cs\">class BFS{    }<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u044f \u043d\u0430\u0447\u0430\u043b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 <strong>\u043f\u043e\u043b\u044f<\/strong> \u0438 <strong>\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/strong>, \u043a\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (StartValue)<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (GoalValue)<\/p>\n<\/li>\n<li>\n<p>\u0421\u043b\u043e\u0432\u0430\u0440\u044c \u0441 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u043c\u0438 (Graph)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0447\u0435\u0440\u0435\u0434\u044c (Queue)<\/p>\n<\/li>\n<li>\n<p>\u0418 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (UsedValues)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"cs\">class BFS     {         private string _startValue;         public string StartValue {              get { return _startValue; }              set { _startValue = value; }         }          private string _goalValue;         public string GoalValue         {             get { return _goalValue; }             set { _goalValue = value; }         }          private Dictionary&lt;string, string[]> _graph = new Dictionary&lt;string, string[]>();         public Dictionary&lt;string, string[]> Graph         {             get { return _graph; }             set { _graph = value; }         }          private Queue&lt;string> _queue = new Queue&lt;string>();         public Queue&lt;string> Queue         {             get { return _queue; }             set { _queue = value; }         }          private List&lt;string> _usedValues = new List&lt;string>();         public List&lt;string> UsedValues         {             get { return _usedValues; }             set { _usedValues = value; }         } }<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u0438\u043b <strong>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440<\/strong> \u043a\u043b\u0430\u0441\u0441\u0430: <\/p>\n<pre><code class=\"cs\">public BFS(string startValue, string goalValue, Dictionary&lt;string, string[]> graph) {   StartValue = startValue;   GoalValue = goalValue;   Graph = graph; }<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u043b <strong>\u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0438\u0441\u043a\u0430<\/strong> \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u0443\u0442\u0438:<\/p>\n<pre><code class=\"cs\">public void Search() {   Queue.Enqueue(StartValue);    while (Queue.Count != 0)   {     string node = Queue.Dequeue();     string[] vertites = Graph[node];      if (node == GoalValue)     {       return;     }      foreach (string vertite in vertites)     {       if (!UsedValues.Contains(vertite))       {         if (vertite == GoalValue)         {           if (Queue.Count > 0)           {             Queue.Dequeue();           }           Queue.Enqueue(node);           Queue.Enqueue(GoalValue);           return;         }         Queue.Enqueue(vertite);        }      }     UsedValues.Add(node);   } }<\/code><\/pre>\n<p>\u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, <strong>\u043c\u0435\u0442\u043e\u0434 <\/strong>\u0432\u044b\u0432\u043e\u0434\u0430 <strong>\u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u0443\u0442\u0438<\/strong>:<\/p>\n<pre><code class=\"cs\">public void ShortestWay() {     Search();      Console.Write($\"{StartValue} \");     foreach (string value in Queue)     {       Console.Write($\"--> {value} \");     } }<\/code><\/pre>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h2>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 <strong>\u0433\u0440\u0430\u0444<\/strong>:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6f4\/4b6\/8fc\/6f44b68fc12fe68e09b07fa066f90e2d.png\" width=\"417\" height=\"424\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6f4\/4b6\/8fc\/6f44b68fc12fe68e09b07fa066f90e2d.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u0439 \u043f\u0443\u0442\u044c \u043e\u0442 A \u0434\u043e B \u0440\u0430\u0432\u0435\u043d <strong>\u0410 -> P -> B<\/strong><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u0432\u044b\u0432\u043e\u0434<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8f7\/c1b\/d5d\/8f7c1bd5d64d28a3aa80c39d988a05e5.png\" width=\"114\" height=\"25\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8f7\/c1b\/d5d\/8f7c1bd5d64d28a3aa80c39d988a05e5.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0442\u044c. \u041a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u0442\u043e\u043c\u0443 \u044f \u0441\u0438\u043b\u044c\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e \u043a\u0440\u0438\u0442\u0438\u043a\u0443 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u043f\u0440\u0438\u043c\u0443 \u0432\u0441\u0435 \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/p>\n<p>\u041a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043e\u0434, <a href=\"https:\/\/github.com\/prn-ic\/BreadthFirstSearch\" rel=\"noopener noreferrer nofollow\">\u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 GitHub<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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\/post\/674686\/\"> https:\/\/habr.com\/ru\/post\/674686\/<\/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<p>\u0412\u0441\u0435\u043c \u0447\u0438\u0442\u0430\u044e\u0449\u0438\u043c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e <em>\u0437\u0434\u0440\u0430\u0441\u0442\u0435<\/em>. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0441\u0432\u043e\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 \u0448\u0438\u0440\u0438\u043d\u0443 (BFS) \u043d\u0430 C#. <\/p>\n<blockquote>\n<p>\u041d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043c\u043e\u0435\u0433\u043e \u0433\u043e\u0432\u043d\u043e\u043a\u043e\u0434\u0430 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u041d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u0430\u043c \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0432\u0441\u0435\u0433\u043e. \u042f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0430\u0436\u0435 \u043a \u043b\u0443\u0447\u0448\u0435\u043c\u0443.<\/p>\n<\/blockquote>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043a\u0440\u0430\u0442\u043a\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c \u0432\u0430\u0441 \u0441  \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430<\/p>\n<h2>\u0427\u0442\u043e \u043a \u0447\u0435\u043c\u0443?<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u044f \u0441\u043e\u0437\u0434\u0430\u043b <strong>\u043a\u043b\u0430\u0441\u0441<\/strong> \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>BFS<\/strong>:<\/p>\n<pre><code class=\"cs\">class BFS{    }<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u044f \u043d\u0430\u0447\u0430\u043b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 <strong>\u043f\u043e\u043b\u044f<\/strong> \u0438 <strong>\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/strong>, \u043a\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (StartValue)<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (GoalValue)<\/p>\n<\/li>\n<li>\n<p>\u0421\u043b\u043e\u0432\u0430\u0440\u044c \u0441 \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u043c\u0438 (Graph)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0447\u0435\u0440\u0435\u0434\u044c (Queue)<\/p>\n<\/li>\n<li>\n<p>\u0418 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (UsedValues)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"cs\">class BFS     {         private string _startValue;         public string StartValue {              get { return _startValue; }              set { _startValue = value; }         }          private string _goalValue;         public string GoalValue         {             get { return _goalValue; }             set { _goalValue = value; }         }          private Dictionary&lt;string, string[]> _graph = new Dictionary&lt;string, string[]>();         public Dictionary&lt;string, string[]> Graph         {             get { return _graph; }             set { _graph = value; }         }          private Queue&lt;string> _queue = new Queue&lt;string>();         public Queue&lt;string> Queue         {             get { return _queue; }             set { _queue = value; }         }          private List&lt;string> _usedValues = new List&lt;string>();         public List&lt;string> UsedValues         {             get { return _usedValues; }             set { _usedValues = value; }         } }<\/code><\/pre>\n<p>\u041e\u0431\u044a\u044f\u0432\u0438\u043b <strong>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440<\/strong> \u043a\u043b\u0430\u0441\u0441\u0430: <\/p>\n<pre><code class=\"cs\">public BFS(string startValue, string goalValue, Dictionary&lt;string, string[]> graph) {   StartValue = startValue;   GoalValue = goalValue;   Graph = graph; }<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u043b <strong>\u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0438\u0441\u043a\u0430<\/strong> \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u0443\u0442\u0438:<\/p>\n<pre><code class=\"cs\">public void Search() {   Queue.Enqueue(StartValue);    while (Queue.Count != 0)   {     string node = Queue.Dequeue();     string[] vertites = Graph[node];      if (node == GoalValue)     {       return;     }      foreach (string vertite in vertites)     {       if (!UsedValues.Contains(vertite))       {         if (vertite == GoalValue)         {           if (Queue.Count > 0)           {             Queue.Dequeue();           }           Queue.Enqueue(node);           Queue.Enqueue(GoalValue);           return;         }         Queue.Enqueue(vertite);        }      }     UsedValues.Add(node);   } }<\/code><\/pre>\n<p>\u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, <strong>\u043c\u0435\u0442\u043e\u0434 <\/strong>\u0432\u044b\u0432\u043e\u0434\u0430 <strong>\u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0435\u0433\u043e \u043f\u0443\u0442\u0438<\/strong>:<\/p>\n<pre><code class=\"cs\">public void ShortestWay() {     Search();      Console.Write($\"{StartValue} \");     foreach (string value in Queue)     {       Console.Write($\"--> {value} \");     } }<\/code><\/pre>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h2>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0442 <strong>\u0433\u0440\u0430\u0444<\/strong>:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u0439 \u043f\u0443\u0442\u044c \u043e\u0442 A \u0434\u043e B \u0440\u0430\u0432\u0435\u043d <strong>\u0410 -> P -> B<\/strong><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u0432\u044b\u0432\u043e\u0434<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0442\u044c. \u041a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430, \u0442\u043e\u043c\u0443 \u044f \u0441\u0438\u043b\u044c\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e \u043a\u0440\u0438\u0442\u0438\u043a\u0443 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u043f\u0440\u0438\u043c\u0443 \u0432\u0441\u0435 \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/p>\n<p>\u041a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043e\u0434, <a href=\"https:\/\/github.com\/prn-ic\/BreadthFirstSearch\" rel=\"noopener noreferrer nofollow\">\u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 GitHub<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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\/post\/674686\/\"> https:\/\/habr.com\/ru\/post\/674686\/<\/a><br \/><\/br><\/br><\/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-335248","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/335248","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=335248"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/335248\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}