Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: Quick n-th Square of BigInteger Date: Sun, 10 Jun 2012 13:31:57 +0200 Organization: albasani.net Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net 2LiD40KddnvgBsh21oocw6qX1zHjq20v0h5gUwQE2+s1pegkzspuC1kJlYJWab+jsI7wI/84ekB3K16cQ3ARBNfpARzCnWwFWQSM+bTwLNyXpDcq9+bF+7JgAe0TtUUp NNTP-Posting-Date: Sun, 10 Jun 2012 11:31:57 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="NlbMlA7ukHlkLFuIgK5so+9MC5BmFnLj/Dk7KA5C5X3L7z+V/xdsH7AE9ba9X0Cohv/cZ0OKiXTmmfrytUTROBPPoWUFtd6wGg2sgsNI7S6z5PwUp64bzpGIEahp88Fr"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120604 Firefox/13.0 SeaMonkey/2.10 In-Reply-To: Cancel-Lock: sha1:SQ4dKMkCFgF5XjJbL71X453wvLQ= Xref: csiph.com comp.lang.java.programmer:15164 Joshua Cranmer schrieb: > On 6/9/2012 1:44 PM, Leif Roar Moldskred wrote: >> There's no use to have a "favorite algorithm" decoupled from >> context.. Quicksort is a nice sorting algorithm, by all means, but >> sometimes -- admittedly very rarely -- the right choice is nonetheless >> bubblesort. > > Well, I believe Knuth once said that bubblesort has nothing to recommend > it except some interesting math problems. > > I tend to use heapsort or insertion sort pretty exclusively if I have to > code a sort by hand. > > Oops, the jury forgot to honor the above troll meme: "Hi I am junior troll, I know I lack the originality and spice of real trolls, but I know how to use my keyboard and can easily add to the smoke rising."