<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="th">
	<id>https://theory.cpe.ku.ac.th/wiki/index.php?action=history&amp;feed=atom&amp;title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552%2F%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I%2F%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8</id>
	<title>418531 ภาคต้น 2552/โจทย์ปัญหาอัลกอริทึมแบบตะกละ I/เฉลยข้อ 8 - ประวัติรุ่นแก้ไข</title>
	<link rel="self" type="application/atom+xml" href="https://theory.cpe.ku.ac.th/wiki/index.php?action=history&amp;feed=atom&amp;title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552%2F%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I%2F%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8"/>
	<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;action=history"/>
	<updated>2026-04-24T03:41:15Z</updated>
	<subtitle>ประวัติรุ่นแก้ไขของหน้านี้ในวิกิ</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7537&amp;oldid=prev</id>
		<title>Aoy: /* การพิสูจน์ความถูกต้องของอัลกอริทึม */</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7537&amp;oldid=prev"/>
		<updated>2009-09-18T19:09:46Z</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 class=&quot;diff-title&quot; lang=&quot;th&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←รุ่นแก้ไขก่อนหน้า&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;รุ่นแก้ไขเมื่อ 19:09, 18 กันยายน 2552&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-l17&quot; &gt;แถว 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ต่อไปเราต้องทำการพิสูจน์ให้ได้ว่า การสลับลำดับการจัดงานให้เครื่องจักรข้างต้นจะไม่ทำให้เวลาคอยรวมของผู้ใช้เพิ่มขึ้น&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; 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=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; l \, &amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ได้เริ่มทำที่เวลา &lt;/del&gt;&amp;lt;math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;S &lt;/del&gt;\, &amp;lt;/math&amp;gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\sum_{k=1}^{&lt;/ins&gt;l&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-1}\sum_{j=1}^k t(i_j)=\sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j)=U &lt;/ins&gt;\,&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;และ &lt;/ins&gt;&amp;lt;math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\sum_{k=m+1}^n \sum_{j=1}^k t(i_j)=\sum_{k=l+1}^n \sum_{j=1}^k t(i_j)=V &lt;/ins&gt;\,&amp;lt;/math&amp;gt;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; \sum_{j=1}^l t(i_j)=U+t(l) \, &amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{j=1}^m t(i_j)=U+t(l)+t(m) \, &amp;lt;/math&amp;gt; ทำให้เวลาคอยรวมของผู้ใช่ก่อนการสลับจะเท่ากับ &amp;lt;math&amp;gt; U+U+t(l)+U+t(l)+t(m)+V \,&amp;lt;/math&amp;gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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 colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; \sum_{j=1}^m t(i_j)=U+t(m) \, &amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{j=1}^l t(i_j)=U+t(m)+t(l) \, &amp;lt;/math&amp;gt; ทำให้เวลาคอยรวมของผู้ใช่ก่อนการสลับจะเท่ากับ &amp;lt;math&amp;gt; U+U+t(m)+U+t(m)+t(l)+V \,&amp;lt;/math&amp;gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;เมื่อพิจารณาสมการเวลาคอยรวมก่อนและหลังสลับข้างต้น และเนื่องจาก &amp;lt;math&amp;gt; t(l) &amp;gt; t(m) \,&amp;lt;/math&amp;gt; เราจะได้ว่าหลังการสลับไม่ได้ทำให้เวลาคอยรวมของผู้ใช้เพิ่มขึ้น&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;เมื่อพิจารณาสมการเวลาคอยรวมก่อนและหลังสลับข้างต้น และเนื่องจาก &amp;lt;math&amp;gt; t(l) &amp;gt; t(m) \,&amp;lt;/math&amp;gt; เราจะได้ว่าหลังการสลับไม่ได้ทำให้เวลาคอยรวมของผู้ใช้เพิ่มขึ้น&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ดังนั้นเราจึงสรุปได้ว่าการจัดลำดับการทำงานให้เครื่องจักรตามวิธี greedy algorithm ข้างต้น ทำให้เวลาคอยรวมของผู้ใช้น้อยที่สุดเท่าที่จะเป็นไปได้แล้ว&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ดังนั้นเราจึงสรุปได้ว่าการจัดลำดับการทำงานให้เครื่องจักรตามวิธี greedy algorithm ข้างต้น ทำให้เวลาคอยรวมของผู้ใช้น้อยที่สุดเท่าที่จะเป็นไปได้แล้ว&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aoy</name></author>
		
	</entry>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7536&amp;oldid=prev</id>
		<title>Aoy: /* ข้อสังเกต */</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7536&amp;oldid=prev"/>
		<updated>2009-09-18T19:02:16Z</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 class=&quot;diff-title&quot; lang=&quot;th&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←รุ่นแก้ไขก่อนหน้า&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;รุ่นแก้ไขเมื่อ 19:02, 18 กันยายน 2552&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-l5&quot; &gt;แถว 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;ข้อสังเกต&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;ข้อสังเกต&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; l,m \, &amp;lt;/math&amp;gt; เป็นผู้ใช้สองคนจากผู้ใช้ทั้งหมด &amp;lt;math&amp;gt; n \, &amp;lt;/math&amp;gt; คน และให้การจัดลำดับการทำงานสองลำดับคือ &amp;lt;math&amp;gt; S_1,S_2 \, &amp;lt;/math&amp;gt; ที่มีการจัดลำดับของผู้ใช้คนอื่น ๆ เหมือนกันหมด แต่ว่าต่างกันที่ลำดับการทำงานของผู้ใช้ คนที่ &amp;lt;math&amp;gt; l \,&amp;lt;/math&amp;gt; กับ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; เท่านั้น สมมติให้ลำดับที่หนึ่ง &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; ให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_l,i_m,...,i_n \,&amp;lt;/math&amp;gt; ส่วนการจัดลำดับแบบที่สอง &amp;lt;math&amp;gt; S_2 \,&amp;lt;/math&amp;gt; คือให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_m,i_l,...,i_n \,&amp;lt;/math&amp;gt; ดังนั้นเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^l t(i_j)+  \sum_{j=1}^m t(i_j)+ \sum_{k=m+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; ส่วนเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_2 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^m t(i_j)+  \sum_{j=1}^l t(i_j)+ \sum_{k=l+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; โดยที่ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j)=\sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{k=m+1}^n \sum_{j=1}^k t(i_j)=\sum_{k=l+1}^n \sum_{j=1}^k t(i_j)\,&amp;lt;/math&amp;gt;แต่ &amp;lt;math&amp;gt; \sum_{j=1}^l t(i_j) \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{j=1}^m t(i_j)\,&amp;lt;/math&amp;gt; ใน &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; S_2 \, &amp;lt;/math&amp;gt; ไม่เท่ากัน&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; l,m \, &amp;lt;/math&amp;gt; เป็นผู้ใช้สองคนจากผู้ใช้ทั้งหมด &amp;lt;math&amp;gt; n \, &amp;lt;/math&amp;gt; คน และให้การจัดลำดับการทำงานสองลำดับคือ &amp;lt;math&amp;gt; S_1,S_2 \, &amp;lt;/math&amp;gt; ที่มีการจัดลำดับของผู้ใช้คนอื่น ๆ เหมือนกันหมด แต่ว่าต่างกันที่ลำดับการทำงานของผู้ใช้ คนที่ &amp;lt;math&amp;gt; l \,&amp;lt;/math&amp;gt; กับ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; เท่านั้น สมมติให้ลำดับที่หนึ่ง &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; ให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_l,i_m,...,i_n \,&amp;lt;/math&amp;gt; ส่วนการจัดลำดับแบบที่สอง &amp;lt;math&amp;gt; S_2 \,&amp;lt;/math&amp;gt; คือให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_m,i_l,...,i_n \,&amp;lt;/math&amp;gt; ดังนั้นเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^l t(i_j)+  \sum_{j=1}^m t(i_j)+ \sum_{k=m+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; ส่วนเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_2 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^m t(i_j)+  \sum_{j=1}^l t(i_j)+ \sum_{k=l+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; โดยที่ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j)=\sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{k=m+1}^n \sum_{j=1}^k t(i_j)=\sum_{k=l+1}^n \sum_{j=1}^k t(i_j)\,&amp;lt;/math&amp;gt; แต่ &amp;lt;math&amp;gt; \sum_{j=1}^l t(i_j) \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{j=1}^m t(i_j)\,&amp;lt;/math&amp;gt; ใน &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; S_2 \, &amp;lt;/math&amp;gt; ไม่เท่ากัน&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;การพิสูจน์ความถูกต้องของอัลกอริทึม&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;การพิสูจน์ความถูกต้องของอัลกอริทึม&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aoy</name></author>
		
	</entry>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7535&amp;oldid=prev</id>
		<title>Aoy เมื่อ 19:01, 18 กันยายน 2552</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7535&amp;oldid=prev"/>
		<updated>2009-09-18T19:01:34Z</updated>

		<summary type="html">&lt;p&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 class=&quot;diff-title&quot; lang=&quot;th&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←รุ่นแก้ไขก่อนหน้า&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;รุ่นแก้ไขเมื่อ 19:01, 18 กันยายน 2552&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-l5&quot; &gt;แถว 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;ข้อสังเกต&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;ข้อสังเกต&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; l,m \, &amp;lt;/math&amp;gt; เป็นผู้ใช้สองคนจากผู้ใช้ทั้งหมด &amp;lt;math&amp;gt; n \, &amp;lt;/math&amp;gt; คน และให้การจัดลำดับการทำงานสองลำดับคือ &amp;lt;math&amp;gt; S_1,S_2 \, &amp;lt;/math&amp;gt; ที่มีการจัดลำดับของผู้ใช้คนอื่น ๆ เหมือนกันหมด แต่ว่าต่างกันที่ลำดับการทำงานของผู้ใช้ คนที่ &amp;lt;math&amp;gt; l \,&amp;lt;/math&amp;gt; กับ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; เท่านั้น สมมติให้ลำดับที่หนึ่ง &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; ให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_l,i_m,...,i_n \,&amp;lt;/math&amp;gt; ส่วนการจัดลำดับแบบที่สอง &amp;lt;math&amp;gt; S_2 \,&amp;lt;/math&amp;gt; คือให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_m,i_l,...,i_n \,&amp;lt;/math&amp;gt; ดังนั้นเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^l t(i_j)+  \sum_{j=1}^m t(i_j)+ \sum_{k=m+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; ส่วนเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_2 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^m t(i_j)+  \sum_{j=1}^l t(i_j)+ \sum_{k=l+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; โดยที่ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j)=\sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{k=m+1}^n \sum_{j=1}^k t(i_j)=\sum_{k=l+1}^n \sum_{j=1}^k t(i_j)\,&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; l,m \, &amp;lt;/math&amp;gt; เป็นผู้ใช้สองคนจากผู้ใช้ทั้งหมด &amp;lt;math&amp;gt; n \, &amp;lt;/math&amp;gt; คน และให้การจัดลำดับการทำงานสองลำดับคือ &amp;lt;math&amp;gt; S_1,S_2 \, &amp;lt;/math&amp;gt; ที่มีการจัดลำดับของผู้ใช้คนอื่น ๆ เหมือนกันหมด แต่ว่าต่างกันที่ลำดับการทำงานของผู้ใช้ คนที่ &amp;lt;math&amp;gt; l \,&amp;lt;/math&amp;gt; กับ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; เท่านั้น สมมติให้ลำดับที่หนึ่ง &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; ให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_l,i_m,...,i_n \,&amp;lt;/math&amp;gt; ส่วนการจัดลำดับแบบที่สอง &amp;lt;math&amp;gt; S_2 \,&amp;lt;/math&amp;gt; คือให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_m,i_l,...,i_n \,&amp;lt;/math&amp;gt; ดังนั้นเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^l t(i_j)+  \sum_{j=1}^m t(i_j)+ \sum_{k=m+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; ส่วนเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_2 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^m t(i_j)+  \sum_{j=1}^l t(i_j)+ \sum_{k=l+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; โดยที่ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j)=\sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{k=m+1}^n \sum_{j=1}^k t(i_j)=\sum_{k=l+1}^n \sum_{j=1}^k t(i_j)\,&amp;lt;/math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;แต่ &amp;lt;math&amp;gt; \sum_{j=1}^l t(i_j) \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{j=1}^m t(i_j)\,&amp;lt;/math&amp;gt; ใน &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; S_2 \, &amp;lt;/math&amp;gt; ไม่เท่ากัน&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;การพิสูจน์ความถูกต้องของอัลกอริทึม&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;การพิสูจน์ความถูกต้องของอัลกอริทึม&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aoy</name></author>
		
	</entry>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7534&amp;oldid=prev</id>
		<title>Aoy เมื่อ 18:57, 18 กันยายน 2552</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7534&amp;oldid=prev"/>
		<updated>2009-09-18T18:57:56Z</updated>

		<summary type="html">&lt;p&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 class=&quot;diff-title&quot; lang=&quot;th&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;←รุ่นแก้ไขก่อนหน้า&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;รุ่นแก้ไขเมื่อ 18:57, 18 กันยายน 2552&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-l4&quot; &gt;แถว 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;โจทย์ต้องการให้เวลาคอยรวมของผู้ใช้ทุกคนมีค่าน้อยที่สุด เขียนเป็นสมการทางคณิตศาสตร์คือต้องการให้ค่า &amp;lt;math&amp;gt;T = \sum_{k=1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; มีค่าน้อยที่สุดนั่นเอง&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;โจทย์ต้องการให้เวลาคอยรวมของผู้ใช้ทุกคนมีค่าน้อยที่สุด เขียนเป็นสมการทางคณิตศาสตร์คือต้องการให้ค่า &amp;lt;math&amp;gt;T = \sum_{k=1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; มีค่าน้อยที่สุดนั่นเอง&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;#039;&amp;#039;ข้อสังเกต&amp;#039;&amp;#039;==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;math&amp;gt; l,m \, &amp;lt;/math&amp;gt; เป็นผู้ใช้สองคนจากผู้ใช้ทั้งหมด &amp;lt;math&amp;gt; n \, &amp;lt;/math&amp;gt; คน และให้การจัดลำดับการทำงานสองลำดับคือ &amp;lt;math&amp;gt; S_1,S_2 \, &amp;lt;/math&amp;gt; ที่มีการจัดลำดับของผู้ใช้คนอื่น ๆ เหมือนกันหมด แต่ว่าต่างกันที่ลำดับการทำงานของผู้ใช้ คนที่ &amp;lt;math&amp;gt; l \,&amp;lt;/math&amp;gt; กับ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; เท่านั้น สมมติให้ลำดับที่หนึ่ง &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; ให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_l,i_m,...,i_n \,&amp;lt;/math&amp;gt; ส่วนการจัดลำดับแบบที่สอง &amp;lt;math&amp;gt; S_2 \,&amp;lt;/math&amp;gt; คือให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; นั่นคือลำดับเป็นดังนี้ &amp;lt;math&amp;gt; i_1,i_2,...,i_m,i_l,...,i_n \,&amp;lt;/math&amp;gt; ดังนั้นเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_1 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^l t(i_j)+  \sum_{j=1}^m t(i_j)+ \sum_{k=m+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; ส่วนเวลาคอยรวมของผู้ใช้จากการจัดลำดับแบบ &amp;lt;math&amp;gt; S_2 \, &amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; \sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) + \sum_{j=1}^m t(i_j)+  \sum_{j=1}^l t(i_j)+ \sum_{k=l+1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; โดยที่ &amp;lt;math&amp;gt; \sum_{k=1}^{l-1}\sum_{j=1}^k t(i_j)=\sum_{k=1}^{m-1}\sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; \sum_{k=m+1}^n \sum_{j=1}^k t(i_j)=\sum_{k=l+1}^n \sum_{j=1}^k t(i_j)\,&amp;lt;/math&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;การพิสูจน์ความถูกต้องของอัลกอริทึม&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==&amp;#039;&amp;#039;การพิสูจน์ความถูกต้องของอัลกอริทึม&amp;#039;&amp;#039;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Aoy</name></author>
		
	</entry>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7533&amp;oldid=prev</id>
		<title>125.25.13.255: หน้าที่ถูกสร้างด้วย &#039;==&#039;&#039;อัลกอริทึม&#039;&#039;== เรียงงานของผู้ใช้ตาม &lt;math&gt; t(i) \, &lt;/math&gt; จากน้…&#039;</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=418531_%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%95%E0%B9%89%E0%B8%99_2552/%E0%B9%82%E0%B8%88%E0%B8%97%E0%B8%A2%E0%B9%8C%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%AD%E0%B8%B1%E0%B8%A5%E0%B8%81%E0%B8%AD%E0%B8%A3%E0%B8%B4%E0%B8%97%E0%B8%B6%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%95%E0%B8%B0%E0%B8%81%E0%B8%A5%E0%B8%B0_I/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_8&amp;diff=7533&amp;oldid=prev"/>
		<updated>2009-09-18T18:35:30Z</updated>

		<summary type="html">&lt;p&gt;หน้าที่ถูกสร้างด้วย &amp;#039;==&amp;#039;&amp;#039;อัลกอริทึม&amp;#039;&amp;#039;== เรียงงานของผู้ใช้ตาม &amp;lt;math&amp;gt; t(i) \, &amp;lt;/math&amp;gt; จากน้…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;หน้าใหม่&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==&amp;#039;&amp;#039;อัลกอริทึม&amp;#039;&amp;#039;==&lt;br /&gt;
เรียงงานของผู้ใช้ตาม &amp;lt;math&amp;gt; t(i) \, &amp;lt;/math&amp;gt; จากน้อยไปหามาก แล้วส่งให้เครื่องจักรทำงานตามลำดับนั้น จะได้ว่า อัลกอริทึมทำงานได้ในเวลา &amp;lt;math&amp;gt; O(n \log n) \,&amp;lt;/math&amp;gt; ซึ่งใช้ในการเรียงลำดับนั่นเอง&lt;br /&gt;
&lt;br /&gt;
โจทย์ต้องการให้เวลาคอยรวมของผู้ใช้ทุกคนมีค่าน้อยที่สุด เขียนเป็นสมการทางคณิตศาสตร์คือต้องการให้ค่า &amp;lt;math&amp;gt;T = \sum_{k=1}^n \sum_{j=1}^k t(i_j) \,&amp;lt;/math&amp;gt; มีค่าน้อยที่สุดนั่นเอง&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&amp;#039;&amp;#039;การพิสูจน์ความถูกต้องของอัลกอริทึม&amp;#039;&amp;#039;==&lt;br /&gt;
เราจะพิสูจน์ความถูกต้องของอัลกอริทึมโดยใช้เทคนิค exchange argument&lt;br /&gt;
ให้ &amp;lt;math&amp;gt; OPT \, &amp;lt;/math&amp;gt; แทนวิธีการจัดลำดับการทำงานให้เครื่องจักรที่มีเวลาคอยรวมของผู้ใช้น้อยที่สุด เราจะแสดงว่าเราสามารถเปลี่ยนวิธีการจัดลำดับการส่งงานให้เครื่องจักร &amp;lt;math&amp;gt; OPT \, &amp;lt;/math&amp;gt; ไปเป็นวิธีการจัดลำดับการส่งงานให้เครื่องจักรทำเรียงตามค่า &amp;lt;math&amp;gt; t(i) \, &amp;lt;/math&amp;gt; จากน้อยไปมากได้ โดยที่เวลาคอยรวมของผู้ใช้ไม่เพิ่มขึ้น&lt;br /&gt;
&lt;br /&gt;
สมมติว่า &amp;lt;math&amp;gt; OPT \, &amp;lt;/math&amp;gt; ไม่ใช่การจัดลำดับตามวิธีการในอัลกอริทึมข้างต้น แสดงว่ามี inversion ที่อยู่ติดกัน กล่าวคือจะต้องมีงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \,&amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ที่ &amp;lt;math&amp;gt; t(l) &amp;gt; t(m) \,&amp;lt;/math&amp;gt; แต่ งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; ได้ทำก่อนของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
จากในห้องเรียนเราได้ทำการพิสูจน์ไปแล้วว่า เมื่อมี inversion แล้วจะต้องมีคู่ของ inversion ที่ติดกัน กล่าวคือจะต้องมีงานของลูกค้าคนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; และ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ที่ &amp;lt;math&amp;gt; t(l) &amp;gt; t(m) \, &amp;lt;/math&amp;gt; และงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ถูกทำต่อจากงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; ทันที ถ้าหากเราสลับให้งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; m \, &amp;lt;/math&amp;gt; ทำก่อนงานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \,&amp;lt;/math&amp;gt; เราก็สามารถลดจำนวนของ inversion ไปได้อีกหนึ่งตัว และเราสามารถทำแบบนี้ไปได้เรื่อย ๆ จนกระทั่งไม่เหลือ inversion ดังนั้นเราจะสามารถเปลี่ยนลำดับการจัดงานให้เครื่องจักรแบบ &amp;lt;math&amp;gt; OPT \, &amp;lt;/math&amp;gt; ให้เป็นลำดับจัดงานให้เครื่องจักรเหมือนใน greedy algorithm ที่เรานำเสนอได้เสมอ&lt;br /&gt;
&lt;br /&gt;
ต่อไปเราต้องทำการพิสูจน์ให้ได้ว่า การสลับลำดับการจัดงานให้เครื่องจักรข้างต้นจะไม่ทำให้เวลาคอยรวมของผู้ใช้เพิ่มขึ้น&lt;br /&gt;
&lt;br /&gt;
สมมติให้ก่อนการสลับ งานของผู้ใช้คนที่ &amp;lt;math&amp;gt; l \, &amp;lt;/math&amp;gt; ได้เริ่มทำที่เวลา &amp;lt;math&amp;gt; S \, &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
และจะได้ว่าหลังการสลับ &lt;br /&gt;
&lt;br /&gt;
เมื่อพิจารณาสมการเวลาคอยรวมก่อนและหลังสลับข้างต้น และเนื่องจาก &amp;lt;math&amp;gt; t(l) &amp;gt; t(m) \,&amp;lt;/math&amp;gt; เราจะได้ว่าหลังการสลับไม่ได้ทำให้เวลาคอยรวมของผู้ใช้เพิ่มขึ้น&lt;br /&gt;
&lt;br /&gt;
ดังนั้นเราจึงสรุปได้ว่าการจัดลำดับการทำงานให้เครื่องจักรตามวิธี greedy algorithm ข้างต้น ทำให้เวลาคอยรวมของผู้ใช้น้อยที่สุดเท่าที่จะเป็นไปได้แล้ว&lt;/div&gt;</summary>
		<author><name>125.25.13.255</name></author>
		
	</entry>
</feed>