home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / edu / 1498 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.8 KB  |  37 lines

  1. Newsgroups: comp.edu
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: Re: Scientists as Programmers (was Re: Small Language Wanted)
  5. Message-ID: <9224709.28307@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <1992Aug31.133811.3626@crd.ge.com> <1992Aug31.144045.11416@hubcap. <1992Sep2.090541.29304@st-andrews.ac.uk> <7216@charon.cwi.nl>
  9. Date: Wed, 2 Sep 1992 23:37:09 GMT
  10. Lines: 25
  11.  
  12. dik@cwi.nl (Dik T. Winter) writes:
  13.  
  14. >In article <1992Sep2.090541.29304@st-andrews.ac.uk> ajtd@honey.st-and.ac.uk (Tony Davie) writes:
  15. > > In addition, many of the best non-numerical algorithms seem to be neglected.
  16. > > Bubble sort STILL seems to be the most used sorting method, for instance.
  17. >
  18. >Surprise, also Bubble sort has its place!  I once did code for the
  19. >singular value decomposition.  At the end of the routine the singular
  20. >values are sorted (because most people expect this).  I deliberately
  21. >chose Bubble sort because the code is short.  That its order is n^2
  22. >is not important as the order of the decomposition is n^3 for square
  23. >matrices.  It would be silly to invest time to implement better sorting
  24. >methods at that place.
  25.  
  26. It would be silly to invest time in implementing ANY sorting method!
  27. A much simpler, easier, and usually more efficient method is to simply
  28. call the sort routine in the standard library... <flame bait follows>
  29. or don't you Science types know anything about code re-use?
  30. <end flame bait> ;-)
  31.  
  32. -- 
  33. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  34. This .signature virus is a self-referential statement that is true - but 
  35. you will only be able to consistently believe it if you copy it to your own
  36. .signature file!
  37.