<?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=Computational_complexity%2Fhw1</id>
	<title>Computational complexity/hw1 - ประวัติรุ่นแก้ไข</title>
	<link rel="self" type="application/atom+xml" href="http://158.108.32.49/wiki/index.php?action=history&amp;feed=atom&amp;title=Computational_complexity%2Fhw1"/>
	<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;action=history"/>
	<updated>2026-05-07T01:19:46Z</updated>
	<subtitle>ประวัติรุ่นแก้ไขของหน้านี้ในวิกิ</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59153&amp;oldid=prev</id>
		<title>Jittat เมื่อ 00:25, 15 เมษายน 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59153&amp;oldid=prev"/>
		<updated>2021-04-15T00:25:20Z</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;รุ่นแก้ไขเมื่อ 00:25, 15 เมษายน 2564&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-l18&quot; &gt;แถว 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 18:&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;(b) Show that &amp;lt;math&amp;gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&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;(b) Show that &amp;lt;math&amp;gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&amp;lt;/math&amp;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;&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;&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;Links:&amp;#039;&amp;#039; [[Computational complexity/hw2|การบ้าน 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;: &amp;#039;&amp;#039;Links:&amp;#039;&amp;#039; [[Computational complexity/hw2|การบ้าน 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;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;[[Category:complexity]]&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;[[Category:complexity]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59146&amp;oldid=prev</id>
		<title>Jittat เมื่อ 22:56, 14 เมษายน 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59146&amp;oldid=prev"/>
		<updated>2021-04-14T22:56:54Z</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;รุ่นแก้ไขเมื่อ 22:56, 14 เมษายน 2564&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-l19&quot; &gt;แถว 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 19:&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;(b) Show that &amp;lt;math&amp;gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&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;(b) Show that &amp;lt;math&amp;gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&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;: Links: [[Computational complexity/hw2|การบ้าน 2]]&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;#039;&amp;#039;&lt;/ins&gt;Links:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#039;&amp;#039; &lt;/ins&gt;[[Computational complexity/hw2|การบ้าน 2&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td 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;[[Category:complexity&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59145&amp;oldid=prev</id>
		<title>Jittat เมื่อ 22:56, 14 เมษายน 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59145&amp;oldid=prev"/>
		<updated>2021-04-14T22:56: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;รุ่นแก้ไขเมื่อ 22:56, 14 เมษายน 2564&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;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 มี &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;xx &lt;/del&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;การบ้าน 1 มี &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;6 &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;1. (AB-1.7) Define a &amp;#039;&amp;#039;two-dimensional&amp;#039;&amp;#039; Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only &amp;lt;tt&amp;gt;L&amp;lt;/tt&amp;gt;eft and &amp;lt;tt&amp;gt;R&amp;lt;/tt&amp;gt;ight, but also &amp;lt;tt&amp;gt;U&amp;lt;/tt&amp;gt;p and &amp;lt;tt&amp;gt;D&amp;lt;/tt&amp;gt;own).  Show that for every (time-constructible) &amp;lt;math&amp;gt;T:{\mathbb N}\rightarrow {\mathbb N}&amp;lt;/math&amp;gt; and every Boolean function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; can be computed in time &amp;lt;math&amp;gt;T(n)&amp;lt;/math&amp;gt; using a two-dimensional  TM then &amp;lt;math&amp;gt;f\in DTIME(T(n)^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;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. (AB-1.7) Define a &amp;#039;&amp;#039;two-dimensional&amp;#039;&amp;#039; Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only &amp;lt;tt&amp;gt;L&amp;lt;/tt&amp;gt;eft and &amp;lt;tt&amp;gt;R&amp;lt;/tt&amp;gt;ight, but also &amp;lt;tt&amp;gt;U&amp;lt;/tt&amp;gt;p and &amp;lt;tt&amp;gt;D&amp;lt;/tt&amp;gt;own).  Show that for every (time-constructible) &amp;lt;math&amp;gt;T:{\mathbb N}\rightarrow {\mathbb N}&amp;lt;/math&amp;gt; and every Boolean function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; can be computed in time &amp;lt;math&amp;gt;T(n)&amp;lt;/math&amp;gt; using a two-dimensional  TM then &amp;lt;math&amp;gt;f\in DTIME(T(n)^2)&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot; &gt;แถว 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 18:&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;(b) Show that &amp;lt;math&amp;gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&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;(b) Show that &amp;lt;math&amp;gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&amp;lt;/math&amp;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;&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;: Links: [[Computational complexity/hw2|การบ้าน 2]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59035&amp;oldid=prev</id>
		<title>Jittat เมื่อ 16:17, 17 มีนาคม 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59035&amp;oldid=prev"/>
		<updated>2021-03-17T16:17:08Z</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;รุ่นแก้ไขเมื่อ 16:17, 17 มีนาคม 2564&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-l9&quot; &gt;แถว 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 9:&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&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;4. (AB-6.8) A language &amp;lt;math&amp;gt;L\subseteq\{0,1\}^*&amp;lt;/math&amp;gt; is sparse if there is a polynomial &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;|L\&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cup&lt;/del&gt;\{0,1\}^n|\leq p(n)&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;n\in{\mathbb N}&amp;lt;/math&amp;gt;.  Show that every sparse language is in &amp;lt;math&amp;gt;\mathbf{P}_\mathrm{/poly}&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;4. (AB-6.8) A language &amp;lt;math&amp;gt;L\subseteq\{0,1\}^*&amp;lt;/math&amp;gt; is sparse if there is a polynomial &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;|L\&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;cap&lt;/ins&gt;\{0,1\}^n|\leq p(n)&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;n\in{\mathbb N}&amp;lt;/math&amp;gt;.  Show that every sparse language is in &amp;lt;math&amp;gt;\mathbf{P}_\mathrm{/poly}&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;5. (AB-7.5) Recall that, in lecture, we briefly state that one can simulate a coin with head probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, if the real number &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is efficiently computable.  Let us study to what extent this claim truly needs the assumption that &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is efficiently computable.   Describe a real number &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that given a random coin that comes up &amp;quot;Heads&amp;quot; with probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, a Turing machine can decide an undecidable language in polynomial time.&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;5. (AB-7.5) Recall that, in lecture, we briefly state that one can simulate a coin with head probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, if the real number &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is efficiently computable.  Let us study to what extent this claim truly needs the assumption that &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is efficiently computable.   Describe a real number &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that given a random coin that comes up &amp;quot;Heads&amp;quot; with probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, a Turing machine can decide an undecidable language in polynomial time.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59024&amp;oldid=prev</id>
		<title>Jittat เมื่อ 15:50, 17 มีนาคม 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59024&amp;oldid=prev"/>
		<updated>2021-03-17T15:50:25Z</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;รุ่นแก้ไขเมื่อ 15:50, 17 มีนาคม 2564&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-l11&quot; &gt;แถว 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 11:&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;4. (AB-6.8) A language &amp;lt;math&amp;gt;L\subseteq\{0,1\}^*&amp;lt;/math&amp;gt; is sparse if there is a polynomial &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;|L\cup\{0,1\}^n|\leq p(n)&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;n\in{\mathbb N}&amp;lt;/math&amp;gt;.  Show that every sparse language is in &amp;lt;math&amp;gt;\mathbf{P}_\mathrm{/poly}&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;4. (AB-6.8) A language &amp;lt;math&amp;gt;L\subseteq\{0,1\}^*&amp;lt;/math&amp;gt; is sparse if there is a polynomial &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;|L\cup\{0,1\}^n|\leq p(n)&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;n\in{\mathbb N}&amp;lt;/math&amp;gt;.  Show that every sparse language is in &amp;lt;math&amp;gt;\mathbf{P}_\mathrm{/poly}&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;5. (AB-7.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;6&lt;/del&gt;) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(a) Prove &lt;/del&gt;that a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;language &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;L&lt;/del&gt;&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is in &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\mathbf{ZPP}&lt;/del&gt;&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;iff there exists a polynomial-time PTM &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;M&lt;/del&gt;&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;with output in &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\{0,1,?\}&lt;/del&gt;&amp;lt;/math&amp;gt; such that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;for every &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;x\in\{0,1\}^*&lt;/del&gt;&amp;lt;/math&amp;gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;with probability 1, &amp;lt;math&amp;gt;M(x)\&lt;/del&gt;in&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\{L(x),?\}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{Pr}[M(x)=?]\leq 1/2&amp;lt;/math&amp;gt;&lt;/del&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;5. (AB-7.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;5&lt;/ins&gt;) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Recall that, in lecture, we briefly state &lt;/ins&gt;that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;one can simulate &lt;/ins&gt;a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;coin with head probability &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/ins&gt;&amp;lt;/math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, if the real number &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/ins&gt;&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is efficiently computable.  Let us study to what extent this claim truly needs the assumption that &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/ins&gt;&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is efficiently computable.   Describe a real number &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/ins&gt;&amp;lt;/math&amp;gt; such that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;given a random coin that comes up &amp;quot;Heads&amp;quot; with probability &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/ins&gt;&amp;lt;/math&amp;gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;a Turing machine can decide an undecidable language &lt;/ins&gt;in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;polynomial time&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;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;(b) Show that &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&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;: &amp;#039;&amp;#039;Hint:&amp;#039;&amp;#039; Think of the real number &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/ins&gt;&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;as an advice string.  How can its bits be recovered?&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;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;6. (AB-7.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;5&lt;/del&gt;) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Recall &lt;/del&gt;that&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, in lecture, we briefly state that one can simulate &lt;/del&gt;a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;coin with head probability &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/del&gt;&amp;lt;/math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, if the real number &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/del&gt;&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is efficiently computable.  Let us study to what extent this claim truly needs the assumption that &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/del&gt;&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;is efficiently computable.   Describe a real number &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/del&gt;&amp;lt;/math&amp;gt; such that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;given a random coin that comes up &amp;quot;Heads&amp;quot; &lt;/del&gt;with probability &amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/del&gt;&amp;lt;/math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, a Turing machine can decide an undecidable language in polynomial time&lt;/del&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;6. (AB-7.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;6&lt;/ins&gt;) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(a) Prove &lt;/ins&gt;that a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;language &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;L&lt;/ins&gt;&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is in &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\mathbf{ZPP}&lt;/ins&gt;&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;iff there exists a polynomial-time PTM &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;M&lt;/ins&gt;&amp;lt;/math&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;with output in &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\{0,1,?\}&lt;/ins&gt;&amp;lt;/math&amp;gt; such that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;for every &amp;lt;math&amp;gt;x\in\{0,1\}^*&amp;lt;/math&amp;gt;, &lt;/ins&gt;with probability &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1, &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;M(x)\in\{L(x),?\}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{Pr}[M(x)=?]\leq 1/2&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;del class=&quot;diffchange diffchange-inline&quot;&gt;: &amp;#039;&amp;#039;Hint:&amp;#039;&amp;#039; Think of the real number &lt;/del&gt;&amp;lt;math&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;p&lt;/del&gt;&amp;lt;/math&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;as an advice string.  How can its bits be recovered?&lt;/del&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;(b) Show that &lt;/ins&gt;&amp;lt;math&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&lt;/ins&gt;&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59023&amp;oldid=prev</id>
		<title>Jittat เมื่อ 15:49, 17 มีนาคม 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59023&amp;oldid=prev"/>
		<updated>2021-03-17T15:49:07Z</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;รุ่นแก้ไขเมื่อ 15:49, 17 มีนาคม 2564&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;div&gt;2. (AB-2.17, 1st half) In the &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; problem, we are given a 3CNF formula &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; and need to decide if there exists a satisfying assignment &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; such that every clause of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; has exactly one True literal.  Prove that &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;NP&amp;#039;&amp;#039;&amp;#039;-complete.   &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. (AB-2.17, 1st half) In the &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; problem, we are given a 3CNF formula &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; and need to decide if there exists a satisfying assignment &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; such that every clause of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; has exactly one True literal.  Prove that &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;NP&amp;#039;&amp;#039;&amp;#039;-complete.   &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;: &amp;#039;&amp;#039;Hint:&amp;#039;&amp;#039; Replace each occurrence of a literal &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; in a clause &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; by a new variable &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; with auxiliary variables ensuring that if &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is TRUE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; can be either TRUE or FALSE, but if &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is FALSE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; must be FALSE.&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;#039;&amp;#039;Hint:&amp;#039;&amp;#039; Replace each occurrence of a literal &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; in a clause &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; by a new variable &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; with &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;additional clauses and &lt;/ins&gt;auxiliary variables ensuring that if &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is TRUE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; can be either TRUE or FALSE, but if &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is FALSE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; must be FALSE.&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59022&amp;oldid=prev</id>
		<title>Jittat เมื่อ 15:48, 17 มีนาคม 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59022&amp;oldid=prev"/>
		<updated>2021-03-17T15:48:21Z</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;รุ่นแก้ไขเมื่อ 15:48, 17 มีนาคม 2564&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;div&gt;2. (AB-2.17, 1st half) In the &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; problem, we are given a 3CNF formula &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; and need to decide if there exists a satisfying assignment &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; such that every clause of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; has exactly one True literal.  Prove that &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;NP&amp;#039;&amp;#039;&amp;#039;-complete.   &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. (AB-2.17, 1st half) In the &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; problem, we are given a 3CNF formula &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; and need to decide if there exists a satisfying assignment &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; such that every clause of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; has exactly one True literal.  Prove that &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;NP&amp;#039;&amp;#039;&amp;#039;-complete.   &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;: &amp;#039;&amp;#039;Hint:&amp;#039;&amp;#039; Replace each occurrence of a literal &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; in a clause &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; by a new variable &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; with auxiliary variables ensuring &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;of &lt;/del&gt;&amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is TRUE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; can be either TRUE or FALSE, but if &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is FALSE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; must be FALSE.&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;#039;&amp;#039;Hint:&amp;#039;&amp;#039; Replace each occurrence of a literal &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; in a clause &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; by a new variable &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; with auxiliary variables ensuring &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;that if &lt;/ins&gt;&amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is TRUE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; can be either TRUE or FALSE, but if &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is FALSE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; must be FALSE.&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59021&amp;oldid=prev</id>
		<title>Jittat เมื่อ 15:47, 17 มีนาคม 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59021&amp;oldid=prev"/>
		<updated>2021-03-17T15:47:24Z</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;รุ่นแก้ไขเมื่อ 15:47, 17 มีนาคม 2564&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-l10&quot; &gt;แถว 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 10:&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;4. (AB-6.8) A language &amp;lt;math&amp;gt;L\subseteq\{0,1\}^*&amp;lt;/math&amp;gt; is sparse if there is a polynomial &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;|L\cup\{0,1\}^n|\leq p(n)&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;n\in{\mathbb N}&amp;lt;/math&amp;gt;.  Show that every sparse language is in &amp;lt;math&amp;gt;\mathbf{P}_\mathrm{/poly}&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;4. (AB-6.8) A language &amp;lt;math&amp;gt;L\subseteq\{0,1\}^*&amp;lt;/math&amp;gt; is sparse if there is a polynomial &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;|L\cup\{0,1\}^n|\leq p(n)&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;n\in{\mathbb N}&amp;lt;/math&amp;gt;.  Show that every sparse language is in &amp;lt;math&amp;gt;\mathbf{P}_\mathrm{/poly}&amp;lt;/math&amp;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;&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;5. (AB-7.6) (a) Prove that a language &amp;lt;math&amp;gt;L&amp;lt;/math&amp;gt; is in &amp;lt;math&amp;gt;\mathbf{ZPP}&amp;lt;/math&amp;gt; iff there exists a polynomial-time PTM &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; with output in &amp;lt;math&amp;gt;\{0,1,?\}&amp;lt;/math&amp;gt; such that for every &amp;lt;math&amp;gt;x\in\{0,1\}^*&amp;lt;/math&amp;gt;, with probability 1, &amp;lt;math&amp;gt;M(x)\in\{L(x),?\}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{Pr}[M(x)=?]\leq 1/2&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;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &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;(b) Show that &amp;lt;math&amp;gt;\mathbf{ZPP}=\mathbf{RP}\cap\mathbf{coRP}&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;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &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;6. (AB-7.5) Recall that, in lecture, we briefly state that one can simulate a coin with head probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, if the real number &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is efficiently computable.  Let us study to what extent this claim truly needs the assumption that &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is efficiently computable.   Describe a real number &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that given a random coin that comes up &amp;quot;Heads&amp;quot; with probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;, a Turing machine can decide an undecidable language in polynomial time.&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;&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;#039;&amp;#039;Hint:&amp;#039;&amp;#039; Think of the real number &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; as an advice string.  How can its bits be recovered?&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59020&amp;oldid=prev</id>
		<title>Jittat เมื่อ 15:25, 17 มีนาคม 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59020&amp;oldid=prev"/>
		<updated>2021-03-17T15:25:32Z</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;รุ่นแก้ไขเมื่อ 15:25, 17 มีนาคม 2564&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 มี xx ข้อ&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 มี xx ข้อ&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;1. (AB-1.7) Define a &amp;#039;&amp;#039;two-dimensional&amp;#039;&amp;#039; Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only &amp;lt;tt&amp;gt;L&amp;lt;/tt&amp;gt;eft and &amp;lt;tt&amp;gt;R&amp;lt;/tt&amp;gt;ight, but also &amp;lt;tt&amp;gt;U&amp;lt;/tt&amp;gt;p and &amp;lt;tt&amp;gt;D&amp;lt;/tt&amp;gt;own).  Show that for every (time-constructible) &amp;lt;math&amp;gt;T:N\rightarrow N&amp;lt;/math&amp;gt; and every Boolean function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; can be computed in time &amp;lt;math&amp;gt;T(n)&amp;lt;/math&amp;gt; using a two-dimensional  TM then &amp;lt;math&amp;gt;f\in DTIME(T(n)^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;1. (AB-1.7) Define a &amp;#039;&amp;#039;two-dimensional&amp;#039;&amp;#039; Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only &amp;lt;tt&amp;gt;L&amp;lt;/tt&amp;gt;eft and &amp;lt;tt&amp;gt;R&amp;lt;/tt&amp;gt;ight, but also &amp;lt;tt&amp;gt;U&amp;lt;/tt&amp;gt;p and &amp;lt;tt&amp;gt;D&amp;lt;/tt&amp;gt;own).  Show that for every (time-constructible) &amp;lt;math&amp;gt;T:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{\mathbb &lt;/ins&gt;N&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}&lt;/ins&gt;\rightarrow &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{\mathbb &lt;/ins&gt;N&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}&lt;/ins&gt;&amp;lt;/math&amp;gt; and every Boolean function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; can be computed in time &amp;lt;math&amp;gt;T(n)&amp;lt;/math&amp;gt; using a two-dimensional  TM then &amp;lt;math&amp;gt;f\in DTIME(T(n)^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;2. (AB-2.17, 1st half) In the &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; problem, we are given a 3CNF formula &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; and need to decide if there exists a satisfying assignment &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; such that every clause of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; has exactly one True literal.  Prove that &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;NP&amp;#039;&amp;#039;&amp;#039;-complete.   &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. (AB-2.17, 1st half) In the &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; problem, we are given a 3CNF formula &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; and need to decide if there exists a satisfying assignment &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; such that every clause of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; has exactly one True literal.  Prove that &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;NP&amp;#039;&amp;#039;&amp;#039;-complete.   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;แถว 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;แถว 8:&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&amp;lt;/math&amp;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;&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;4. (AB-6.8) A language &amp;lt;math&amp;gt;L\subseteq\{0,1\}^*&amp;lt;/math&amp;gt; is sparse if there is a polynomial &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;|L\cup\{0,1\}^n|\leq p(n)&amp;lt;/math&amp;gt; for every &amp;lt;math&amp;gt;n\in{\mathbb N}&amp;lt;/math&amp;gt;.  Show that every sparse language is in &amp;lt;math&amp;gt;\mathbf{P}_\mathrm{/poly}&amp;lt;/math&amp;gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
	<entry>
		<id>http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59019&amp;oldid=prev</id>
		<title>Jittat เมื่อ 15:05, 17 มีนาคม 2564</title>
		<link rel="alternate" type="text/html" href="http://158.108.32.49/wiki/index.php?title=Computational_complexity/hw1&amp;diff=59019&amp;oldid=prev"/>
		<updated>2021-03-17T15:05:49Z</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;รุ่นแก้ไขเมื่อ 15:05, 17 มีนาคม 2564&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 มี xx ข้อ&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 มี xx ข้อ&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;1 (1.7) Define a &amp;#039;&amp;#039;two-dimensional&amp;#039;&amp;#039; Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only &amp;lt;tt&amp;gt;L&amp;lt;/tt&amp;gt;eft and &amp;lt;tt&amp;gt;R&amp;lt;/tt&amp;gt;ight, but also &amp;lt;tt&amp;gt;U&amp;lt;/tt&amp;gt;p and &amp;lt;tt&amp;gt;D&amp;lt;/tt&amp;gt;own).  Show that for every (time-constructible) &amp;lt;math&amp;gt;T:N\rightarrow N&amp;lt;/math&amp;gt; and every Boolean function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; can be computed in time &amp;lt;math&amp;gt;T(n)&amp;lt;/math&amp;gt; using a two-dimensional  TM then &amp;lt;math&amp;gt;f\in DTIME(T(n)^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;1&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;AB-&lt;/ins&gt;1.7) Define a &amp;#039;&amp;#039;two-dimensional&amp;#039;&amp;#039; Turing machine to be a TM where each of its tapes is an infinite grid (and the machine can move not only &amp;lt;tt&amp;gt;L&amp;lt;/tt&amp;gt;eft and &amp;lt;tt&amp;gt;R&amp;lt;/tt&amp;gt;ight, but also &amp;lt;tt&amp;gt;U&amp;lt;/tt&amp;gt;p and &amp;lt;tt&amp;gt;D&amp;lt;/tt&amp;gt;own).  Show that for every (time-constructible) &amp;lt;math&amp;gt;T:N\rightarrow N&amp;lt;/math&amp;gt; and every Boolean function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; can be computed in time &amp;lt;math&amp;gt;T(n)&amp;lt;/math&amp;gt; using a two-dimensional  TM then &amp;lt;math&amp;gt;f\in DTIME(T(n)^2)&amp;lt;/math&amp;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;2. (AB-2.17, 1st half) In the &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; problem, we are given a 3CNF formula &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; and need to decide if there exists a satisfying assignment &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; such that every clause of &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; has exactly one True literal.  Prove that &amp;#039;&amp;#039;&amp;#039;Exactly One 3SAT&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;NP&amp;#039;&amp;#039;&amp;#039;-complete.  &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;#039;&amp;#039;Hint:&amp;#039;&amp;#039; Replace each occurrence of a literal &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; in a clause &amp;lt;math&amp;gt;C&amp;lt;/math&amp;gt; by a new variable &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; with auxiliary variables ensuring of &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is TRUE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; can be either TRUE or FALSE, but if &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; is FALSE, then &amp;lt;math&amp;gt;z_{i,C}&amp;lt;/math&amp;gt; must be FALSE.&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;3. (AB-2.23) Prove that &amp;lt;math&amp;gt;\mathbf{P}\subseteq \mathbf{NP}\cap\mathbf{coNP}&amp;lt;/math&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jittat</name></author>
		
	</entry>
</feed>