<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7781471289624763977</id><updated>2011-07-30T21:39:02.243-07:00</updated><category term='errata'/><category term='birthday problem'/><title type='text'>Analytic Combinatorics</title><subtitle type='html'>A blog dedicated to analytic combinatorics and the book with that same title, by Flajolet and Sedgewick, which appeared in January 2009
[Cambridge University Press, UK; ISBN: 978-0-521-89806-5].</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anacombi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7781471289624763977/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://anacombi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Philippe Flajolet</name><uri>http://www.blogger.com/profile/09919304763324375717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7781471289624763977.post-3024937019780196886</id><published>2009-07-29T05:20:00.000-07:00</published><updated>2009-07-29T09:05:00.718-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='birthday problem'/><category scheme='http://www.blogger.com/atom/ns#' term='errata'/><title type='text'>How many errors does this book contain?</title><content type='html'>&lt;p&gt;&lt;br /&gt;That's a question every author anxiously asks him/her/itself, as soon as the manuscript goes to press. Well, here is what happened regarding the Little Purple Book. By the way, the current list of errata appears on   the   &lt;a href="http://algo.inria.fr/flajolet/Publications/AnaCombi/"&gt;Book's Page&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As  errors and typos were being  communicated by readers and carefully recorded, it appeared that  it took till  the thirtieth   (30th) notification before a typo was reported &lt;em&gt;twice&lt;/em&gt;. What does this tell us about the total number &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;N&lt;/span&gt;&lt;/math&gt; of typos in the book?&lt;br /&gt;&lt;br /&gt;Naturally, &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;N&lt;/span&gt;&lt;/math&gt; is unknown.  Assume that errors are reported uniformly at  random.  You'll recognize now  a case  of the well-known  "birthday surprise" (also   known as "birthday  paradox"). Namely,  on Earth (where &lt;math&gt;N&lt;/math&gt;=365), it takes about  23  persons (on average,  or with probability larger than &lt;math&gt;1/2&lt;/math&gt;) to obtain a sample  where two people will have the  same birthday.  Now,  our problem with estimating the number of errors in  the  book is of the  same  nature, but with a  year that would  have&lt;span class="Apple-style-span" style="font-style: italic;"&gt;  &lt;/span&gt;&lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;N&lt;/span&gt;&lt;/math&gt; days, instead  of 365.   The answer  is as follows: the number of persons it takes  to first obtain a colision of birthdates is  on average approximately &lt;math&gt;sqrt{pi N/2}&lt;/math&gt;. A discussion can be found on pages  114-115 of &lt;em&gt;AC&lt;/em&gt;; this problem is   a nice illustration   of  the  power  of  exponential  generating functions.&lt;br /&gt;&lt;br /&gt;Let  us say  we   observe that the   first   collision occurs on   the &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;r&lt;/span&gt;&lt;/math&gt;th trial.  Then,  we  equate &lt;math&gt;sqrt{\pi N/2}&lt;/math&gt; with  &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;r&lt;/span&gt;&lt;/math&gt;, and cleverly "deduce"(!)   that &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;N&lt;/span&gt;&lt;/math&gt; should  be approximately  &lt;math&gt;2&lt;span class="Apple-style-span" style="font-style: italic;"&gt;r&lt;/span&gt;^2/pi&lt;/math&gt;.    Fair    enough,  eh?     With &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;r&lt;/span&gt;=30&lt;/math&gt;,  this predicts a number of  errors  of the order of 600 (the exact solution is 572.95...).&lt;br /&gt;&lt;br /&gt;If  we      actually  simulate the     experiment,   fixing  the number &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;N&lt;/span&gt;&lt;/math&gt; of errors,  we find that this  formula does predict the rough order  of  magnitude   of  &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;N&lt;/span&gt;&lt;/math&gt;,    but with    a   systematic multiplicative bias. What  is going wrong here?&lt;br /&gt;&lt;br /&gt;The problem is that   the expectation of  a square and the square of an expectation are  not the same thing. Here, analysis  teaches us that  the expectation of the square of the time it  takes to reach the   first collision is  asymptotic to &lt;math&gt;2&lt;span class="Apple-style-span" style="font-style: italic;"&gt;N&lt;/span&gt;&lt;/math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;.&lt;/span&gt;  Thus   the "right"  (i.e., asymptotically  unbiased) estimator is in   fact &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;r&lt;/span&gt;^2/2&lt;/math&gt;. See &lt;em&gt;AC&lt;/em&gt;,  Note VI.25, p. 417, for a discussion. This leads us to infer that we should expect the actual number of errors in the Little Purple Book  to be closer to 450, rather than the infamous 600. Soothing, isn't it?&lt;br /&gt;&lt;br /&gt;Of course, there are  limitations. First, the statistical procedure is  not very   accurate: its  accuracy    can  be gauged  by   estimating  the expectation of the &lt;em&gt;fourth&lt;/em&gt; power  of &lt;math&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;r&lt;/span&gt;&lt;/math&gt;, in itself a less trivial math exercise. Worse, we expect  the figures, 450 and even 600, to be  gross understimates  since errors are   not picked up uniformly at random --the ones closer to the beginning  are more likely to be found than the ones in  arcane corners of the book.  So, a mistake  per page sounds more like a reasonable possibility, and the book has 824 pages in total... Depressing!&lt;br /&gt;&lt;br /&gt;Where does the idea of such an estimator  come from?  I first heard it more  than  twenty years  ago   from  Gilles Brassard,  while   he was preparing  his  book  with P.  Bratley  on  algorithms.   In order  to determine how many   balls an urn  has, repeatedly  pick up a  ball at random  (shake the urn!),  mark the  ball just picked  up (say, with a touch of paint), and  repeat until an already marked  ball surfaces. &lt;span class="Apple-style-span" style="font-style: italic;"&gt;Return half the square of the number of steps.&lt;/span&gt; Et voila! &lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;To  be honest, till to-day, I couldn't think  of a real case of  application of Brassard's algorithm and I was viewing it mostly  as a thought experiment, a &lt;em&gt;gedanken&lt;/em&gt; experiment,   as a physicist would say.   Perhaps  we have  here the first actual  use of Brassard's algorithm.   At any rate, his sampling-based algorithm has  pedagogical value: it  demonstrates that you can really achieve   something with   sublinear resources. Refer    to  the many probabilisic stream  algorithms that are now known, the current research on property testing, and so on.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7781471289624763977-3024937019780196886?l=anacombi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anacombi.blogspot.com/feeds/3024937019780196886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7781471289624763977&amp;postID=3024937019780196886' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7781471289624763977/posts/default/3024937019780196886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7781471289624763977/posts/default/3024937019780196886'/><link rel='alternate' type='text/html' href='http://anacombi.blogspot.com/2009/07/how-many-errors-does-this-book-contain.html' title='How many errors does this book contain?'/><author><name>Philippe Flajolet</name><uri>http://www.blogger.com/profile/09919304763324375717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7781471289624763977.post-4354211781359756976</id><published>2009-06-24T08:47:00.000-07:00</published><updated>2009-06-24T09:10:30.223-07:00</updated><title type='text'></title><content type='html'>Hi! After nearly a year of final adjustments, copy-editing, and production work at the Press, the book &lt;e&gt;Analytic Combinatorics&lt;/e&gt; eventually became available in January 2009. Cambridge University Press has done a great job and our editor, David Tranah, was a great help, throughout the whole process.&lt;br /&gt;&lt;br /&gt;I'd like to remind everybody that, thanks to a special arrangement with CUP, we, authors, retain the non-exclusive copyright of the electronic edition. Thus, the manuscript continues to be &lt;b&gt;freely available to individual users&lt;/b&gt; from the authors' home pages.&lt;div&gt;&lt;br /&gt;I plan to maintain a page with some goodies at the &lt;a href="http://algo.inria.fr/flajolet/Publications/AnaCombi/index.html"&gt;book's URL&lt;/a&gt;, from which the entire text (about 13MB in PDF) can be downloaded.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this blog, I hope to report on new results relative to &lt;e&gt;analytic combinatorics&lt;/e&gt;, possibly discuss the choice of topics in the book and/or stories. Comments are also most welcome regarding the contents of the book and possible mistakes or oversights--we hope to have a new edition out some time in the future. It'd be nice also, if people who teach from the book were kind enough to drop a line here, possibly with a pointer to their home/course page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7781471289624763977-4354211781359756976?l=anacombi.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anacombi.blogspot.com/feeds/4354211781359756976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7781471289624763977&amp;postID=4354211781359756976' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7781471289624763977/posts/default/4354211781359756976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7781471289624763977/posts/default/4354211781359756976'/><link rel='alternate' type='text/html' href='http://anacombi.blogspot.com/2009/06/hi-after-nearly-year-of-final.html' title=''/><author><name>Philippe Flajolet</name><uri>http://www.blogger.com/profile/09919304763324375717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
