Difference between P and NP
AnswerP consists of decision problems solvable by a deterministic TM in polynomial time. NP consists of decision problems with polynomial-length certificates verifiable…
Read more →AnswerP consists of decision problems solvable by a deterministic TM in polynomial time. NP consists of decision problems with polynomial-length certificates verifiable…
Read more →AnswerA Hamiltonian path visits every vertex of a graph exactly once. The decision problem asks whether a given graph contains such a…
Read more →AnswerAn instantaneous description (ID) represents a complete configuration: tape contents, current state and head position. Write αqβ, where the head scans the…
Read more →AnswerA partial function f: ℕᵏ ⇀ ℕ is Turing computable if a Turing machine halts with output f(x) whenever f(x) is defined…
Read more →AnswerA k-tape TM has k tapes and independent heads. Its transition reads k symbols, writes k symbols and moves each head independently.…
Read more →AnswerAssume alphabet {a,b}. Let qᵢ count a symbols for i=0,1,2,3 and q₄ represent four or more. Start q₀; F={q₀,q₁,q₂,q₃}. On a, δ(qᵢ,a)=qmin(i+1,4);…
Read more →AnswerFor a left-linear rule X→Yw, add a path from Y to X labelled w. For X→w, add a path from a fresh…
Read more →AnswerA decision problem H is NP-hard under polynomial-time many-one reductions if every problem L in NP satisfies L≤p H. This means a…
Read more →AnswerA finite automaton stores information only in its current state, whereas a pushdown automaton also has an unbounded LIFO stack. A DFA…
Read more →AnswerThe incoming outputs are 0 for q0, 1 for q1 and 2 for q2, so no state splitting is needed. Define Moore…
Read more →Ask a study question in English or Hindi. I will find relevant passages from our notes.