<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185349</guid>
        <pubDate>Sat, 15 Jun 2002 13:05:07 +0000</pubDate>
        <title>Помогите с поиском в графах на ПРОЛОГе</title>
        <link>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185349</link>
        <description><![CDATA[Натали: Этот сайт я уже смотрела..... :( К сожалению немного не то....<br>Но все равно спасибо!]]></description>
        <author>Натали</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185348</guid>
        <pubDate>Fri, 14 Jun 2002 19:23:58 +0000</pubDate>
        <title>Помогите с поиском в графах на ПРОЛОГе</title>
        <link>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185348</link>
        <description><![CDATA[tatar_0x4E: Try this one:<br><br><a class='tag-url' href='http://kti.ms.mff.cuni.cz/~bartak/prolog/graph_search.html' target='_blank'>http://kti.ms.mff.cuni.cz/~bartak/prolog/graph_search.html</a>]]></description>
        <author>tatar_0x4E</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185347</guid>
        <pubDate>Fri, 14 Jun 2002 15:36:52 +0000</pubDate>
        <title>Помогите с поиском в графах на ПРОЛОГе</title>
        <link>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185347</link>
        <description><![CDATA[DEiL: :o]]></description>
        <author>DEiL</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185346</guid>
        <pubDate>Fri, 14 Jun 2002 15:22:55 +0000</pubDate>
        <title>Помогите с поиском в графах на ПРОЛОГе</title>
        <link>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185346</link>
        <description><![CDATA[Натали: Щас сделаем на русском...... извиняюсь за корявый перевод &nbsp;:-/<br>и кривой граф.....<br>В общем надо определить предикат <br>поиск(+Начало, +Цель, +Расширить, +Стратегия, -Путь) чтобы програмка искала путь на вопрос &nbsp;поиск(a,цель,граф,'вширину',П) и можно было задавать вид поиска: в ширину или в глубину<br>Расширить должно быть тоже предикатом <br> &nbsp; &nbsp; &nbsp;расширить(+N,-SL)<br>который вычислял бы список последующих пунктов SL от пункта N.<br><br>Предикат Цель действителен в целевой точке соответственно<br><br>Да.... надо использовать оператор '=..' : например<br> &nbsp; &nbsp;... G =.. [Цель,Состояние], G ...<br>который создает цель Цель(Состояние)' . При этом перввый элемент списка становится предикатом, &nbsp;а все последующие - аргументами<br><br>Стратегия имеет значения 'вглубину' и 'вширину' , и использует соответствующие методы поиска<br><br>Используйте список целей, который содержит все образованные на данный момент пути и расширяется при поиске решения. Способ расширения будет различаться в зависимости от используемого метода поиска.<br><br>Испытайте программу с помощю следующего графа:<br>(начальный пункт: a , целевой пункт: g)<br>*/<br><br>/*<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;d---<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^ &nbsp; &nbsp; \<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &nbsp; \<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &nbsp; &nbsp;v<br> &nbsp; &nbsp; &nbsp; &nbsp;a----&gt;c----&gt;f<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &nbsp; ^ &nbsp; &nbsp; &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &nbsp; &#124; &nbsp; &nbsp; &nbsp; &nbsp;&#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;v &nbsp; &nbsp; &nbsp; &#124; &nbsp; &nbsp; &nbsp; v<br> &nbsp; &nbsp; &nbsp; &nbsp;b----&gt;i&lt;----g<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124;\ &nbsp; &nbsp; &nbsp;^<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; \ &nbsp; &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp;\ &nbsp; &nbsp;&#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp;-&gt;h&lt;--<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br> &nbsp; &nbsp; &nbsp; &nbsp;v &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;e----&gt;k &nbsp; &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &nbsp; &#124; &nbsp; &nbsp; &nbsp;&#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;v &nbsp; &nbsp; &nbsp; v &nbsp; &nbsp; /<br> &nbsp; &nbsp; &nbsp; &nbsp;j----&gt; l ---<br>*/]]></description>
        <author>Натали</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185345</guid>
        <pubDate>Fri, 14 Jun 2002 14:57:27 +0000</pubDate>
        <title>Помогите с поиском в графах на ПРОЛОГе</title>
        <link>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185345</link>
        <description><![CDATA[GrAnd: А случайно на русском языке нет ;D]]></description>
        <author>GrAnd</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185344</guid>
        <pubDate>Fri, 14 Jun 2002 14:40:23 +0000</pubDate>
        <title>Помогите с поиском в графах на ПРОЛОГе</title>
        <link>https://forum.sources.ru/index.php?showtopic=26224&amp;view=findpost&amp;p=185344</link>
        <description><![CDATA[Натали: Помогите!!!!! &nbsp;Срочно нужна програмка поиска в гафе с заданием вида поиска (в глубину или в ширину)!!!!! &nbsp; ??? &nbsp;:'(<br>Вот полное условие :<br><br>/* search(a,end,graph,'bredth-first',P)<br>1. Define a predicate<br><br> &nbsp; &nbsp; search(+Start,+EndP,+Expand,+Strategy,-Path)<br><br>which implements a problem independent search algorithm.<br><br>Expand should be the name of a predicate<br><br> &nbsp; &nbsp; &nbsp;expand(+N,-SL)<br><br>which computes the list of successors SL of a node N.<br><br>EndP should be a predicate which is true on a target node.<br><br>Use the so called univ opretator '=..' for dynamicly constructing a goal:<br> &nbsp; &nbsp;... G =.. [EndP,State], G ...<br>constructs the goal 'EndP(State)' and proves it, if the value of<br>EndP ist a predicate name.(the first element of the list becomes <br>the predicate name, all the other elements become arguments.)<br><br>Strategy may have values 'depth-first' und 'breadth-first'<br>using the corresponding search strategy.<br><br>Try to minimize strategy dependent parts in the program code:<br>Use an agende (list of tasks) which contains all currently<br>constructed partial pathes which must be expanded to<br>search for a solution. Restrict the effect of different strategies<br>to the way of handling this agenda<br><br>Test the program with the following graph:<br>(start node: a , target node g)<br>*/<br><br>/*<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;d---<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^ &nbsp; \<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp;\<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; v<br> &nbsp; &nbsp; &nbsp; &nbsp;a----&gt;c----&gt;f<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; ^ &nbsp; &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &#124; &nbsp; &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;v &nbsp; &nbsp; &#124; &nbsp; &nbsp; v<br> &nbsp; &nbsp; &nbsp; &nbsp;b----&gt;i&lt;----g<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124;\ &nbsp; &nbsp;^<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; \ &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp;\ &nbsp;&#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; -&gt;h&lt;--<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &nbsp; &nbsp; \<br> &nbsp; &nbsp; &nbsp; &nbsp;v &nbsp; &nbsp; &nbsp; &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;e----&gt;k &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;&#124; &nbsp; &nbsp; &#124; &nbsp; &#124;<br> &nbsp; &nbsp; &nbsp; &nbsp;v &nbsp; &nbsp; v &nbsp; /<br> &nbsp; &nbsp; &nbsp; &nbsp;j----&gt;l---<br>*/]]></description>
        <author>Натали</author>
        <category>Алгоритмы</category>
      </item>
	
      </channel>
      </rss>
	