comp.lang.ada
 help / color / mirror / Atom feed
* Feeling out of sorts about learning styles
@ 1996-08-21  0:00 W. Wesley Groleau (Wes)
  0 siblings, 0 replies; only message in thread
From: W. Wesley Groleau (Wes) @ 1996-08-21  0:00 UTC (permalink / raw)



The first time I saw quicksort in a high-level language, it took a little
while to understand it, even though I had been given a verbal explanation.

Robert's two-line explanation of the algorithm as applied to a deck of
cards was instantly clear.

Tim's assembly approaches the other extreme.  Knowing assembler has its
advantages, but it will NEVER make quicksort easier to understand!

But neither speed, simplicity, nor size (table space) is necessarily
the criteria for selecting an algorithm...

The best algorithm for sorting a deck of cards is the most fun:

until sorted, loop
  Play solitaire!
  if deadlock then
    cheat
  end if
  if still deadlocked
    report missing cards or something
  end if
end loop;

(All work and no play...)

---------------------------------------------------------------------------
W. Wesley Groleau (Wes)                                Office: 219-429-4923
Hughes Defense Communications (MS 10-40)                 Home: 219-471-7206
Fort Wayne,  IN   46808                  (Unix): wwgrol@pseserv3.fw.hac.com
---------------------------------------------------------------------------




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-08-21  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-21  0:00 Feeling out of sorts about learning styles W. Wesley Groleau (Wes)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox