Problem Detail: I see structural induction the usual way for proving an algorithm’s termination property, but it’s not that easy to prove by means of induction on a tree algorithm. Now I am struggling on proving that the pre-order tree traversal Read More …
Category: Uncategorized
[Solved]: Traveling Salesman’s Tour Approx Algorithm: is this really a Hamiltonian Path?
Problem Detail: I’m given this problem: Consider the following closest-point heuristic for building an approximate traveling-salesman tour. Begin with a trivial cycle consisting of a single arbitrarily chosen vertex. At each step, identify the vertex u that is not on the Read More …
[Solved]: Kolmogorov Complexity: Why would you need more bytes than the string itself?
Problem Detail: I was reading Wikipedia’s entry on Kolmogorov Complexity (thanks to this question), which states: It can be shown that the Kolmogorov complexity of any string cannot be more than a few bytes larger than the length of the string Read More …
[Solved]: Is regularity of the language accepted by a given Turing machine a semi-decidable property?
Problem Detail: Given is the definition of a general problem: ${ langle M, Srangle mid M text{ is a } TM, L_M in S}$. In words: Given a TM M, does M decide a language that is an element of the Read More …
[Solved]: Kleene star operation on the empty language
Problem Detail: In my text book it is mentioned that: $emptyset^*={epsilon}$ where $emptyset$ is an empty language. However, we know that $L cdot emptyset = emptyset$, where $L$ is any Language. I am not able to intuitively grasp this concept because Read More …
[Solved]: Can every state in a DFA be an accepting state?
Problem Detail: I know that we can have 0 accepting states in a DFA, it would just recognize the empty language. What about the case of all states being accepting? Would that mean it would recognize all of the strings in Read More …
[Solved]: pda: transformation between acceptance by empty stack and final states
Problem Detail: I am stuck with understanding the transformation of final-state acceptance automaton into empty-stack acceptance automaton. From everywhere that I’ve read, it always says introduce a new start state with a new start stack symbol, and another state after the Read More …
[Solved]: Proving Linear Time Temporal Logic formula □ ◊ f ⇔ ◊ □ f
Problem Detail: I am new to this topic, Linear Time Temporal Logic and I am trying to prove this equivalence — $BoxDiamond f Leftrightarrow DiamondBox f$ This is my take — Basic definitions: $(sigma, j) models Box f: forall k , Read More …
[Solved]: Difference between “data dependence graph”, “data dependency graph”, and “data flow graph”
Problem Detail: Is there a difference between a “data dependence graph” and a “data dependency graph”? I have seen both terms – sometimes used interchangeably sometimes not. To make things even more complicated, a “data dependency graph” is sometimes also called Read More …
[Solved]: How can I show that the Cook-Levin theorem does not relativize?
Problem Detail: The following is an exercise which I am stuck at ( source: Sanjeev Arora and Boaz Barak; its not homework ) : Show that there is an oracle $A$ and a language $L in NP^A$ such that $L$ is Read More …