Problem Detail: Does anybody know a good definition of 2 decision / optimization problems being equivalent? I am asking since for example allowing polynomial time computations any 2 problems in NP could be considered equivalent. Asked By : Reb Answered By : Yuval Read More …
Category: Uncategorized
[Solved]: Does this DFA have a solution?
Problem Detail: I am trying to create a DFA that can recognize strings with alphabet ${a,b,c}$ where $a$ and $c$ appear even number of times and where $b$ appears odd number of times. I am wondering that this may only be Read More …
[Solved]: Adding a node between two others, minimizing its maximum distance to any other node
Problem Detail: We are given an undirected graph weighted with positive arc lengths and a distinguished edge $(a,b)$ in the graph. The problem is to replace this edge by two edges $(a,c)$ and $(c,b)$ where $c$ is a new node, such Read More …
[Solved]: If A is poly-time reducible to B, is B poly-time reducible to A?
Problem Detail: Basically, is the following statement true? $A leq_p B$ $rightarrow$ $B leq_p A$ Asked By : robowolverine Answered By : Sasho Nikolov Short answer: No. For one example, take $A$ to be the language $A = {0, 1}^*$, i.e. the language Read More …
[Solved]: Is the relation between the input and output of an arbitrary algorithm describable by a mathematical function?
Problem Detail: I hope that this question is clear, and not off-topic: I have been reading about neural networks (in the AI sense), and the textbook said that an artificial neural network can always be described by a single mathematical function Read More …
[Solved]: How to show that the complement of a language in $mathsf P$ is also in $mathsf P$?
Problem Detail: If $L$ is a binary language (that is, $L subseteq Sigma = {0,1}^∗$) and $overline{L}$ is the complement of $L$: How can I show that if $L in mathsf P$, then $overline{L} in mathsf P$ as well? Asked By Read More …
[Solved]: Nth number in a infinite sequence of numbers
Problem Detail: This was interview question. When the input is a infinite sequence of numbers starting from 1, what is the nth digit? e.g.) 123456789101112131415161718192021….. here 28th digit is 1. Asked By : Sungguk Lim Answered By : wvxvw Just to add a Read More …
[Solved]: How to find the element of the Digit Sum sequence efficiently?
Problem Detail: Just out of interest I tried to solve a problem from “Recent” category of Project Euler ( Digit Sum sequence ). But I am unable to think of a way to solve the problem efficiently. The problem is as Read More …
[Solved]: How to prove P$neq$NP?
Problem Detail: I am aware that this seems a very stupid (or too obvious to state) question. However, I am confused at some point. We can show that P $=$ NP if and only if we can design an algorithm that Read More …
[Solved]: Getting minimum DFA for regular expression (11)*+(111)*
Problem Detail: (sorry beforehand I know putting scanned diagrams may seem not-so-professional but this problem is sticking for long and its interesting too) The language corresponding to given regex seems to accepts all strings of 1’s with length in multiple of Read More …