Problem Detail: I’m asked to prove that, if P=NP, that 0*1* is NP-complete, but I’m having trouble going about doing it. I know it’s fairly easy to prove it’s NP by creating a TM to verify an input (which can be Read More …
Category: Uncategorized
[Solved]: What’s the vertex cover of the null graph?
Problem Detail: Let $N(G)$ be the null graph. What’s the number of vertex cover for this graph? I wanted to modify the reduction from SAT to vertex cover by adding vertices that are not connect to any vertices. Asked By : Fayez Read More …
[Solved]: A continuous optimization problem that reduces to TSP
Problem Detail: Suppose I am given a finite set of points $p_1,p_2,..p_n$ in the plane, and asked to draw a twice-differentiable curve $C(P)$ through the $p_i$’s, such that its perimeter is as small as possible. Assuming $p_i=(x_i,y_i)$ and $x_i<x_{i+1}$, I can Read More …
[Solved]: EM algorithm for two Gaussian models
Problem Detail: This is about basic machine learning which I do not understand clearly. I have 2 Gaussian models $G_1$ and $G_2$ and given a list of data as below. (1, 3, 4, 5, 7, 8, 9, 13, 14, 15, 16, Read More …
[Solved]: What is the complexity of these tree-based algorithms?
Problem Detail: Suppose we have a balanced binary tree, which represents a recursive partitioning of a set of $N$ points into nested subsets. Each node of the tree represents a subset, with the following properties: subsets represented by two children nodes Read More …
[Solved]: Correctness of proof by induction
Problem Detail: Suppose a person states the following: $n^2 = (n * n), forall n > 0$. One can check such equality by saying, via proof by induction, that: for $n := 0: 0^2 = (0 * 0)$; for $n := Read More …
[Solved]: How would a neural network deal with an arbitrary length output?
Problem Detail: I’ve been looking into Recurrent Neural Networks, but I don’t understand what the architecture of a neural network would look like when the output length is not necessarily fixed. It seems like most networks I’ve read descriptions of require Read More …
[Solved]: Evaluating Statements Using a Parse Tree
Problem Detail: I’m building a compiler. I already have a parse tree which I built using Bison for a grammar similar to the ANSI C grammar in this link. I see that for multiplicative expression in my parse tree, there can Read More …
[Solved]: Does the BIOS run on the CPU?
Problem Detail: I was just thinking about this: Does the BIOS execute on the CPU? If so, how does it handle multiple CPU architectures/instruction sets? If not, what does it execute on? Asked By : Zeb McCorkle Answered By : hunch_hunch Yes, the Read More …
[Solved]: Given an array of size N, if you know that all of the elements are white except for one, how to find the index of that element efficiently?
Problem Detail: Yesterday while returning home, I walked past a house that had a camera. For some reason I started thinking about how these cameras work, and how you would use them in case of robbery. While thinking about everything that Read More …