<?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=Ioi16%2Ftest_gen_tsp</id>
	<title>Ioi16/test gen tsp - ประวัติรุ่นแก้ไข</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=Ioi16%2Ftest_gen_tsp"/>
	<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=Ioi16/test_gen_tsp&amp;action=history"/>
	<updated>2026-04-17T19:15:40Z</updated>
	<subtitle>ประวัติรุ่นแก้ไขของหน้านี้ในวิกิ</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=Ioi16/test_gen_tsp&amp;diff=56631&amp;oldid=prev</id>
		<title>Jittat เมื่อ 14:36, 10 มีนาคม 2559</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=Ioi16/test_gen_tsp&amp;diff=56631&amp;oldid=prev"/>
		<updated>2016-03-10T14:36:04Z</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;รุ่นแก้ไขเมื่อ 14:36, 10 มีนาคม 2559&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-l15&quot; &gt;แถว 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 15:&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 5&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 5&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;div&gt;&amp;lt;/pre&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;/pre&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;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 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; &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;== output ==&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;== output ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>https://theory.cpe.ku.ac.th/wiki/index.php?title=Ioi16/test_gen_tsp&amp;diff=56630&amp;oldid=prev</id>
		<title>Jittat: หน้าที่ถูกสร้างด้วย &#039;== input == input ของโปรแกรมในโจทย์ข้อ tsp (ควรเป็น output ของคุณ) ...&#039;</title>
		<link rel="alternate" type="text/html" href="https://theory.cpe.ku.ac.th/wiki/index.php?title=Ioi16/test_gen_tsp&amp;diff=56630&amp;oldid=prev"/>
		<updated>2016-03-10T14:35:52Z</updated>

		<summary type="html">&lt;p&gt;หน้าที่ถูกสร้างด้วย &amp;#039;== input == input ของโปรแกรมในโจทย์ข้อ tsp (ควรเป็น output ของคุณ) ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;หน้าใหม่&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== input ==&lt;br /&gt;
input ของโปรแกรมในโจทย์ข้อ tsp (ควรเป็น output ของคุณ) มีรูปแบบดังนี้&lt;br /&gt;
&lt;br /&gt;
* บรรทัดแรกระบุ N แทนจำนวนเมือง (N &amp;lt;= 11 อาจปรับได้ จะแจ้งอีกครั้ง)  เมืองเรียกเป็นเมืองที่ 1,2,...,N&lt;br /&gt;
* อีก N บรรทัดระบุพิกัดของเมือง N เมือง โดยแต่ละบรรทัดระบุพิกัด x และ y เป็นจำนวนจริง มีค่าระหว่าง 0 - 1000&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ตัวอย่าง&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
5&lt;br /&gt;
0 0&lt;br /&gt;
10 0&lt;br /&gt;
0 10&lt;br /&gt;
10 10&lt;br /&gt;
1 5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== output ==&lt;br /&gt;
output ที่โปรแกรมทดสอบของข้อนี้จะพิมพ์ผลลัพธ์รวม N บรรทัด เป็นลำดับของเมืองที่จะเดินทางไป เป็นจำนวนเต็มไม่ซ้ำกัน กล่าวคือ ถ้าเราเดินทางตามคำตอบนี้จะเดินทางเริ่มจากเมืองในบรรทัดแรก ไล่ไปจนถึงเมืองที่มีหมายเลขตามบรรทัดที่ N และกลับไปยังเมืองแรก&lt;br /&gt;
&lt;br /&gt;
== โปรแกรมทดสอบ ==&lt;br /&gt;
&lt;br /&gt;
ดาวน์โหลดได้ที่ http://theory.cpe.ku.ac.th/~jittat/ioi/2016/test-gen/tsp/&lt;br /&gt;
&lt;br /&gt;
* random - พิมพ์คำตอบเป็นลำดับสุ่มของเมือง N เมือง&lt;br /&gt;
* greedy1 - เริ่มจากเมือง 1 เลือกเมืองใกล้สุดที่ยังไม่เคยไป ไล่ไปเรื่อย ๆ&lt;br /&gt;
* greedyall - ทดลองเริ่มจากทุกเมือง จากนั้นใช้ greedy เลือกคำตอบที่ดีที่สุด&lt;br /&gt;
* opt - หาคำตอบที่ดีที่สุด&lt;br /&gt;
&lt;br /&gt;
โปรแกรมอื่น ๆ &lt;br /&gt;
&lt;br /&gt;
* ev - โปรแกรมคำนวณระยะทางรวมที่ใช้เดินตามคำตอบ  สั่งโดย ev input output&lt;/div&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
</feed>