<?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_II%2F%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5</id>
	<title>418531 ภาคต้น 2552/โจทย์ปัญหาอัลกอริทึมแบบตะกละ II/เฉลยข้อ 5 - ประวัติรุ่นแก้ไข</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_II%2F%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5"/>
	<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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;action=history"/>
	<updated>2026-04-25T16:11:23Z</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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7577&amp;oldid=prev</id>
		<title>Aoy: /* ข้อย่อย 2 */</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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7577&amp;oldid=prev"/>
		<updated>2009-09-30T07:15:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ข้อย่อย 2&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;รุ่นแก้ไขเมื่อ 07:15, 30 กันยายน 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-l3&quot; &gt;แถว 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 3:&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;== ข้อย่อย 2 ==&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;== ข้อย่อย 2 ==&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;จากอัลกอริทึมในข้อย่อย 1 เราจะได้ว่าถ้า &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ไม่เป็น minimum spanning tree อีกต่อไป เราก็จะทำการหา edge ที่มี cost มากที่สุดใน cycle แล้วลบ edge นั้นทิ้งไป &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ให้ tree ต้นใหม่ที่ได้เป็น &lt;/del&gt;&amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; จะได้ว่าจำนวน edge ที่เหลือใน &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; |V| - 1 \,&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;เนื่องจากเดิม &lt;/del&gt;&amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;เป็น connected graph ที่มี &amp;lt;math&amp;gt; |V| \,&amp;lt;/math&amp;gt; การลบ &lt;/del&gt;edge ที่อยู่ใน cycle &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ทิ้งไปหนึ่ง &lt;/del&gt;edge &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ยังทำให้ &lt;/del&gt;&amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;เป็น connected graph เหมือนเดิม ดังนั้น &lt;/del&gt;&amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; นี้เป็น tree และ เป็น tree ที่ span ไปทุก  ๆ vertex ของ &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; เนื่องจาก สมมติให้ edge ที่มี cost มากที่สุดใน cycle ที่เราลบไปคือ edge &amp;lt;math&amp;gt; e&amp;#039;=(x,y) \,&amp;lt;/math&amp;gt; เนื่องจากก่อนหน้านี้เราเคยมี path จาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้ โดยผ่าน edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; นี้ แต่หลังจากลบ edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; ออกไปแล้ว เราก็ยังสามารถเดินทางจาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้  โดยการเดินทาง โดยอ้อมจาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปหาโหนดที่เชื่อมกับ &amp;lt;math&amp;gt; x \, &amp;lt;/math&amp;gt; ให้ โหนดนี้เป็น &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; หลังจากนั้นจาก &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; ไปยัง vertex ที่เชื่อมกับ &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; และเนื่องจาก &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;จะเป็นกราฟเชื่อมโยง &lt;/del&gt;ดังนั้นต้องมีทางจาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้ใน &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; ดังนั้น &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; เป็น spanning tree และ เป็น spanning tree ที่มี cost น้อยที่สุดด้วย เพราะก่อนหน้าที่จะลบ edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; ออกจาก &amp;lt;math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;G &lt;/del&gt;\,&amp;lt;/math&amp;gt; นั้น &amp;lt;math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;G &lt;/del&gt;\,&amp;lt;/math&amp;gt; มี cycle แค่ตัวเดียว และเราทำการลบ edge ที่มี cost มากที่สุดใน cycle ออกไปแล้ว ดังนั้นเราจึงสามารถสรุปได้ว่า &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; ที่ได้เป็น minimum spanning tree แล้ว&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;เพื่อความง่ายในการอธิบายจะเรียก minimum spanning tree &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ที่เพิ่ม edge &amp;lt;math&amp;gt; e=(v,w) \,&amp;lt;/math&amp;gt; เข้าไปใน &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; นี้ว่ากราฟ &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; &lt;/ins&gt;จากอัลกอริทึมในข้อย่อย 1 เราจะได้ว่าถ้า &amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039; &lt;/ins&gt;\,&amp;lt;/math&amp;gt; ไม่เป็น minimum spanning tree อีกต่อไป เราก็จะทำการหา edge ที่มี cost มากที่สุดใน cycle &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ในกราฟ &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; &lt;/ins&gt;แล้วลบ edge นั้นทิ้งไป &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ให้กราฟใหม่ที่ได้เป็น &lt;/ins&gt;&amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039; \,&amp;lt;/math&amp;gt; จะได้ว่าจำนวน edge ที่เหลือใน &amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039; \,&amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; |V| - 1 \,&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;และเนื่องจากเดิม &lt;/ins&gt;&amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039; &lt;/ins&gt;\,&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;มี cycle แค่ตัวเดียว และตอนนี้เราได้ลบ &lt;/ins&gt;edge ที่อยู่ใน cycle &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;นั้นทิ้งไปหนึ่ง &lt;/ins&gt;edge &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;แล้ว ดังนั้น &lt;/ins&gt;&amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039; \,&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;จึงไม่มี cycle เราจึงสามารถสรุปได้ว่า &lt;/ins&gt;&amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039; \,&amp;lt;/math&amp;gt; นี้เป็น tree และ เป็น tree ที่ span ไปทุก  ๆ vertex ของ &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; เนื่องจาก สมมติให้ edge ที่มี cost มากที่สุดใน cycle ที่เราลบไปคือ edge &amp;lt;math&amp;gt; e&amp;#039;=(x,y) \,&amp;lt;/math&amp;gt; เนื่องจากก่อนหน้านี้เราเคยมี path จาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้ โดยผ่าน edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; นี้ แต่หลังจากลบ edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; ออกไปแล้ว เราก็ยังสามารถเดินทางจาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้  โดยการเดินทาง โดยอ้อมจาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปหาโหนดที่เชื่อมกับ &amp;lt;math&amp;gt; x \, &amp;lt;/math&amp;gt; ให้ โหนดนี้เป็น &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; หลังจากนั้นจาก &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; ไปยัง vertex ที่เชื่อมกับ &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; และเนื่องจาก &amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&amp;#039; &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; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้ใน &amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039; \,&amp;lt;/math&amp;gt; ดังนั้น &amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039; \,&amp;lt;/math&amp;gt; เป็น spanning tree และ เป็น spanning tree ที่มี cost น้อยที่สุดด้วย เพราะก่อนหน้าที่จะลบ edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; ออกจาก &amp;lt;math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;T&amp;#039; &lt;/ins&gt;\,&amp;lt;/math&amp;gt; นั้น &amp;lt;math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;T&amp;#039; &lt;/ins&gt;\,&amp;lt;/math&amp;gt; มี cycle แค่ตัวเดียว และเราทำการลบ edge ที่มี cost มากที่สุดใน cycle ออกไปแล้ว ดังนั้นเราจึงสามารถสรุปได้ว่า &amp;lt;math&amp;gt; T&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&lt;/ins&gt;&amp;#039; \,&amp;lt;/math&amp;gt; ที่ได้เป็น minimum spanning tree แล้ว&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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7575&amp;oldid=prev</id>
		<title>Aoy: /* ข้อย่อย 2 */</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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7575&amp;oldid=prev"/>
		<updated>2009-09-30T06:43:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ข้อย่อย 2&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;รุ่นแก้ไขเมื่อ 06:43, 30 กันยายน 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-l3&quot; &gt;แถว 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 3:&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;== ข้อย่อย 2 ==&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;== ข้อย่อย 2 ==&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;จากอัลกอริทึมในข้อย่อย 1 เราจะได้ว่าถ้า &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ไม่เป็น minimum spanning tree อีกต่อไป เราก็จะทำการหา edge ที่มี cost มากที่สุดใน cycle แล้วลบ edge นั้นทิ้งไป ให้ tree ต้นใหม่ที่ได้เป็น &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; จะได้ว่าจำนวน edge ที่เหลือใน &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; คือ &amp;lt;math&amp;gt; |V| - 1 \,&amp;lt;/math&amp;gt; เนื่องจากเดิม &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; เป็น connected graph ที่มี &amp;lt;math&amp;gt; |V| \,&amp;lt;/math&amp;gt; การลบ edge ที่อยู่ใน cycle ทิ้งไปหนึ่ง edge ยังทำให้ &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; เป็น connected graph เหมือนเดิม ดังนั้น &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; นี้เป็น tree และ เป็น tree ที่ span ไปทุก  ๆ vertex ของ &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; เนื่องจาก สมมติให้ edge ที่มี cost มากที่สุดใน cycle ที่เราลบไปคือ edge &amp;lt;math&amp;gt; e&amp;#039;=(x,y) \,&amp;lt;/math&amp;gt; เนื่องจากก่อนหน้านี้เราเคยมี path จาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้ โดยผ่าน edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; นี้ แต่หลังจากลบ edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; ออกไปแล้ว เราก็ยังสามารถเดินทางจาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้  โดยการเดินทาง โดยอ้อมจาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปหาโหนดที่เชื่อมกับ &amp;lt;math&amp;gt; x \, &amp;lt;/math&amp;gt; ให้ โหนดนี้เป็น &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; หลังจากนั้นจาก &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; ไปยัง vertex ที่เชื่อมกับ &amp;lt;math&amp;gt; z \,&amp;lt;/math&amp;gt; และเนื่องจาก &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; จะเป็นกราฟเชื่อมโยง ดังนั้นต้องมีทางจาก &amp;lt;math&amp;gt; x \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt; y \,&amp;lt;/math&amp;gt; ได้ใน &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; ดังนั้น &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; เป็น spanning tree และ เป็น spanning tree ที่มี cost น้อยที่สุดด้วย เพราะก่อนหน้าที่จะลบ edge &amp;lt;math&amp;gt; e&amp;#039; \,&amp;lt;/math&amp;gt; ออกจาก &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; นั้น &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; มี cycle แค่ตัวเดียว และเราทำการลบ edge ที่มี cost มากที่สุดใน cycle ออกไปแล้ว ดังนั้นเราจึงสามารถสรุปได้ว่า &amp;lt;math&amp;gt; T&amp;#039; \,&amp;lt;/math&amp;gt; ที่ได้เป็น minimum spanning tree แล้ว&lt;/ins&gt;&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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7574&amp;oldid=prev</id>
		<title>Aoy: /* ข้อย่อย 1 */</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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7574&amp;oldid=prev"/>
		<updated>2009-09-30T06:26:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ข้อย่อย 1&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;รุ่นแก้ไขเมื่อ 06:26, 30 กันยายน 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-l1&quot; &gt;แถว 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 1:&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;== ข้อย่อย 1 ==&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;== ข้อย่อย 1 ==&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; T \, &amp;lt;/math&amp;gt; เป็น minimum spanning tree จึงไม่มี cycle และเป็น tree ที่ span ไปยังทุก  vertex ในกราฟ ดังนั้นเมื่อเพิ่ม edge &amp;lt;math&amp;gt; e=(v,w) \,&amp;lt;/math&amp;gt;เข้าไปใน &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; แล้วจะทำให้เกิด cycle ขึ้น ซึ่งหลังจากเพิ่ม edge &amp;lt;math&amp;gt; e=(v,w) \,&amp;lt;/math&amp;gt; นี้เข้าไปใน &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; แล้ว tree &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; จะไม่เป็น minimum spanning tree ของกราฟใหม่ ถ้า edge ที่เพิ่มเข้าไปนี้ไม่ได้เป็น edge ที่มี cost มากที่สุดใน cycle แสดงว่า edge ที่มี cost มากที่สุดใน cycle ต้องเป็น edge ที่อยู่ใน &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ก่อนหน้านี้แล้ว จาก cycle property ที่บอกว่า edge ที่มี cost มากที่สุดใน cycle จะไม่อยู่ใน minimum spanning tree ดังนั้น &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; จึงไม่เป็น minimum spanning tree ของ &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; อีกต่อไป ซึ่งอัลกอริทึมข้างต้นจะใช้เวลาเป็น &amp;lt;math&amp;gt; O(|E|) \,&amp;lt;/math&amp;gt; แต่เนื่องจาก &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; เป็น tree จึงมีจำนวน edge ได้ &amp;lt;math&amp;gt; |V| -1 \,&amp;lt;/math&amp;gt; ซึ่งหลังจากเพิ่ม edge &amp;lt;math&amp;gt; u=(v,w) \,&amp;lt;/math&amp;gt; เข้าไปแล้วจำนวน edge ที่ต้องตรวจสอบอย่างมากคือ &amp;lt;math&amp;gt; |V|-1+1=|V| \,&amp;lt;/math&amp;gt; ดังนั้น อัลกอริทึมข้างต้นจริง ๆ ทำงานได้ใน &amp;lt;math&amp;gt; O(|V|) \,&amp;lt;/math&amp;gt; ส่วนโครงสร้างข้อมูลที่ใช้เก็บแทนกราฟและ tree &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ก็ใช้ &lt;/del&gt;adjacency list ได้&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; T \, &amp;lt;/math&amp;gt; เป็น minimum spanning tree จึงไม่มี cycle และเป็น tree ที่ span ไปยังทุก  vertex ในกราฟ ดังนั้นเมื่อเพิ่ม edge &amp;lt;math&amp;gt; e=(v,w) \,&amp;lt;/math&amp;gt;เข้าไปใน &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; แล้วจะทำให้เกิด cycle ขึ้น ซึ่งหลังจากเพิ่ม edge &amp;lt;math&amp;gt; e=(v,w) \,&amp;lt;/math&amp;gt; นี้เข้าไปใน &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; แล้ว tree &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; จะไม่เป็น minimum spanning tree ของกราฟใหม่ ถ้า edge ที่เพิ่มเข้าไปนี้ไม่ได้เป็น edge ที่มี cost มากที่สุดใน cycle แสดงว่า edge ที่มี cost มากที่สุดใน cycle ต้องเป็น edge ที่อยู่ใน &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ก่อนหน้านี้แล้ว จาก cycle property ที่บอกว่า edge ที่มี cost มากที่สุดใน cycle จะไม่อยู่ใน minimum spanning tree ดังนั้น &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; จึงไม่เป็น minimum spanning tree ของ &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;อีกต่อไป ดังนั้นอัลกอริทึมในการตรวจสอบว่า &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ยังเป็น minimum spanning tree อยู่หรือไม่ ก็คือดูว่า edge ที่เพิ่มเข้าไปนั้นเป็น edge ที่มี cost มากที่สุดใน cycle หรือไม่ ถ้าใช้ &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ก็ยังเป็น minimum spanning tree เหมือนเดิม แต่ถ้าไม่ใช่ &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ก็จะไม่ใช่ minimum spanning tree &lt;/ins&gt;อีกต่อไป ซึ่งอัลกอริทึมข้างต้นจะใช้เวลาเป็น &amp;lt;math&amp;gt; O(|E|) \,&amp;lt;/math&amp;gt; แต่เนื่องจาก &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; เป็น tree จึงมีจำนวน edge ได้ &amp;lt;math&amp;gt; |V| -1 \,&amp;lt;/math&amp;gt; ซึ่งหลังจากเพิ่ม edge &amp;lt;math&amp;gt; u=(v,w) \,&amp;lt;/math&amp;gt; เข้าไปแล้วจำนวน edge ที่ต้องตรวจสอบอย่างมากคือ &amp;lt;math&amp;gt; |V|-1+1=|V| \,&amp;lt;/math&amp;gt; ดังนั้น อัลกอริทึมข้างต้นจริง ๆ ทำงานได้ใน &amp;lt;math&amp;gt; O(|V|) \,&amp;lt;/math&amp;gt; ส่วนโครงสร้างข้อมูลที่ใช้เก็บแทนกราฟและ tree &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ก็สามารถใช้ &lt;/ins&gt;adjacency list ได้&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;== ข้อย่อย 2 ==&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;== ข้อย่อย 2 ==&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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7573&amp;oldid=prev</id>
		<title>Aoy: /* ข้อย่อย 1 */</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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7573&amp;oldid=prev"/>
		<updated>2009-09-30T06:21:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ข้อย่อย 1&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;รุ่นแก้ไขเมื่อ 06:21, 30 กันยายน 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-l1&quot; &gt;แถว 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 1:&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;== ข้อย่อย 1 ==&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;== ข้อย่อย 1 ==&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; T \, &amp;lt;/math&amp;gt; เป็น minimum spanning tree จึงไม่มี cycle และเป็น tree ที่ span ไปยังทุก  vertex ในกราฟ ดังนั้นเมื่อเพิ่ม edge &amp;lt;math&amp;gt; e=(v,w) \,&amp;lt;/math&amp;gt;เข้าไปใน &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; แล้วจะทำให้เกิด cycle ขึ้น ซึ่งหลังจากเพิ่ม edge &amp;lt;math&amp;gt; e=(v,w) \,&amp;lt;/math&amp;gt; นี้เข้าไปใน &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; แล้ว tree &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; จะไม่เป็น minimum spanning tree ของกราฟใหม่ ถ้า edge ที่เพิ่มเข้าไปนี้ไม่ได้เป็น edge ที่มี cost มากที่สุดใน cycle แสดงว่า edge ที่มี cost มากที่สุดใน cycle ต้องเป็น edge ที่อยู่ใน &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; ก่อนหน้านี้แล้ว จาก cycle property ที่บอกว่า edge ที่มี cost มากที่สุดใน cycle จะไม่อยู่ใน minimum spanning tree ดังนั้น &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; จึงไม่เป็น minimum spanning tree ของ &amp;lt;math&amp;gt; G \,&amp;lt;/math&amp;gt; อีกต่อไป ซึ่งอัลกอริทึมข้างต้นจะใช้เวลาเป็น &amp;lt;math&amp;gt; O(|E|) \,&amp;lt;/math&amp;gt; แต่เนื่องจาก &amp;lt;math&amp;gt; T \,&amp;lt;/math&amp;gt; เป็น tree จึงมีจำนวน edge ได้ &amp;lt;math&amp;gt; |V| -1 \,&amp;lt;/math&amp;gt; ซึ่งหลังจากเพิ่ม edge &amp;lt;math&amp;gt; u=(v,w) \,&amp;lt;/math&amp;gt; เข้าไปแล้วจำนวน edge ที่ต้องตรวจสอบอย่างมากคือ &amp;lt;math&amp;gt; |V|-1+1=|V| \,&amp;lt;/math&amp;gt; ดังนั้น อัลกอริทึมข้างต้นจริง ๆ ทำงานได้ใน &amp;lt;math&amp;gt; O(|V|) \,&amp;lt;/math&amp;gt; ส่วนโครงสร้างข้อมูลที่ใช้เก็บแทนกราฟและ tree ก็ใช้ adjacency list ได้&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;== ข้อย่อย 2 ==&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;== ข้อย่อย 2 ==&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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7572&amp;oldid=prev</id>
		<title>Aoy: หน้าที่ถูกสร้างด้วย &#039;== ข้อย่อย 1 ==  == ข้อย่อย 2 ==&#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_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_5&amp;diff=7572&amp;oldid=prev"/>
		<updated>2009-09-30T06:06:45Z</updated>

		<summary type="html">&lt;p&gt;หน้าที่ถูกสร้างด้วย &amp;#039;== ข้อย่อย 1 ==  == ข้อย่อย 2 ==&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;หน้าใหม่&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== ข้อย่อย 1 ==&lt;br /&gt;
&lt;br /&gt;
== ข้อย่อย 2 ==&lt;/div&gt;</summary>
		<author><name>Aoy</name></author>
		
	</entry>
</feed>