Problem Detail: I’m sure this is not a challenge for you but it remains an open question for me: Is it wise to prefer a recursive algorithm over its for-loop counterpart? E.g. take the evaluation of the natural logarithm of a Read More …
Category: Uncategorized
[Solved]: Why is And-Or-Graph-Search called a search algorithm?
Problem Detail: An algorithm in Artificial Intelligence: A Modern Approach for planning in stochastic, fully observable environments is called And-Or-Graph-Search, implying that it’s a search algorithm. However, I don’t see how it is one. Wikipedia defines search algorithms as, “an algorithm Read More …
[Solved]: Number of Combinations of Connected Bipartite Graphs
Problem Detail: Given two sets of vertices $U$ (size $n$) and $V$ (size $m$), how many possibilities of set of edges $E$ exist that make the bipartite graph $G = (U, V, E)$ connected? Obviously there are $2^{n m}$ different set Read More …
[Solved]: Can a computer count to infinity?
Problem Detail: So, could a computer count to infinity assuming it was a super computer and had near unlimited amounts of ram and hard drive/solid state drive storage? I am being serious when I ask this. [This is what I am Read More …
[Solved]: How does the Sutherland-Hodgman Algorithm work?
Problem Detail: The following are the Pages-96 and Page-97 of the book Schaum’s outline series of Computer Graphics. The algorithm considers several things: (1) Whether the polygon is Convex or Concave. (2) Whether the polygon is positively or negatively oriented. (3) Read More …
[Solved]: Parikh’s Theorem: CFL’s “contain” regular languages?
Problem Detail: The first sentence of the Wikipedia article for Parikh’s Theorem states: “Parikh’s theorem in theoretical computer science says that if one looks only at the relative number of occurrences of terminal symbols in a context-free language, without regard to Read More …
[Solved]: Minimal basis for set of binary vectors using XOR
Problem Detail: I would be surprised if this isn’t a well-studied problem, but I’m not sure what else to search for at this point: you’re given a set of binary $n$-vectors $S subset {0,1}^n$. The problem is to find another set Read More …
[Solved]: Shortest path that visits maximum number of strongly connected components
Problem Detail: Consider a directed graph. I need to find a path that visits maximum number of strongly connected components in that graph. If there are several such paths the desired path is the path that visits minimum number of nodes Read More …
[Solved]: Is it decidable whether a given context free grammar generates an infinite number of strings?
Problem Detail: Is the decision problem “Does a given context free grammar generate an infinite number of strings” decidable? In order to test whether a context free grammar generates an infinite number of strings or not, we can write a program Read More …
[Solved]: Shortest walk that covers $k$ nodes
Problem Detail: I have the following problem, I would like to know an efficient algorithm to solve it. Suppose I have a weighted graph $G$ and a set of vertices $K$, I want to find a walk which starts at a Read More …