<?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=9334&amp;view=findpost&amp;p=91129</guid>
        <pubDate>Mon, 26 May 2003 08:35:47 +0000</pubDate>
        <title>Очень простой вопрос.</title>
        <link>https://forum.sources.ru/index.php?showtopic=9334&amp;view=findpost&amp;p=91129</link>
        <description><![CDATA[@Hgpeu: Решается рекурсией, а код проги на Паскале вроде вот такой:<br><br>Вход: массив р, содержащий элементы любого типа;<br> &nbsp; &nbsp; &nbsp;N размер массива р<br><br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Procedure Reverse(m:integer);&#60;br&#62;var i,j:integer;&#60;br&#62;begin&#60;br&#62; &nbsp;i:=1;j:=m;&#60;br&#62; &nbsp;while i&#60;j do&#60;br&#62; &nbsp; &nbsp;begin&#60;br&#62; &nbsp; &nbsp; &nbsp;b:=p[i];p[i]:=p[j];p[j]:=b;&#60;br&#62; &nbsp; &nbsp; &nbsp;i:=i+1;j:=j-1;&#60;br&#62; &nbsp; &nbsp;end;&#60;br&#62;end;&#60;br&#62;Procedure AntiLex(m:integer);&#60;br&#62;var i:integer;&#60;br&#62;begin&#60;br&#62; &nbsp;if m=1&#60;br&#62; &nbsp;then вывод р&#60;br&#62; &nbsp;else for i:=1 to m do&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; AntiLex(m-1);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; if i&#60;m&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; then begin&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b:=p[i];p[i]:=p[m];p[m]:=b;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Reverse(m-1)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;end;&#60;br&#62;end;&#60;br&#62;begin&#60;br&#62; &nbsp;AntiLex(N);&#60;br&#62;end.</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>зы надеюсь, что правильно понял вопрос]]></description>
        <author>@Hgpeu</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9334&amp;view=findpost&amp;p=91128</guid>
        <pubDate>Mon, 26 May 2003 06:27:37 +0000</pubDate>
        <title>Очень простой вопрос.</title>
        <link>https://forum.sources.ru/index.php?showtopic=9334&amp;view=findpost&amp;p=91128</link>
        <description><![CDATA[ter: И очень неконкретный вопрос.]]></description>
        <author>ter</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9334&amp;view=findpost&amp;p=91127</guid>
        <pubDate>Mon, 26 May 2003 05:00:56 +0000</pubDate>
        <title>Очень простой вопрос.</title>
        <link>https://forum.sources.ru/index.php?showtopic=9334&amp;view=findpost&amp;p=91127</link>
        <description><![CDATA[Stasyn: Может, кто подскажет, как написать прогу, которая выводит все возможные перестановки n элементов массива, с возможностью выдачи запроса на вывод следующей перестановки.<br>Заранее благодарен. &nbsp; <br>]]></description>
        <author>Stasyn</author>
        <category>Алгоритмы</category>
      </item>
	
      </channel>
      </rss>
	