Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,455 of 2,753    |
|    William Clodius to Martin Ward    |
|    Re: sorting performance, Add nested-func    |
|    24 Mar 18 23:25:21    |
   
   From: w.clodius@icloud.com   
      
   Martin Ward wrote:   
      
   > > [Give or take the detail that bubble sort is never the right   
   algorithm   
   > since insertion sort is shorter and faster, I agree. -John]   
      
   I believe that bubble sort is faster if the data is usually presorted.   
   The Unicode consortium describes the sorting of codepoints to forn the   
   normalization forms, because the initial decomposition process usually   
   results in an ordering that is usually in or close to the desired order.   
      
   [It's the reverse. Insertion sort is O(N) if the list is already sorted.   
   See http://www.differencebetween.com/difference-between-bubble-s   
   rt-and-vs-insertion-sort/   
   -John]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca