home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!decwrl!sun-barr!ames!haven.umd.edu!darwin.sura.net!wupost!waikato.ac.nz!aukuni.ac.nz!ecmtwhk
- Newsgroups: comp.edu
- Subject: Re: Scientists as Programmers (was Re: Small Language Wanted)
- Message-ID: <1992Sep3.224003.1841@ccu1.aukuni.ac.nz>
- From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
- Date: Thu, 3 Sep 1992 22:40:03 GMT
- References: <1992Aug31.133811.3626@crd.ge.com> <1992Aug31.144045.11416@hubcap. <1992Sep2.090541.29304@st-andrews.ac.uk> <7216@charon.cwi.nl>
- Organization: University of Auckland, New Zealand.
- Lines: 16
-
- dik@cwi.nl (Dik T. Winter) writes:
-
- >Surprise, also Bubble sort has its place! I once did code for the
- >singular value decomposition. At the end of the routine the singular
- >values are sorted (because most people expect this). I deliberately
- >chose Bubble sort because the code is short. That its order is n^2
- >is not important as the order of the decomposition is n^3 for square
- >matrices. It would be silly to invest time to implement better sorting
- >methods at that place.
-
- Argl. There are better n^2 algorithms out there, for example insertion
- sort, and that is as short to implement.
- --
- Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
- The joy of engineering is to find a straight line on a double logarithmic
- diagram.
-