Recent questions tagged proof

0 0 votes
1 1 answer
276
276 views
Let $b_{n} b_{n-1} \cdots b_{1}$ be the decimal representation of an $n$ digit number $m$. Let $b_{n} b_{n-1} \ldots b_{2}$ be the integer $a$ obtained from $m$ by stripp...
1 1 vote
3 answers 3 answers
564
564 views
State Proof of Correctness for Different Popular Sorting AlgorithmSorting AlgoBest Case TCAVg Case TCWorst Case TCStable Sorting?Inplace Sorting?1. Bubble Sort \[O(n) \]\...
0 0 votes
0 0 answers
277
277 views
For any undirected connected graph $G$, let $\chi(G)$ be the minimum number of colours needed to colour all the vertices of $G$ in such a way that no two adjacent vertice...
0 0 votes
0 0 answers
385
385 views
Prove Theorem $2:$ Let $c_{1}$ and $c_{2}$ be real numbers with $c_{2}\neq 0.$ Suppose that $r^{2}-c_{1}r-c_{2} = 0$ has only one root $r_{0}.$ A sequence $\{a_{n}\}$ is ...
0 0 votes
0 0 answers
659
659 views
Prove the Multinomial Theorem: If $n$ is a positive integer, then $\displaystyle{}(x_{1} + x_{2} + \dots + x_{m})^{n} = \sum_{n_{1} + n_{2} + \dots + n_{m} = n}\:\: C(n:n...
0 0 votes
0 0 answers
312
312 views
Prove the binomial theorem using mathematical induction.
3 3 votes
0 0 answers
869
869 views
Say that a $CFG$ is minimal if none of its rules can be removed without changing the language generated. Let $MIN_{CFG} = \{\langle G \rangle \mid \text{G is a minimal CF...
1 1 vote
0 0 answers
521
521 views
Say that a variable $A$ in $CFG \:G$ is necessary if it appears in every derivation of some string $w \in G$. Let $NECESSARY_{CFG} = \{\langle G, A\rangle \mid \text{A is...
0 0 votes
1 1 answer
1.2k
1.2k views
Let $X = \{\langle M, w \rangle \mid \text{M is a single-tape TM that never modifies the portion of the tape that contains the input $w$ } \}$Is $X$ decidable? Prove you...
1 1 vote
2 2 answers
1.1k
1.1k views
Consider the problem of determining whether a $PDA$ accepts some string of the form $\{ww \mid w \in \{0,1\}^{\ast} \}$ . Use the computation history method to show that ...
0 0 votes
0 0 answers
638
638 views
Prove that the following two languages are undecidable.$OVERLAP_{CFG} = \{\langle G, H\rangle \mid \text{G and H are CFGs where}\: L(G) \cap L(H) \neq \emptyset\}$.$PREF...
0 0 votes
0 0 answers
569
569 views
Let$f(x)=\left\{\begin{matrix}3x+1 & \text{for odd}\: x& \\ \dfrac{x}{2} & \text{for even}\: x & \end{matrix}\right.$for any natural number $x$. If you start with an inte...
1 1 vote
0 0 answers
563
563 views
Use Rice’s theorem, to prove the undecidability of each of the following languages.$INFINITE_{TM} = \{\langle M \rangle \mid \text{M is a TM and L(M) is an infinite langu...
0 0 votes
0 0 answers
730
730 views
Rice’s theorem. Let $P$ be any nontrivial property of the language of a Turing machine. Prove that the problem of determining whether a given Turing machine’s language ha...
0 0 votes
0 0 answers
576
576 views
Rice’s theorem. Let $P$ be any nontrivial property of the language of a Turing machine. Prove that the problem of determining whether a given Turing machine’s language ha...
1 1 vote
0 0 answers
682
682 views
A two-dimensional finite automaton $(2DIM-DFA)$ is defined as follows. The input is an $m \times n$ rectangle, for any $m, n \geq 2$. The squares along the boundary of th...
0 0 votes
0 0 answers
576
576 views
Define a two-headed finite automaton $(2DFA)$ to be a deterministic finite automaton that has two read-only, bidirectional heads that start at the left-hand end of the in...
0 0 votes
0 0 answers
518
518 views
Give an example of an undecidable language $B$, where $B \leq_{m} \overline{B}$.
0 0 votes
0 0 answers
375
375 views
Let $J = \{w \mid \text{either $w = 0x$ for some $x \in A_{TM},$ or $w = 1y\:$ for some $y \in \overline{A_{TM}}\:\:$}\}$. Show that neither $J$ nor $\overline{J}$ is Tur...
0 0 votes
1 1 answer
440
440 views
Show that $A$ is decidable iff $A \leq_{m} 0 ^{\ast} 1^{\ast}$ .
0 0 votes
0 0 answers
372
372 views
0 0 votes
0 0 answers
560
560 views
Let $AMBIG_{CFG} = \{\langle G \rangle \mid \text{G is an ambiguous CFG}\}$. Show that $AMBIG_{CFG}$ is undecidable. (Hint: Use a reduction from $PCP$. Given an instance...
0 0 votes
0 0 answers
469
469 views
Prove that there exists an undecidable subset of $\{1\}^{\ast}$ .
0 0 votes
0 0 answers
526
526 views
In the silly Post Correspondence Problem, $SPCP$, the top string in each pair has the same length as the bottom string. Show that the $SPCP$ is decidable.
0 0 votes
0 0 answers
648
648 views
Show that the Post Correspondence Problem is undecidable over the binary alphabet $\Sigma = \{0,1\}$.
0 0 votes
0 0 answers
432
432 views
Show that the Post Correspondence Problem is decidable over the unary alphabet $\Sigma = \{1\}$.
0 0 votes
0 0 answers
615
615 views
Let $\Gamma = \{0, 1, \sqcup\}$ be the tape alphabet for all TMs in this problem. Define the busy beaver function $BB: N \rightarrow N$ as follows. For each value of $k$,...
1 1 vote
0 0 answers
2.8k
2.8k views
Consider the problem of determining whether a Turing machine $M$ on an input w ever attempts to move its head left at any point during its computation on $w$. Formulate t...
0 0 votes
0 0 answers
473
473 views
Consider the problem of determining whether a Turing machine $M$ on an input $w$ ever attempts to move its head left when its head is on the left-most tape cell. Formulat...
0 0 votes
0 0 answers
534
534 views
A useless state in a Turing machine is one that is never entered on any input string. Consider the problem of determining whether a Turing machine has any useless states....