<?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=97136&amp;view=findpost&amp;p=732540</guid>
        <pubDate>Sun, 29 May 2005 20:04:51 +0000</pubDate>
        <title>Сортировка естественным слиянием&amp;#33;&amp;#33;&amp;#33;</title>
        <link>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732540</link>
        <description><![CDATA[Pourtous: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=97136&view=findpost&p=732535'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Yez &#064; <time class="tag-quote__quoted-time" datetime="2005-05-29T23:58:11+04:00">29.05.05, 19:58</time></span><div class='quote '><strong class='tag-b'>volvo877</strong><br>
 А откуда он значения берёт, merge ентат?</div></div><br>
Ну судя по исходнику из c.txt в который сам же пишет рандомовские числа.]]></description>
        <author>Pourtous</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732535</guid>
        <pubDate>Sun, 29 May 2005 19:58:11 +0000</pubDate>
        <title>Сортировка естественным слиянием&amp;#33;&amp;#33;&amp;#33;</title>
        <link>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732535</link>
        <description><![CDATA[Yez: <strong class='tag-b'>volvo877</strong><br>
 А откуда он значения берёт, merge е<span class="tag-color tag-color-named" data-value="blue" style="color: blue">то</span>т?]]></description>
        <author>Yez</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732501</guid>
        <pubDate>Sun, 29 May 2005 19:10:10 +0000</pubDate>
        <title>Сортировка естественным слиянием&amp;#33;&amp;#33;&amp;#33;</title>
        <link>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732501</link>
        <description><![CDATA[volvo877: Единственное, чем могу помочь - могу дать тебе другой исходник (но он рабочий, проверено  :yes: )]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732476</guid>
        <pubDate>Sun, 29 May 2005 18:29:25 +0000</pubDate>
        <title>Сортировка естественным слиянием&amp;#33;&amp;#33;&amp;#33;</title>
        <link>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732476</link>
        <description><![CDATA[Romtek: <strong class='tag-b'>Yez</strong>, ты FAQ и <a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=53375' target='_blank'>Полезные ссылки</a> смотрел?<br>
<a class='tag-url' href='http://forum.sources.ru/index.php?act=Search' target='_blank'><span class="tag-color tag-color-named" data-value="red" style="color: red">Поиск</span></a> использовал?  :angry:]]></description>
        <author>Romtek</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732452</guid>
        <pubDate>Sun, 29 May 2005 17:54:26 +0000</pubDate>
        <title>Сортировка естественным слиянием&amp;#33;&amp;#33;&amp;#33;</title>
        <link>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732452</link>
        <description><![CDATA[Yez: <strong class='tag-b'>volvo877</strong><br>
Ужас&#33;&#33;&#33;&#33;&#33; Помоги <strong class='tag-b'>volvo877</strong> у меня не сортируется, а у тебя сортировался??? ПОМОГИ&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33; ПЛИЗ&#33;&#33;&#33;&#33;&#33;&#33; :wall:  :wall:  :wall:  :wall:  :wall: <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2005-05-29T18:08:05+00:00">29.05.05, 18:08</time></span></span><br>
Люди может кто подскажет сайт где можно взять код программы на Pascal&#39;e (сортировка естественным слиянием???) ПЛИЗЗЗЗЗЗЗЗ&#33;&#33;&#33;&#33;]]></description>
        <author>Yez</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732180</guid>
        <pubDate>Sun, 29 May 2005 07:52:46 +0000</pubDate>
        <title>Сортировка естественным слиянием&amp;#33;&amp;#33;&amp;#33;</title>
        <link>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732180</link>
        <description><![CDATA[volvo877: У тебя нарушена структура:<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">while true do</div><div class="code_line">&nbsp;&nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (a[i]&#60;=a[j]) then begin { &#60;--- добавь begin }</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><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">f:=true; d:=-d; k:=k xor l;l:=k xor l;k:=k xor l;</div></ol></div></div></div></div><br>
там где <strong class='tag-b'>k := k xor l;</strong> не хватало пробела... и перед всей этой строкой нет точки с запятой :)<br>
<br>
Вот этот вариант компилится:]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732172</guid>
        <pubDate>Sun, 29 May 2005 07:44:56 +0000</pubDate>
        <title>Сортировка естественным слиянием&amp;#33;&amp;#33;&amp;#33;</title>
        <link>https://forum.sources.ru/index.php?showtopic=97136&amp;view=findpost&amp;p=732172</link>
        <description><![CDATA[Yez: :&#39;( Люди помогите, осталась одна лаба по алгоритмизации, а лаба не компилиться. Посмотрите, а?<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">program Sontan;</div><div class="code_line">&nbsp;</div><div class="code_line">uses</div><div class="code_line">&nbsp;Crt;</div><div class="code_line">&nbsp;</div><div class="code_line">var</div><div class="code_line">&nbsp;a:array[1..255] of integer;</div><div class="code_line">&nbsp;T:text;</div><div class="code_line">&nbsp;temp,k,r,q,d,km,l,i,j,N,p:integer;</div><div class="code_line">&nbsp;s,f:boolean;</div><div class="code_line">&nbsp;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;ClrScr;</div><div class="code_line">&nbsp;&nbsp;Assign(T, &#39;File.txt&#39;); &nbsp;{ Standard output }</div><div class="code_line">&nbsp;&nbsp;Reset(T);</div><div class="code_line">&nbsp;&nbsp;i:=0;</div><div class="code_line">&nbsp;&nbsp;while not Eof(T) do</div><div class="code_line">&nbsp;&nbsp;begin</div><div class="code_line">&nbsp;&nbsp; inc(i);</div><div class="code_line">&nbsp;&nbsp; Read(T, a[i]);</div><div class="code_line">&nbsp;&nbsp; Write(a[i]:4);</div><div class="code_line">&nbsp;&nbsp;end;</div><div class="code_line">&nbsp;&nbsp;Writeln;</div><div class="code_line">&nbsp;&nbsp;N:=i;</div><div class="code_line">&nbsp;&nbsp;s:=true;</div><div class="code_line">&nbsp;&nbsp;repeat</div><div class="code_line">&nbsp;&nbsp; if s then</div><div class="code_line">&nbsp;&nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;i:=1;j:=N;k:=N+1;l:=2*N;</div><div class="code_line">&nbsp;&nbsp; end</div><div class="code_line">&nbsp;&nbsp; else</div><div class="code_line">&nbsp;&nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;k:=1;l:=N;i:=N+1;j:=2*N;</div><div class="code_line">&nbsp;&nbsp; end;</div><div class="code_line">&nbsp;&nbsp; d:=1; f:=false;</div><div class="code_line">&nbsp;&nbsp; while true do</div><div class="code_line">&nbsp;&nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (a[i]&#60;=a[j]) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; if (i=j) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;a[k]:=a[i];s:=not s;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp; end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; a[k]:=a[i];inc(k,d);inc(i);</div><div class="code_line">&nbsp;&nbsp; &nbsp; if a[i-1]&#60;a[i] then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp; repeat</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;a[k]:=a[j]; inc(k,d); dec(j);</div><div class="code_line">&nbsp;&nbsp; &nbsp; until (a[j+1]&#62;a[j]);</div><div class="code_line">&nbsp;&nbsp; &nbsp;end</div><div class="code_line">&nbsp;&nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; a[k]:=a[j]; inc(k,d);dec(j);</div><div class="code_line">&nbsp;&nbsp; &nbsp; if(a[j+1] &#60;= a[j]) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp; repeat</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;a[k]=a[i]; inc(k,d); inc(i);</div><div class="code_line">&nbsp;&nbsp; &nbsp; until (a[i-1]&#62;a[i]);</div><div class="code_line">&nbsp;&nbsp; &nbsp;end</div><div class="code_line">&nbsp;&nbsp; &nbsp;f:=true; d:=-d; k:=k xorl;l:=k xor l;k:=k xor l;</div><div class="code_line">&nbsp;&nbsp; end;</div><div class="code_line">&nbsp;&nbsp;until not f;</div><div class="code_line">&nbsp;&nbsp;if not s then</div><div class="code_line">&nbsp;&nbsp; for i:=1 to n do</div><div class="code_line">&nbsp;&nbsp; &nbsp;a[i]:=a[i+n];</div><div class="code_line">&nbsp;&nbsp;</div><div class="code_line">&nbsp;&nbsp; Write(&#39;Sorted&#39;);</div><div class="code_line">&nbsp;&nbsp; for i:=1 to N do</div><div class="code_line">&nbsp;&nbsp; &nbsp;Write(a[i]:4);</div><div class="code_line">&nbsp;&nbsp; readkey;</div><div class="code_line">end.</div></ol></div></div></div></div><br>
Зарание всем большое, огромное спасибо&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33;&#33; :D]]></description>
        <author>Yez</author>
        <category>Pascal</category>
      </item>
	
      </channel>
      </rss>
	