User - MathOverflowmost recent 30 from http://mathoverflow.net2013-05-22T11:27:30Zhttp://mathoverflow.net/feeds/user/111http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/32269/guess-a-number-with-at-most-one-wrong-answer/32274#32274Answer by shreevatsa for Guess a number with at most one wrong answershreevatsa2010-07-17T09:16:07Z2010-07-18T04:10:02Z<p>BTW, this problem is known as the Ulam(-Renyi) liar problem or Ulam's searching game (or just "playing Twenty Questions with a liar"), and has an extensive literature. The following is a survey as of 2002:</p>
<ul>
<li>Andrzej Pelc, <em>Searching games with errors--fifty years of coping with liars</em>, Theoretical Computer Science, Volume 270 (2002), pp. 71-109 </li>
</ul>
<p>In particular, with 1 lie allowed, to guess a number in {1…n} where n is even, the number of queries needed is the smallest integer q which satisfies n ≤ 2<sup>q</sup>/(q+1), which for n=1000 is indeed 14. There are alternative solutions to the one-lie game in more recent papers like <a href="http://arxiv.org/abs/0705.1220" rel="nofollow">this</a> and <a href="http://www.sciencedirect.com/science/article/B6V00-4R5G8D4-1/2/a828607606588ec7027375bb107a8800" rel="nofollow">this</a>. As observed by Peter Shor in a comment above, the general adaptive strategy when multiple lies are allowed does not look like Hamming codes.</p>
<hr>
<p><strong>Edit</strong>: Since this has been bumped up, I may as well mention a nice result in the more general setting, proved by Joel Spencer and Peter Winkler in their paper <a href="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.50.1965" rel="nofollow"><em>Three Thresholds for a Liar</em></a>.</p>
<p>It is traditional to name the two players Paul and Carole, where Paul (named after Paul Erdős) is the one who asks the questions, and Carole (an anagram of oracle) is the one who answers them. Paul asks $q$ questions in all, and Carole is allowed to lie a fraction $r$ of the time. We will consider three progressively harder (for Paul) versions of what this means. In Version A, Carole is allowed to lie at most $\lfloor ri\rfloor$ times to the first $i$ questions, for all $i$. In Version B, Carole is only required to lie at most $\lfloor rq \rfloor$ times <em>in total</em> — she can choose to exhaust all her lies at the beginning, for instance. In Version C (nonadaptive), Paul must ask all his questions in one batch, and Carole can choose up to $\lfloor rq \rfloor$ ones to lie to.</p>
<p>Note that if no lies are allowed ($r = 0$), the number of questions needed is exactly $\lceil \log_2 n\rceil$, and that, intuitively, if $r$ is too large, Paul cannot guess correctly at all. Specifically, they show that:</p>
<ul>
<li>In version A, Paul wins with $\Theta(\log n)$ questions if $r < 1/2$, but Carole wins if $r \ge 1/2$.</li>
<li>In version B, Paul wins with $\Theta(\log n)$ questions if $r < 1/3$, but Carole wins if $r \ge 1/3$.</li>
<li>In version C, Paul wins with $\Theta(\log n)$ questions if $r < 1/4$, Carole wins if $r > 1/4$, and if $r = 1/4$, Paul wins but needs $\Theta(n)$ questions.</li>
</ul>
http://mathoverflow.net/questions/31577/decision-problem-restricted-to-inputs-that-satisfy-some-necessary-condition/31588#31588Answer by shreevatsa for Decision problem restricted to inputs that satisfy some necessary condition.shreevatsa2010-07-12T17:57:13Z2010-07-12T21:45:47Z<p>Your Problem 2 is indeed a promise problem. By definition, it is not in NP, because NP is a class of decision problems, not promise problems. But if you like, you can say that it's in a class Promise-NP. See <a href="http://en.wikipedia.org/wiki/Promise_problem" rel="nofollow">Wikipedia</a> or Oded Goldreich's survey <a href="http://www.wisdom.weizmann.ac.il/~oded/prpr.html" rel="nofollow"><em>On Promise Problems</em></a>.</p>
<p>For a decision problem, <em>all</em> strings are either YES instances or NO instances. For a promise problem, some strings are allowed to be "invalid": neither YES nor NO.</p>
<p>In general, if you have a nondeterministic algorithm for a promise problem, then when you feed it inputs that don't satisfy the promise, it will either accept or not — so the the sets of strings accepted and not accepted by your predicate will be supersets of the actual YES and NO instances respectively (and have intersection with the "invalid" instances). In this particular problem, because your condition is a necessary one for 3-colorability, the set of accepted strings will be exactly the set of 3-colorable graphs, but its complement will include graphs that don't satisfy the condition. (If you like, you can artificially change the problem to a decision problem with the same set of YES instances, but then your Problem 2 becomes the same as Problem 1 and therefore in NP.)</p>
http://mathoverflow.net/questions/31499/100-prisoners-100-boxes-proof-of-optimality/31501#31501Answer by shreevatsa for 100 Prisoners, 100 Boxes: Proof of Optimalityshreevatsa2010-07-12T04:26:26Z2010-07-12T04:26:26Z<p>I'm not sure this is at an appropriate level for Math Overflow, but while the question is open... Yes, there is a proof that the strategy is optimal, and it's in <a href="http://www.springerlink.com/content/c1107q6614555085/" rel="nofollow">this paper</a>:</p>
<ul>
<li>Eugene Curtin and Max Warshauer, <em>The locker puzzle</em>, The Mathematical Intelligencer, Volume 28, Number 1 (March 2006), pages 28–31.</li>
</ul>
<p>If you can't access the paper, you can see it explained (along with the original puzzle and strategy) in detailed <a href="http://ocfnash.wordpress.com/2009/12/12/pity-the-prisoners/" rel="nofollow">here</a> (or a sketch <a href="http://shreevatsa.wordpress.com/2009/08/10/eugene-curtain-and-max-washauer/" rel="nofollow">here</a>).</p>
http://mathoverflow.net/questions/30910/implementation-of-the-robinson-schensted-correspondence/30914#30914Answer by shreevatsa for Implementation of the Robinson-Schensted Correspondenceshreevatsa2010-07-07T16:44:17Z2010-07-07T17:09:14Z<p>It doesn't require linked lists, just arrays that can grow. </p>
<p>There's a <a href="http://www.math.uconn.edu/~troby/Goggin/BumpingAlg.html" rel="nofollow">Java applet online</a> that implements it.</p>
<p>I'm sure there are other implementations online, but since I couldn't find any, as a start, here's a simple Python implementation. [Though it feels odd giving a programming answer here, and I'm sure several people here can write it much better!]</p>
<pre><code>from bisect import bisect
def RSK(p):
'''Given a permutation p, spit out a pair of Young tableaux'''
P = []; Q = []
def insert(m, n=0):
'''Insert m into P, then place n in Q at the same place'''
for r in range(len(P)):
if m > P[r][-1]:
P[r].append(m); Q[r].append(n)
return
c = bisect(P[r], m)
P[r][c],m = m,P[r][c]
P.append([m])
Q.append([n])
for i in range(len(p)):
insert(int(p[i]), i+1)
return (P,Q)
print RSK('1364752')
</code></pre>
<p>Edit: Used binary search to improve from O(n<sup>3</sup>) to O(n<sup>2</sup>log n), which should matter only for very large permutations.</p>
http://mathoverflow.net/questions/29710/older-editions-of-which-books-were-better-than-the-new-ones/29716#29716Answer by shreevatsa for Older editions of which books were better than the new ones?shreevatsa2010-06-27T16:59:50Z2010-06-27T16:59:50Z<p>Usually a newer edition is something that at least the author and publisher considered an improvement, so any answers are rather subjective. That said,</p>
<ul>
<li><p>Ian Stewart's <em>Galois Theory</em>, 3rd edition, is sometimes harshly criticized for ruining a great book, by (1) doing everything over the complex numbers first (leading to some long-winded proofs), and (2) being <a href="http://flash.lakeheadu.ca/~avantuyl/courses/oldcourses/Stewart_Corrections.pdf" rel="nofollow">full of typos</a>. The former is a conscious choice of the author, so its merits are debatable, but at any rate it's a substantially different book from the 2nd edition.</p></li>
<li><p><em>Calculus Made Easy</em>, by Silvanus P. Thompson. This <a href="http://en.wikipedia.org/wiki/Calculus_Made_Easy" rel="nofollow">1910 classic</a> was updated in 1998 by Martin Gardner, but because both the authors are <a href="http://www.jstor.org/stable/2687108" rel="nofollow">"men of strong individuality"</a>, the difference in styles can be somewhat jarring. Also, John Baez <a href="http://math.ucr.edu/home/baez/books.html#calculus" rel="nofollow">complains</a> that:</p>
<blockquote>
<p>Alas, the new edition has been puffed up to 336 pages by Martin Gardener. People must <em>want</em> calculus to seem hard.</p>
</blockquote></li>
</ul>
http://mathoverflow.net/questions/8846/proofs-without-words/17328#17328Answer by shreevatsa for Proofs without wordsshreevatsa2010-03-06T23:18:28Z2010-03-06T23:53:50Z<p><a href="#9381" rel="nofollow">This other answer</a> shows that an 8x8 board with opposite squares removed cannot be tiled with dominoes, as they are of the same "colour". But what if two squares of <em>opposite</em> colours are removed? Ralph E. Gomory showed that it is always possible, no matter where the two removed squares are, and <a href="http://shreevatsa.files.wordpress.com/2010/03/tiling-gomory.png" rel="nofollow">this is his proof</a>.</p>
<p><img src="http://shreevatsa.files.wordpress.com/2010/03/tiling-gomory.png" alt="alt text"></p>
<p>(Imagine A and B are the squares removed.) The image is from Honsberger's <em>Mathematical Gems I</em>.</p>
http://mathoverflow.net/questions/2144/a-single-paper-everyone-should-read/2721#2721Answer by shreevatsa for A single paper everyone should read?shreevatsa2009-10-26T23:21:49Z2009-10-26T23:21:49Z<p>William Thurston's <a href="http://arxiv.org/abs/math.HO/9404236" rel="nofollow"><em>On Proof and Progress in Mathematics</em></a> is a wonderful read, enlightening many aspects of the practice of mathematics.</p>
http://mathoverflow.net/questions/128036/solutions-to-binomn5-2-binomm5Comment by 2013-04-19T05:01:44Z2013-04-19T05:01:44ZFor what it's worth: I've checked that there are no other solutions for n up to 35 billion or so.http://mathoverflow.net/questions/41577/how-do-i-explain-the-number-e-to-a-ten-year-old/41605#41605Comment by 2012-10-23T09:27:19Z2012-10-23T09:27:19ZCould someone explain this? I can see with calculus that the optimum value of $(100/x)^x$ is at $x=100/e$ (corresponding to something like 100/e copies of e), but (1) how would a 10-year-old arrive close to this without calculus?, and (2) even if she sees (by trying out everything with a calculator, say) that the answer for 100 is $(100/37)^{37}$, how to get from there to an understanding of $e$ in general?http://mathoverflow.net/questions/7155/famous-mathematical-quotes/8238#8238Comment by 2012-10-22T04:41:20Z2012-10-22T04:41:20ZI remember trying to track this down; this is what I found. Although WZ quote it as being from <i>Concrete Mathematics</i> by Graham, Knuth and Patashnik and attribute it to the authors, in the book it is just a margin comment left by one of the students of the Stanford class. (The book is full of those.) It follows Whitehead's quote ("It is a profoundly erroneous truism [...] Civilization advances by extending the number of important operations which we can perform without thinking about them": <a href="http://www-history.mcs.st-and.ac.uk/Quotations/Whitehead.html" rel="nofollow">www-history.mcs.st-and.ac.uk/Quotations/…</a>) and some student must have "extended" it.http://mathoverflow.net/questions/8609/favorite-popular-math-book/8619#8619Comment by 2012-08-06T14:08:37Z2012-08-06T14:08:37ZThis is the most delightful biography I have read, of anyone in any field.http://mathoverflow.net/questions/2144/a-single-paper-everyone-should-read/2256#2256Comment by 2012-01-07T19:22:45Z2012-01-07T19:22:45Z@Tobias: The "complete trivialities" in Section 1 are not obvious to all mathematicians. (I have certainly seen people whose personal definitions of "good mathematics" wouldn't include some qualities in the list—which is fine—and who seemed unaware that others could value those qualities.) Even these insights, "trivial" to you, may be encouraging and illuminating to a young person somewhere. There are people who find Section 1&3 even more valuable than the case study. If mathematicians kept all their trivial thoughts to themselves, everyone to whom those were not trivial would be much poorer.http://mathoverflow.net/questions/74841/an-example-of-a-beautiful-proof-that-would-be-accessible-at-the-high-school-level/74842#74842Comment by 2011-12-23T04:48:18Z2011-12-23T04:48:18ZWhat Douglas Zare said is nicely explained in the 1999 paper <i>Recounting the Rationals</i> (<a href="http://www.math.upenn.edu/~wilf/website/recounting.pdf" rel="nofollow">math.upenn.edu/~wilf/website/recounting.pdf</a>) by Calkin and Wilf. Some people have felt (<a href="http://blog.plover.com/math/recounting.html" rel="nofollow">blog.plover.com/math/recounting.html</a>) that it's a good "first math paper" to read.http://mathoverflow.net/questions/74841/an-example-of-a-beautiful-proof-that-would-be-accessible-at-the-high-school-level/74865#74865Comment by 2011-12-23T04:42:12Z2011-12-23T04:42:12ZTo complete Michael Hardy's comment, Euclid's original proof proves the following statement: given any finite list of primes, we can extend the list by finding a prime not in the list. (Proof: multiply the primes in the list and add one; any prime factor of this new number is a prime not in the original list.) So it's a constructive way of taking a list of primes and producing another prime; we don't have to assume that the original list was "all the primes" (as in the contradiction proof) or that they were the first n primes.http://mathoverflow.net/questions/7998/most-general-way-to-generate-pairwise-independent-random-variablesComment by 2011-06-28T04:43:08Z2011-06-28T04:43:08Z[The following is probably obvious stuff, but since this page doesn't yet mention the word "polynomial"…] One standard way to generate n pairwise independent random variables is to take some prime p greater than n, independently generate two values a and b modulo p (a≠0), and take values of the polynomial (ax+b) mod p for different x (say X_i=(ai+b) mod p, for i=0 to i=n). This is pairwise independent but not 3-wise independent. In general, to get random variables that are k-wise independent but not (k+1)-wise, take a polynomial of degree k-1.http://mathoverflow.net/questions/42512/awfully-sophisticated-proof-for-simple-facts/44748#44748Comment by 2011-06-05T18:09:40Z2011-06-05T18:09:40ZIs the minus sign in Lewis's equation intentional?http://mathoverflow.net/questions/42929/suggestions-for-good-notation/42945#42945Comment by 2010-10-28T06:51:00Z2010-10-28T06:51:00ZThe problem with 1_{X}, as you observed, is that it pushes the main stuff to the small font of the subscript. I don't understand the advantage you wrote of: what's wrong with (2+[X])²? IIRC, expressions of this sort are used without hesitation in Graham-Knuth-Patashnik (<i>Concrete Mathematics</i>).http://mathoverflow.net/questions/35422/most-obvious-open-problems-in-complexity-theoryComment by 2010-08-14T05:12:08Z2010-08-14T05:12:08Z@Kaveh: No, the question is "Which conjectures in complexity theory are widely believed because they are so <i>so</i> so obvious, yet have not been proved?"http://mathoverflow.net/questions/35468/widely-accepted-mathematical-results-that-were-later-shown-wrong/35470#35470Comment by 2010-08-14T05:09:54Z2010-08-14T05:09:54ZThe word is "renown", not "reknown", BTW. (Sorry for this trivial comment.)http://mathoverflow.net/questions/34445/meaning-of-kroneckers-comment-to-lindemann/34449#34449Comment by 2010-08-03T23:23:07Z2010-08-03T23:23:07ZWrt Zeilberger and tongue-in-cheekness, see the interview here: <a href="http://www.math.rutgers.edu/~zeilberg/JoeGallianInterview.html" rel="nofollow">math.rutgers.edu/~zeilberg/…</a> (search for 'evangelical'). Also, whenever mention of "ultrafinitism" comes up it's irresistible to mention the anecdote involving Yessenin-Volpin, mentioned at <a href="http://scottaaronson.com/blog/?p=103" rel="nofollow">scottaaronson.com/blog/?p=103</a> and <a href="http://dialinf.wordpress.com/2009/02/16/achilles-tortoise-and-yessenin-volpin/" rel="nofollow">dialinf.wordpress.com/2009/02/16/…</a> :-)http://mathoverflow.net/questions/34125/is-galois-theory-necessary-in-a-basic-graduate-algebra-courseComment by 2010-08-02T03:27:07Z2010-08-02T03:27:07ZBTW, the idea of a Galois theory course leading up to insolubility of the quintic using everything that came before is somewhat a myth, since most of Galois theory is unnecessary for it (though worthwhile for other reasons). See John Stillwell's "Galois Theory for Beginners" (<a href="http://www.jstor.org/stable/2325119" rel="nofollow">jstor.org/stable/2325119</a>): "most of the equipment supplied—in particular normal extensions, irreducible polynomials, splitting fields and a lot of group theory—is unnecessary. The biggest encumbrance is the so-called fundamental theorem of Galois theory." ☺ He proves it 5 pages using only the relevant parts.http://mathoverflow.net/questions/34070/motivation-of-moment-generating-functions/34104#34104Comment by 2010-08-01T11:56:59Z2010-08-01T11:56:59ZI think this is an answer to "What is the use of moment-generating functions", and not to "Where does the definition of moment-generating functions come from?"