<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://neerc.ifmo.ru/wiki/index.php?action=history&amp;feed=atom&amp;title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA%3AArtem.ustinov%2F%D0%9D%D0%92%D0%9F</id>
		<title>Участник:Artem.ustinov/НВП - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://neerc.ifmo.ru/wiki/index.php?action=history&amp;feed=atom&amp;title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA%3AArtem.ustinov%2F%D0%9D%D0%92%D0%9F"/>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;action=history"/>
		<updated>2026-06-11T18:35:37Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63629&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Деление на блоки */</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63629&amp;oldid=prev"/>
				<updated>2018-01-19T18:42:05Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Деление на блоки&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 18:42, 19 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l170&quot; &gt;Строка 170:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 170:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Цифровая сортировка]] каждого блока отдельно будет давать нам время работы &amp;lt;tex&amp;gt;O \left(\dfrac{n}{m}n \right) = O \left(\dfrac{n^2}{m} \right)&amp;lt;/tex&amp;gt;. Дополним каждый элемент &amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; номером блока, в котором он находится и смещением в этом блоке. Теперь, рассматривая номер блока как старший разряд, элемент как младший разряд (по смещению внутри блока не сортируем), можно сортировать цифровой сортировкой за линейное время &amp;lt;tex&amp;gt;O(n)&amp;lt;/tex&amp;gt;, потому что значения элементов и номера блоков не превосходят &amp;lt;tex&amp;gt;n&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Цифровая сортировка]] каждого блока отдельно будет давать нам время работы &amp;lt;tex&amp;gt;O \left(\dfrac{n}{m}n \right) = O \left(\dfrac{n^2}{m} \right)&amp;lt;/tex&amp;gt;. Дополним каждый элемент &amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; номером блока, в котором он находится и смещением в этом блоке. Теперь, рассматривая номер блока как старший разряд, элемент как младший разряд (по смещению внутри блока не сортируем), можно сортировать цифровой сортировкой за линейное время &amp;lt;tex&amp;gt;O(n)&amp;lt;/tex&amp;gt;, потому что значения элементов и номера блоков не превосходят &amp;lt;tex&amp;gt;n&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Перестановка смещений, образованная в сортированном блоке есть не что иное, как обратная перестановка перестановки, элементы которой соотносятся между собой как элементы исходного блока. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Находим обратную перестановку к найденной&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;назовем ее &lt;/del&gt;&amp;lt;tex&amp;gt;\&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;xi&lt;/del&gt;&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Перестановка смещений, образованная в сортированном блоке есть не что иное, как обратная перестановка перестановки &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt;&lt;/ins&gt;, элементы которой соотносятся между собой как элементы исходного блока. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Т.е. если элемент &amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; находится в исходной перестановке в блоке &amp;lt;tex&amp;gt;C_j&amp;lt;/tex&amp;gt; на позиции &amp;lt;tex&amp;gt;i&amp;lt;/tex&amp;gt;&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;то в блоке &amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt; он на позиции &lt;/ins&gt;&amp;lt;tex&amp;gt;\&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;xi_i&lt;/ins&gt;&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Пример====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Пример====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63626&amp;oldid=prev</id>
		<title>94.25.229.31: /* Пример */</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63626&amp;oldid=prev"/>
				<updated>2018-01-19T16:58:19Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Пример&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:58, 19 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l344&quot; &gt;Строка 344:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 344:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Обновляем ключи в очереди:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Обновляем ключи в очереди:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot; style=&amp;quot;background: #ffffcc&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot; style=&amp;quot;background: #ffffcc&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! &amp;lt;tex&amp;gt;B_1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\pi&lt;/del&gt;&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! &amp;lt;tex&amp;gt;B_1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;key&lt;/ins&gt;&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-align=&amp;quot;center&amp;quot; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-align=&amp;quot;center&amp;quot; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;background:#FFC9C9&amp;quot;| &amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt; ||&amp;#160;  ||&amp;#160;  || style=&amp;quot;background: #CFCFFF&amp;quot;| &amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;background:#FFC9C9&amp;quot;| &amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt; ||&amp;#160;  ||&amp;#160;  || style=&amp;quot;background: #CFCFFF&amp;quot;| &amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l450&quot; &gt;Строка 450:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 450:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Обновление старых ключей:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Обновление старых ключей:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot; style=&amp;quot;background: #ffffcc&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot; style=&amp;quot;background: #ffffcc&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! &amp;lt;tex&amp;gt;B_1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_4&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\pi&lt;/del&gt;&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! &amp;lt;tex&amp;gt;B_1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;B_4&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;key&lt;/ins&gt;&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-align=&amp;quot;center&amp;quot; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-align=&amp;quot;center&amp;quot; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;background:#FFC9C9&amp;quot;| &amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt; ||&amp;#160;  ||&amp;#160;  ||&amp;#160;  || style=&amp;quot;background: #CFCFFF&amp;quot;| &amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;background:#FFC9C9&amp;quot;| &amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt; ||&amp;#160;  ||&amp;#160;  ||&amp;#160;  || style=&amp;quot;background: #CFCFFF&amp;quot;| &amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>94.25.229.31</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63586&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Обработка блока */</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63586&amp;oldid=prev"/>
				<updated>2018-01-17T14:58:17Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Обработка блока&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:58, 17 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l217&quot; &gt;Строка 217:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 217:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Достаем из очереди &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; ключи &amp;lt;tex&amp;gt;x&amp;lt;/tex&amp;gt;, конвертируем их в элементы &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt; и кладём в список &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Достаем из очереди &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; ключи &amp;lt;tex&amp;gt;x&amp;lt;/tex&amp;gt;, конвертируем их в элементы &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt; и кладём в список &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Сливаем элементы в &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; со следующим отсортированным блоком &amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt; в список &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;, генерируя два вспомогательных массива &amp;lt;tex&amp;gt;\mathtt{ind_0}&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;\mathtt{ind_1}&amp;lt;/tex&amp;gt;, хранящих индексы элементов списков &amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; соответственно в списке &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Сливаем элементы в &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; со следующим отсортированным блоком &amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt; в список &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;, генерируя два вспомогательных массива &amp;lt;tex&amp;gt;\mathtt{ind_0}&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;\mathtt{ind_1}&amp;lt;/tex&amp;gt;, хранящих индексы элементов списков &amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; соответственно в списке &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Действуя на последовательность ключей в списке &amp;lt;tex&amp;gt;\mathtt{ind_0}&amp;lt;/tex&amp;gt; перестановкой &amp;lt;tex&amp;gt;\&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;xi&lt;/del&gt;&amp;lt;/tex&amp;gt; получим ключи в порядке исходной последовательности.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Действуя на последовательность ключей в списке &amp;lt;tex&amp;gt;\mathtt{ind_0}&amp;lt;/tex&amp;gt; перестановкой &amp;lt;tex&amp;gt;\&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;xi_j&lt;/ins&gt;&amp;lt;/tex&amp;gt; получим ключи в порядке исходной последовательности.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Вставляем в &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; новые ключи элементов списка &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; (элементы &amp;lt;tex&amp;gt;\mathtt{ind_1}&amp;lt;/tex&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Вставляем в &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; новые ключи элементов списка &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; (элементы &amp;lt;tex&amp;gt;\mathtt{ind_1}&amp;lt;/tex&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Обрабатываем ключи элементов блока в порядке исходной последовательности с помощью алгоритма &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt;. Для восстановления НВП также используем массив &amp;quot;предшественников&amp;quot;, который будет работать с соответствующими ключам элементами &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Обрабатываем ключи элементов блока в порядке исходной последовательности с помощью алгоритма &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt;. Для восстановления НВП также используем массив &amp;quot;предшественников&amp;quot;, который будет работать с соответствующими ключам элементами &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63585&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Обработка блока */ исправил ошибки</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63585&amp;oldid=prev"/>
				<updated>2018-01-17T14:52:56Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Обработка блока: &lt;/span&gt; исправил ошибки&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:52, 17 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l208&quot; &gt;Строка 208:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 208:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В итоге, получим отсортированный список &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;. Сопоставим ключ каждому элементу как его позицию в этом списке, тогда справедливы утверждения, что &amp;lt;tex&amp;gt;\mathtt{elt}(x)=\mathtt{merged}[x]&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;(\pi_{i}&amp;lt;\pi_{k} \Longleftrightarrow \mathtt{key}(\pi_{i})&amp;lt;\mathtt{key}(\pi_{k}))&amp;lt;/tex&amp;gt;, где &amp;lt;tex&amp;gt;\pi_{i},\pi_{k}\in \mathtt{merged}&amp;lt;/tex&amp;gt;, поэтому любая возрастающая последовательность ключей элементов будет соответствовать возрастающей последовательности элементов. Таким образом, приоритетная очередь сможет корректно работать с ключами элементов.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В итоге, получим отсортированный список &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;. Сопоставим ключ каждому элементу как его позицию в этом списке, тогда справедливы утверждения, что &amp;lt;tex&amp;gt;\mathtt{elt}(x)=\mathtt{merged}[x]&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;(\pi_{i}&amp;lt;\pi_{k} \Longleftrightarrow \mathtt{key}(\pi_{i})&amp;lt;\mathtt{key}(\pi_{k}))&amp;lt;/tex&amp;gt;, где &amp;lt;tex&amp;gt;\pi_{i},\pi_{k}\in \mathtt{merged}&amp;lt;/tex&amp;gt;, поэтому любая возрастающая последовательность ключей элементов будет соответствовать возрастающей последовательности элементов. Таким образом, приоритетная очередь сможет корректно работать с ключами элементов.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Находим последовательность ключей, соответствующую элементам &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;блоку &lt;/del&gt;&amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt;. Действуя на эту последовательность перестановкой &amp;lt;tex&amp;gt;\xi_j&amp;lt;/tex&amp;gt;, получаем последовательность ключей в порядке исходного блока.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Находим последовательность ключей, соответствующую элементам &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;блока &lt;/ins&gt;&amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt;. Действуя на эту последовательность перестановкой &amp;lt;tex&amp;gt;\xi_j&amp;lt;/tex&amp;gt;, получаем последовательность ключей в порядке исходного блока.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Оставшиеся ключи, которые входят в &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;, но не являются ключами элементов в обрабатываемом блоке, будут ключами элементов из очереди &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt;. Обновляем очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; этими ключами.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Оставшиеся ключи, которые входят в &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;, но не являются ключами элементов в обрабатываемом блоке, будут ключами элементов из очереди &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt;. Обновляем очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; этими ключами.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l225&quot; &gt;Строка 225:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 225:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''' Первый блок '''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''' Первый блок '''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Так как очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; в начале пуста, то &amp;lt;tex&amp;gt;\mathtt{merged}=C_1^s&amp;lt;/tex&amp;gt;. Присвоим ключи &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;элементов &lt;/del&gt;в списке &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt; как их индексы в этом списке. Восстанавливаем последовательность ключей элементов в порядке исходной последовательности, действуя &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;обратной &lt;/del&gt;перестановкой смещений &amp;lt;tex&amp;gt;\xi_1&amp;lt;/tex&amp;gt; на последовательность ключей в отсортированном блоке.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Так как очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; в начале пуста, то &amp;lt;tex&amp;gt;\mathtt{merged}=C_1^s&amp;lt;/tex&amp;gt;. Присвоим ключи &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;элементам &lt;/ins&gt;в списке &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt; как их индексы в этом списке. Восстанавливаем последовательность ключей элементов в порядке исходной последовательности, действуя перестановкой смещений &amp;lt;tex&amp;gt;\xi_1&amp;lt;/tex&amp;gt; на последовательность ключей в отсортированном блоке.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| ||&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| ||&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63584&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Обработка блока */</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63584&amp;oldid=prev"/>
				<updated>2018-01-17T14:46:05Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Обработка блока&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:46, 17 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l208&quot; &gt;Строка 208:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 208:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В итоге, получим отсортированный список &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;. Сопоставим ключ каждому элементу как его позицию в этом списке, тогда справедливы утверждения, что &amp;lt;tex&amp;gt;\mathtt{elt}(x)=\mathtt{merged}[x]&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;(\pi_{i}&amp;lt;\pi_{k} \Longleftrightarrow \mathtt{key}(\pi_{i})&amp;lt;\mathtt{key}(\pi_{k}))&amp;lt;/tex&amp;gt;, где &amp;lt;tex&amp;gt;\pi_{i},\pi_{k}\in \mathtt{merged}&amp;lt;/tex&amp;gt;, поэтому любая возрастающая последовательность ключей элементов будет соответствовать возрастающей последовательности элементов. Таким образом, приоритетная очередь сможет корректно работать с ключами элементов.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В итоге, получим отсортированный список &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;. Сопоставим ключ каждому элементу как его позицию в этом списке, тогда справедливы утверждения, что &amp;lt;tex&amp;gt;\mathtt{elt}(x)=\mathtt{merged}[x]&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;(\pi_{i}&amp;lt;\pi_{k} \Longleftrightarrow \mathtt{key}(\pi_{i})&amp;lt;\mathtt{key}(\pi_{k}))&amp;lt;/tex&amp;gt;, где &amp;lt;tex&amp;gt;\pi_{i},\pi_{k}\in \mathtt{merged}&amp;lt;/tex&amp;gt;, поэтому любая возрастающая последовательность ключей элементов будет соответствовать возрастающей последовательности элементов. Таким образом, приоритетная очередь сможет корректно работать с ключами элементов.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Простым проходом по отсортированному &lt;/del&gt;блоку &amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;находим последовательность ключей, соответствующую его элементам&lt;/del&gt;. Действуя на эту последовательность перестановкой &amp;lt;tex&amp;gt;\xi_j&amp;lt;/tex&amp;gt;, получаем последовательность ключей в порядке исходного блока.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Находим последовательность ключей, соответствующую элементам &lt;/ins&gt;блоку &amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt;. Действуя на эту последовательность перестановкой &amp;lt;tex&amp;gt;\xi_j&amp;lt;/tex&amp;gt;, получаем последовательность ключей в порядке исходного блока.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Оставшиеся ключи, которые входят в &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;, но не являются ключами элементов в обрабатываемом блоке будут ключами элементов из очереди &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt;. Обновляем очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; этими ключами.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Оставшиеся ключи, которые входят в &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;, но не являются ключами элементов в обрабатываемом блоке&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;будут ключами элементов из очереди &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt;. Обновляем очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; этими ключами.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Затем запускаем алгоритм &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt;, для ключей элементов &amp;lt;tex&amp;gt;C_j&amp;lt;/tex&amp;gt; в порядке исходной последовательности.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Затем запускаем алгоритм &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt;, для ключей элементов &amp;lt;tex&amp;gt;C_j&amp;lt;/tex&amp;gt; в порядке исходной последовательности.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63582&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Деление на блоки */</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63582&amp;oldid=prev"/>
				<updated>2018-01-17T14:32:49Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Деление на блоки&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:32, 17 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l171&quot; &gt;Строка 171:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 171:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Перестановка смещений, образованная в сортированном блоке есть не что иное, как обратная перестановка перестановки, элементы которой соотносятся между собой как элементы исходного блока. Находим обратную перестановку к найденной, назовем ее &amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Перестановка смещений, образованная в сортированном блоке есть не что иное, как обратная перестановка перестановки, элементы которой соотносятся между собой как элементы исходного блока. Находим обратную перестановку к найденной, назовем ее &amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;====Пример====&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Предположим, что &amp;lt;tex&amp;gt;m=5&amp;lt;/tex&amp;gt;. Исходно получаем:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| Блок ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;9&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;10&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Смещение ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;После сортировки:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Блок ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;9&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;10&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Смещение ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Обратные перестановки (&amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt;):&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot; style=&amp;quot;background:#FFCC80&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;! colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt; || colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt; || colspan=&amp;quot;3&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#D0D0FF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0D0FF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Обработка блока ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Обработка блока ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63581&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Основная идея */</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63581&amp;oldid=prev"/>
				<updated>2018-01-17T14:32:24Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Основная идея&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:32, 17 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l161&quot; &gt;Строка 161:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 161:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Во время обработки ключей элементов описанный выше алгоритм &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt; работает только с очередью &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; и не зависит от предыдущих элементов последовательности, которые не находятся в очереди. Поэтому, если мы разобьем всю последовательность на блоки из &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; элементов (последний блок может быть меньше), и нам удастся обрабатывать каждый как перестановку из &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; элементов, сохраняя очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; для вычисленных ранее блоков, то мы получим асимптотическое время &amp;lt;tex&amp;gt;O(n \operatorname{log} \operatorname{log} (k + m))&amp;lt;/tex&amp;gt;, а так как &amp;lt;tex&amp;gt;m \geqslant k&amp;lt;/tex&amp;gt;, то &amp;lt;tex&amp;gt;O(n \operatorname{log} \operatorname{log} m)&amp;lt;/tex&amp;gt;. (Мы будем обрабатывать блоки последовательно, т.е. с предыдущего блока у нас может остаться &amp;lt;tex&amp;gt;k&amp;lt;/tex&amp;gt; значений в очереди, которые дополняются &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; значениями очередного блока — получаем верхнее ограничение в &amp;lt;tex&amp;gt;k + m&amp;lt;/tex&amp;gt; обрабатываемых возможных значений.)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Во время обработки ключей элементов описанный выше алгоритм &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt; работает только с очередью &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; и не зависит от предыдущих элементов последовательности, которые не находятся в очереди. Поэтому, если мы разобьем всю последовательность на блоки из &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; элементов (последний блок может быть меньше), и нам удастся обрабатывать каждый как перестановку из &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; элементов, сохраняя очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; для вычисленных ранее блоков, то мы получим асимптотическое время &amp;lt;tex&amp;gt;O(n \operatorname{log} \operatorname{log} (k + m))&amp;lt;/tex&amp;gt;, а так как &amp;lt;tex&amp;gt;m \geqslant k&amp;lt;/tex&amp;gt;, то &amp;lt;tex&amp;gt;O(n \operatorname{log} \operatorname{log} m)&amp;lt;/tex&amp;gt;. (Мы будем обрабатывать блоки последовательно, т.е. с предыдущего блока у нас может остаться &amp;lt;tex&amp;gt;k&amp;lt;/tex&amp;gt; значений в очереди, которые дополняются &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; значениями очередного блока — получаем верхнее ограничение в &amp;lt;tex&amp;gt;k + m&amp;lt;/tex&amp;gt; обрабатываемых возможных значений.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;====Пример====&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Предположим, что &amp;lt;tex&amp;gt;m=5&amp;lt;/tex&amp;gt;. Исходно получаем:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| Блок ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;9&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;10&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Смещение ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;После сортировки:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Блок ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;9&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;10&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Смещение ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Обратные перестановки (&amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt;):&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot; style=&amp;quot;background:#FFCC80&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;! colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt; || colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt; || colspan=&amp;quot;3&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#D0D0FF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0D0FF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Деление на блоки===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Деление на блоки===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63580&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Оптимизация до O(n log log k) */ Разделил примеры</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63580&amp;oldid=prev"/>
				<updated>2018-01-17T14:31:23Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Оптимизация до O(n log log k): &lt;/span&gt; Разделил примеры&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:31, 17 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l161&quot; &gt;Строка 161:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 161:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Во время обработки ключей элементов описанный выше алгоритм &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt; работает только с очередью &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; и не зависит от предыдущих элементов последовательности, которые не находятся в очереди. Поэтому, если мы разобьем всю последовательность на блоки из &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; элементов (последний блок может быть меньше), и нам удастся обрабатывать каждый как перестановку из &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; элементов, сохраняя очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; для вычисленных ранее блоков, то мы получим асимптотическое время &amp;lt;tex&amp;gt;O(n \operatorname{log} \operatorname{log} (k + m))&amp;lt;/tex&amp;gt;, а так как &amp;lt;tex&amp;gt;m \geqslant k&amp;lt;/tex&amp;gt;, то &amp;lt;tex&amp;gt;O(n \operatorname{log} \operatorname{log} m)&amp;lt;/tex&amp;gt;. (Мы будем обрабатывать блоки последовательно, т.е. с предыдущего блока у нас может остаться &amp;lt;tex&amp;gt;k&amp;lt;/tex&amp;gt; значений в очереди, которые дополняются &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; значениями очередного блока — получаем верхнее ограничение в &amp;lt;tex&amp;gt;k + m&amp;lt;/tex&amp;gt; обрабатываемых возможных значений.)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Во время обработки ключей элементов описанный выше алгоритм &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt; работает только с очередью &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; и не зависит от предыдущих элементов последовательности, которые не находятся в очереди. Поэтому, если мы разобьем всю последовательность на блоки из &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; элементов (последний блок может быть меньше), и нам удастся обрабатывать каждый как перестановку из &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; элементов, сохраняя очередь &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; для вычисленных ранее блоков, то мы получим асимптотическое время &amp;lt;tex&amp;gt;O(n \operatorname{log} \operatorname{log} (k + m))&amp;lt;/tex&amp;gt;, а так как &amp;lt;tex&amp;gt;m \geqslant k&amp;lt;/tex&amp;gt;, то &amp;lt;tex&amp;gt;O(n \operatorname{log} \operatorname{log} m)&amp;lt;/tex&amp;gt;. (Мы будем обрабатывать блоки последовательно, т.е. с предыдущего блока у нас может остаться &amp;lt;tex&amp;gt;k&amp;lt;/tex&amp;gt; значений в очереди, которые дополняются &amp;lt;tex&amp;gt;m&amp;lt;/tex&amp;gt; значениями очередного блока — получаем верхнее ограничение в &amp;lt;tex&amp;gt;k + m&amp;lt;/tex&amp;gt; обрабатываемых возможных значений.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;====Пример====&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Предположим, что &amp;lt;tex&amp;gt;m=5&amp;lt;/tex&amp;gt;. Исходно получаем:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| Блок ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;9&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;10&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Смещение ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;После сортировки:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Блок ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;9&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;10&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Смещение ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Обратные перестановки (&amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt;):&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot; style=&amp;quot;background:#FFCC80&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;! colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt; || colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt; || colspan=&amp;quot;3&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| style=&amp;quot;background:#D0D0FF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0D0FF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Деление на блоки===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Деление на блоки===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l192&quot; &gt;Строка 192:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 220:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Обрабатываем ключи элементов блока в порядке исходной последовательности с помощью алгоритма &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt;. Для восстановления НВП также используем массив &amp;quot;предшественников&amp;quot;, который будет работать с соответствующими ключам элементами &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Обрабатываем ключи элементов блока в порядке исходной последовательности с помощью алгоритма &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt;. Для восстановления НВП также используем массив &amp;quot;предшественников&amp;quot;, который будет работать с соответствующими ключам элементами &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Пример===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=&lt;/ins&gt;===Пример====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Предположим, что &amp;lt;tex&amp;gt;m=5&amp;lt;/tex&amp;gt;. Исходно получаем:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;| Блок ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|&amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;9&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;10&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|Смещение ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;После сортировки:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|Блок ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|&amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;9&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;10&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|Смещение ||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFC9C9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#B9FFB9&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#CFCFFF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Обратные перестановки (&amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt;):&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot; style=&amp;quot;background:#FFCC80&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;! colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt; || colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt; || colspan=&amp;quot;3&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|-align=&amp;quot;center&amp;quot; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;| style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#FFD0D0&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;| style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||style=&amp;quot;background:#D0FFD0&amp;quot;|&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;| style=&amp;quot;background:#D0D0FF&amp;quot;|&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||style&lt;/del&gt;=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;background:#D0D0FF&amp;quot;|&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''' Первый блок '''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''' Первый блок '''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63579&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Пример */ Дополнил пример</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63579&amp;oldid=prev"/>
				<updated>2018-01-17T14:29:15Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Пример: &lt;/span&gt; Дополнил пример&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:29, 17 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l290&quot; &gt;Строка 290:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 290:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{|&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| ||&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| ||&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l298&quot; &gt;Строка 298:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 301:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-align=&amp;quot;center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-align=&amp;quot;center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tex&amp;gt;key&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tex&amp;gt;key&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| ||&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| colspan=&amp;quot;3&amp;quot;|&amp;lt;tex&amp;gt;\mathtt{ind_1}&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| &amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| ||&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| colspan=&amp;quot;5&amp;quot;|&amp;lt;tex&amp;gt;\mathtt{ind_0}&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| &amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;8&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l306&quot; &gt;Строка 306:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 323:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| ||&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| ||&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! colspan=&amp;quot;6&amp;quot;|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Cортированный&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! colspan=&amp;quot;6&amp;quot;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Сортированный&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; ||&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;tex&amp;gt;\pi&amp;lt;/tex&amp;gt; ||&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;12&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l377&quot; &gt;Строка 377:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 394:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &amp;lt;tex&amp;gt;7&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;11&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{|&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| ||&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| ||&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l385&quot; &gt;Строка 385:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 405:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-align=&amp;quot;center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-align=&amp;quot;center&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tex&amp;gt;key&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;lt;tex&amp;gt;key&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| ||&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| colspan=&amp;quot;4&amp;quot;|&amp;lt;tex&amp;gt;\mathtt{ind_1}&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| &amp;lt;tex&amp;gt;1&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;2&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;3&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;6&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| ||&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| colspan=&amp;quot;2&amp;quot;|&amp;lt;tex&amp;gt;\mathtt{ind_0}&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-align=&amp;quot;center&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;| &amp;lt;tex&amp;gt;4&amp;lt;/tex&amp;gt;||&amp;lt;tex&amp;gt;5&amp;lt;/tex&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	<entry>
		<id>http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63578&amp;oldid=prev</id>
		<title>Artem.ustinov: /* Обработка блока */ Ещё дополнил</title>
		<link rel="alternate" type="text/html" href="http://neerc.ifmo.ru/wiki/index.php?title=%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:Artem.ustinov/%D0%9D%D0%92%D0%9F&amp;diff=63578&amp;oldid=prev"/>
				<updated>2018-01-17T14:16:52Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Обработка блока: &lt;/span&gt; Ещё дополнил&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 14:16, 17 января 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l187&quot; &gt;Строка 187:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 187:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В итоге, обработка блока делится на следующие этапы:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;В итоге, обработка блока делится на следующие этапы:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Достаем из очереди &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; ключи &amp;lt;tex&amp;gt;x&amp;lt;/tex&amp;gt;, конвертируем их в элементы &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt; и кладём в список &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Достаем из очереди &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; ключи &amp;lt;tex&amp;gt;x&amp;lt;/tex&amp;gt;, конвертируем их в элементы &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt; и кладём в список &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Сливаем элементы в &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; со следующим отсортированным блоком в список &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Сливаем элементы в &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; со следующим отсортированным блоком &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt; &lt;/ins&gt;в список &amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, генерируя два вспомогательных массива &amp;lt;tex&amp;gt;\mathtt{ind_0}&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;\mathtt{ind_1}&amp;lt;/tex&amp;gt;, хранящих индексы элементов списков &amp;lt;tex&amp;gt;C_j^s&amp;lt;/tex&amp;gt; и &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; соответственно &lt;/ins&gt;в &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;списке &lt;/ins&gt;&amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* Присваиваем новые ключи элементам &lt;/del&gt;в &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;порядке списка &lt;/del&gt;&amp;lt;tex&amp;gt;\mathtt{merged}&amp;lt;/tex&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;и находим ключи в порядке исходной последовательности, действуя &lt;/del&gt;на последовательность ключей в &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;сортированном блоке &lt;/del&gt;перестановкой &amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* Действуя &lt;/ins&gt;на последовательность ключей в &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;списке &amp;lt;tex&amp;gt;\mathtt{ind_0}&amp;lt;/tex&amp;gt; &lt;/ins&gt;перестановкой &amp;lt;tex&amp;gt;\xi&amp;lt;/tex&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;получим ключи в порядке исходной последовательности&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Вставляем в &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; новые ключи элементов.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Вставляем в &amp;lt;tex&amp;gt;B&amp;lt;/tex&amp;gt; новые ключи элементов &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;списка &amp;lt;tex&amp;gt;\mathtt{elems}&amp;lt;/tex&amp;gt; (элементы &amp;lt;tex&amp;gt;\mathtt{ind_1}&amp;lt;/tex&amp;gt;)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Обрабатываем ключи элементов блока в порядке исходной последовательности с помощью алгоритма &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt;. Для восстановления НВП также используем массив &amp;quot;предшественников&amp;quot;, который будет работать с соответствующими ключам элементами &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Обрабатываем ключи элементов блока в порядке исходной последовательности с помощью алгоритма &amp;lt;tex&amp;gt;\mathrm{LIS}&amp;lt;/tex&amp;gt;. Для восстановления НВП также используем массив &amp;quot;предшественников&amp;quot;, который будет работать с соответствующими ключам элементами &amp;lt;tex&amp;gt;\mathtt{elt}(x)&amp;lt;/tex&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Artem.ustinov</name></author>	</entry>

	</feed>