• Member for 10 years, 11 months
  • Last seen this week
2 answers
25 votes
How is proving a context free language to be ambiguous undecidable?
Accepted answer
32 votes

We reduce from Post's Correspondence Problem. Suppose we can, in fact, decide the language $\{\langle G\rangle\vert G\textrm{ a CFG and }L(G)\textrm{ ambiguous}\}$. Given $\alpha_1, \ldots, \alpha_m, \...

View answer
4 answers
10 votes
Constructions better than a random one.
11 votes

Ramanujan graphs have second eigenvalue $\lambda_2\leq \frac{2\sqrt{D-1}}{D}$ (with $D$ the degree of the graph), while random graphs only achieve $\lambda_2\leq \frac{2\sqrt{D-1}}{D} + o(1)$ w.h.p. ...

View answer
92 answers
374 votes
Algorithms from the Book.
11 votes

Lenstra-Lenstra-Lovász Lattice Basis Reduction. Maybe not quite from the book (since it's, at least to me, a bit messy), but it definitely is worth a mention here.

View answer
3 answers
10 votes
Hardness of finding a word of length at most $k$ accepted by a nondeterministic pushdown automaton
0 votes

A probably suboptimal method: Run Djikstra's algorithm. Then, for each final state, compare the distances with $k$. If any are $\leq k$, accept. Reject. EDIT: The above only works for NFAs! Sorry ...

View answer