MathDB

STEMS 2021 CS Cat B

Part of 2021 India STEMS

Subcontests

(5)

Complexity Problem

Let's say a language L{0,1}L \subseteq \{0,1\}^* is in <spanclass=latexbold>P</span>angel<span class='latex-bold'>P</span>_{angel} if there exists a polynomial p:NNp : \mathbb{N} \mapsto \mathbb{N}, a sequence of strings {αn}nN\{\alpha_n\}_{n \in \mathbb{N}} with αn{0,1}p(n)\alpha_n \in \{0,1\}^{p(n)}, and a deterministic polynomial time Turing Machine MM such that for every x{0,1}nx \in \{0,1\}^n xLM(x,αn)=1x \in L \Leftrightarrow M(x, \alpha_n) = 1 Let us call αn\alpha_n to be the angel string for all xx of the length nn. Note that the angel string is <spanclass=latexbold>not</span><span class='latex-bold'>not</span> similar to a witness or certificate as used in the definition of <spanclass=latexbold>NP</span><span class='latex-bold'>NP</span> For example, all unary languages, even UHALTUHALT which is undecidable, are in <spanclass=latexbold>P</span>angel<span class='latex-bold'>P</span>_{angel} because the angel string can simply be a single bit that tells us if the given unary string is in UHALTUHALT or not. \\\\
A set SΣS \subseteq \Sigma^* is said to be sparse if there exists a polynomial p:NNp : \mathbb{N} \mapsto \mathbb{N} such that for each nNn \in \mathbb{N}, the number of strings of length nn in SS is bounded by p(n)p(n). In other words, S=np(n)|S^{=n}| \leq p(n), where S=nSS^{=n} \subseteq S contains all the strings in SS that are of length nn.
[*] Given kNk \in \mathbb{N} sparse sets S1,S2SkS_1, S_2 \ldots S_k, show that there exists a sparse set SS and a deterministic polynomial time TM MM with oracle access to SS such that given an input x,i\langle x,i \rangle the TM MM will accept it if and only if xSix \in S_i. \\Define the set SS (note that it need not be computable), and give the description of MM with oracle SS. \\Note that a TM MM with oracle access to SS can query whether sSs \in S and get the correct answer in return in constant time. [/*] [*] Let us define a variant of <spanclass=latexbold>P</span>angel<span class='latex-bold'>P</span>_{angel} called <spanclass=latexbold>P</span>badangel<span class='latex-bold'>P</span>_{bad-angel} with a constraint that there should exists a polynomial time algorithm that can compute the angel string for any length nNn \in \mathbb{N}. In other words, there is a poly-time algorithm AA such that αn=A(n)\alpha_n = A(n). \\Is <spanclass=latexbold>P</span>=<spanclass=latexbold>P</span>badangel<span class='latex-bold'>P</span> =<span class='latex-bold'>P</span>_{bad-angel}? Is <spanclass=latexbold>NP</span>=<spanclass=latexbold>P</span>badangel<span class='latex-bold'>NP</span>=<span class='latex-bold'>P</span>_{bad-angel}? Justify. [/*] [*] Let the language LL \in <spanclass=latexbold>P</span>angel<span class='latex-bold'>P</span>_{angel}. Show that there exists a sparse set SLS_L and a deterministic polynomial time TM MM with oracle access to SLS_L that can decide the language LL. [/*]