Problem Detail: I want to denote the class of problems solvable by linear space multi-tape Turing machines. I have seem in many places this class being denoted by $SPACE(n)$. But why is the notation $SPACE(O(n))$ not preferred in this case? In Read More …
Author: ignougroup
[Solved]: Can a Multi-Tape Turing Machine have an infinite number of tapes?
Problem Detail: So if k is the number of tapes, is a multi-tape Turing machine allowed to have k = ∞ tapes. I’d assume not since this would give an infinite transition function? Asked By : Ozal Answered By : A.Schulz You need Read More …
[Solved]: Shortest path between two points with n hops
Problem Detail: Is there an efficient algorithm which computes the (possibly approximately) shortest $n$-edge path between two points $A$ and $B$ in a weighted complete graph? Dijkstra won’t work because it will just give the trivial answer of $Ato B$. I’d Read More …
[Solved]: Minimize sum of squared error
Problem Detail: I have an array of real numbers, I want to partition them into k sets. In each set, I calculate the sum of squared error. Then, I add up all the sum of squared error for all the set. Read More …
[Solved]: Algorithm to find shortest path between two nodes
Problem Detail: I want an algorithm similar to Dijkstra or Bellman-Ford for finding the shortest path between two nodes in a directed graph, but with an additional constraint. The additional constraint is that there are $N$ sets of special edges with Read More …
[Solved]: In ID3 algorithm, which attribute to choose if information gains are equal?
Problem Detail: In the ID3 algorithm for building a decision tree, you pick which attribute to branch off on by calculating the information gain. What happens if the calculated information gain is equal for two different attributes? Can you choose either Read More …
[Solved]: Reduction from PARTITION to MAX-CUT
Problem Detail: I am trying to prove the NP-Hardness of the MAX-CUT problem. Other sources seem to reduce from the NAE-3SAT problem, however I have been trying to reduce from PARTITION because PARTITION and MAX-CUT are both in Karp’s list of Read More …
[Solved]: Do “inductively” and “recursively” have very similar meanings?
Problem Detail: Do “inductively” and “recursively” mean very similar? For example, if there is an algorithm that determines a n-dim vector by determine its first k+1 components based on its first k components having been determined, and is initialized with the Read More …
[Solved]: Compressing normally distributed data
Problem Detail: Given normally distributed integers with a mean of 0 and a standard deviation $sigma$ around 1000, how do I compress those numbers (almost) perfectly? Given the entropy of the Gaussian distribution, it should be possible to store any value Read More …
[Solved]: Chandy/Misra dining philosophers solution
Problem Detail: So based on the Chandy/Misra section in this Wikipedia article we’ve got 5 philosophers numbered P1-P5. Based on this quote: For every pair of philosophers contending for a resource, create a fork and give it to the philosopher with Read More …