<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="th">
	<id>http://158.108.32.49/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%81%E0%B8%B2%E0%B8%A3%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%9E%E0%B8%A5%E0%B8%A7%E0%B8%B1%E0%B8%95_II%2F%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_4</id>
	<title>418531 ภาคต้น 2552/โจทย์ปัญหาการโปรแกรมพลวัต II/เฉลยข้อ 4 - ประวัติรุ่นแก้ไข</title>
	<link rel="self" type="application/atom+xml" href="http://158.108.32.49/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%81%E0%B8%B2%E0%B8%A3%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%9E%E0%B8%A5%E0%B8%A7%E0%B8%B1%E0%B8%95_II%2F%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_4"/>
	<link rel="alternate" type="text/html" href="http://158.108.32.49/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%81%E0%B8%B2%E0%B8%A3%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%9E%E0%B8%A5%E0%B8%A7%E0%B8%B1%E0%B8%95_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_4&amp;action=history"/>
	<updated>2026-05-05T07:53:57Z</updated>
	<subtitle>ประวัติรุ่นแก้ไขของหน้านี้ในวิกิ</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>http://158.108.32.49/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%81%E0%B8%B2%E0%B8%A3%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%9E%E0%B8%A5%E0%B8%A7%E0%B8%B1%E0%B8%95_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_4&amp;diff=7696&amp;oldid=prev</id>
		<title>Cardcaptor: หน้าที่ถูกสร้างด้วย &#039;อัลกอริทึมสำหรับหา cycle ที่สั้นที่สุดที่มี edge &lt;math&gt;e \,&lt;/math&gt;…&#039;</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/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%81%E0%B8%B2%E0%B8%A3%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1%E0%B8%9E%E0%B8%A5%E0%B8%A7%E0%B8%B1%E0%B8%95_II/%E0%B9%80%E0%B8%89%E0%B8%A5%E0%B8%A2%E0%B8%82%E0%B9%89%E0%B8%AD_4&amp;diff=7696&amp;oldid=prev"/>
		<updated>2009-10-04T12:01:16Z</updated>

		<summary type="html">&lt;p&gt;หน้าที่ถูกสร้างด้วย &amp;#039;อัลกอริทึมสำหรับหา cycle ที่สั้นที่สุดที่มี edge &amp;lt;math&amp;gt;e \,&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;อัลกอริทึมสำหรับหา cycle ที่สั้นที่สุดที่มี edge &amp;lt;math&amp;gt;e \,&amp;lt;/math&amp;gt; เป็นส่วนประกอบ มีดังต่อไปนี้&lt;br /&gt;
# ตัด edge &amp;lt;math&amp;gt;e \,&amp;lt;/math&amp;gt; ออกจากกราฟ&lt;br /&gt;
# สมมติว่า &amp;lt;math&amp;gt;e = \{u,v\} \,&amp;lt;/math&amp;gt;  ให้ทำการหา shortest path จาก &amp;lt;math&amp;gt;u \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt;v \,&amp;lt;/math&amp;gt; ในกราฟที่ตัด &amp;lt;math&amp;gt;e \,&amp;lt;/math&amp;gt; ออกไปแล้ว ด้วย Dijkstra&amp;#039;s algorithm&lt;br /&gt;
# คืนผลบวกความยาวของ cycle ในข้อ 2 กับ &amp;lt;math&amp;gt;\ell_e \,&amp;lt;/math&amp;gt; เป็นคำตอบ&lt;br /&gt;
&lt;br /&gt;
เราสามารถแสดงว่าอัลกอริทึมข้างต้นคืนความยาวของ cycle ที่สั้นที่สุดที่มี &amp;lt;math&amp;gt;e \,&amp;lt;/math&amp;gt; เป็นส่วนประกอบได้ดังต่อไปนี้&lt;br /&gt;
&lt;br /&gt;
พิจารณา cycle ที่มี &amp;lt;math&amp;gt;e = \{u,v \} \,&amp;lt;/math&amp;gt; เป็นส่วนประกอบใดๆ &lt;br /&gt;
ถ้าเราตัด  &amp;lt;math&amp;gt;e \,&amp;lt;/math&amp;gt; ออกจาก cycle นั้นเราจะได้ path จาก &amp;lt;math&amp;gt;u \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt;v \,&amp;lt;/math&amp;gt; โดย path นี้ไม่ใช้ &amp;lt;math&amp;gt;e \,&amp;lt;/math&amp;gt;&lt;br /&gt;
ใน cycle ที่มี &amp;lt;math&amp;gt;e \,&amp;lt;/math&amp;gt; เป็นส่วนประกอบที่สั้นที่สุดจึงต้องมีความยาวของ path จาก &amp;lt;math&amp;gt;u \,&amp;lt;/math&amp;gt; ไปยัง  &amp;lt;math&amp;gt;v \,&amp;lt;/math&amp;gt; ดังกล่าวที่สั้นที่สุดเท่าที่จะเป็นไปได้&lt;br /&gt;
ความยาวที่สั้นที่สุดที่ว่านี้คือความยาวของ shortest path จาก &amp;lt;math&amp;gt;u \,&amp;lt;/math&amp;gt; ไปยัง &amp;lt;math&amp;gt;v \,&amp;lt;/math&amp;gt; ในกราฟที่ตัด edge &amp;lt;math&amp;gt;e \,&amp;lt;/math&amp;gt; ออกไปแล้วนั่นเอง&lt;br /&gt;
&lt;br /&gt;
เราจะเห็นได้ว่าอัลกอริทึมข้างบนมีเวลาการทำงานเท่ากับ Dijkstra&amp;#039;s algorithm ซึ่งมีเวลาการทำงานเท่ากับ &amp;lt;math&amp;gt;O(|V| \log |V| + |E|) = O(|V|^2)\,&amp;lt;/math&amp;gt; หากเราใช้โครงสร้างข้อมูล Fibonacci Heap&lt;/div&gt;</summary>
		<author><name>Cardcaptor</name></author>
		
	</entry>
</feed>