Problem Detail: Is there an efficient algorithm which gives the minimum cost closed walk in an undirected graph, which visits all vertices? Does this problem have a name? I tried to reduce this to similar problems (in particular the traveling salesman Read More …
Author: ignougroup
If $L$ is a subset of ${0}^*$, then how can we show that $L^*$ is regular?
Problem Detail: Say, $L subseteq {0}^*$. Then how can we prove that $L^*$ is regular? If $L$ is regular, then of course $L^*$ is also regular. If $L$ is finite, then it is regular and again $L^*$ is regular. Also I Read More …
Why is the class NP-Complete important compared to NP-hard?
Problem Detail: I’m studying computational complexity and I was wondering why the NP-Complete (NPC) problems is an important class at all. I find it obvious why we’re interested in showing a given NP problem is NP-hard. I also understand the definition Read More …
Selection in expected linear time: Why am I getting $O(n)$ bound instead of $Omega(n lg n)$?
Problem Detail: The problem is from CLRS 9.3-1: In the algorithm SELECT, the input elements are divided into groups of $5$. Argue that SELECT does not run in linear time if groups of $3$ are used. If we do the “divide Read More …
Finding nested intervals efficiently
Problem Detail: The intervals are represented as two numbers, e.g. $(4.3, 5.6)$. The intervals are unique. If for $(x,y)$ and $(u,v)$, $x≤u$ and $v≤y$, $(u,v)$ is nested in $(x,y)$ How do I find out which intervals are nested in others efficiently? Read More …
Decidability of prefix language
Problem Detail: At the midterm there was a variant of the following question: For a decidable $L$ define $$text{Pref}(L) = { x mid exists y text{ s.t. } xy in L}$$ Show that $text{Pref}(L)$ is not necessarily decidable. But if I Read More …
A sufficient and necessary condition about regularity of a language
Problem Detail: Which of the following statements is correct? sufficient and necessary conditions about regularity of a language exist but not discovered yet. There’s no sufficient and necessary condition about regularity of a language. Pumping lemma is a necessary condition Read More …
Calculating traversal position of a node in a full binary tree, given its path
Problem Detail: Given a path down a full binary tree to a node (for example, a sequence of $1$s and $0$s, $0$ representing “go left” and $1$ representing “go right”), how would one find the position of the node in the Read More …
Calculating the Transfer Time for a Hard Disk
Problem Detail: I know that transfer rate is data size over transfer speed – but according to the information given, I don’t know what the data size is to calculate the transfer rate. Am I missing something or was I really Read More …
Proofs using the regular pumping lemma
Problem Detail: I have two questions: I consider the following language $$L_1= { win {0,1}^* mid not exists uin {0,1}^* colon w= uu^R}.$$ In other words $w$ is not palindrome with even length. I proved that this language is NOT regular Read More …