Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing letters
#9
IMHO Toonski's code is much more effecient because it is understandable (and modifiable) at a glance, Neo's code may produce slightly more effecient machine code, but its meaning isnt instantly clear to a beginner and its not easily changed.

In terms of computer science, both Neo's and Toonski's algorithms are almost exactly the same speed (Toonski's takes 5 assignments and Neo's only 3) but both execute in O(1) constant time. The percieved speed difference on a modern computer, even for several hunderd iterations of either algorithm would be almost impossible to detect.

Would anyone be interested in reading some simple tutorials on algorithm complexity, ie discussions of the big-O notation, what makes certain algorithms faster than others and good selection of algorithms. I could write some Qbasic relevant tuts on the subject.
esus saves.... Passes to Moses, shoots, he scores!
Reply


Messages In This Thread
Changing letters - by Lanzaa - 02-01-2003, 11:14 AM
Changing letters - by toonski84 - 02-01-2003, 11:26 AM
Changing letters - by Lanzaa - 02-01-2003, 08:00 PM
Changing letters - by Lanzaa - 02-03-2003, 06:16 AM
Changing letters - by toonski84 - 02-03-2003, 07:04 AM
Changing letters - by Lanzaa - 02-03-2003, 09:55 AM
Changing letters - by toonski84 - 02-03-2003, 03:22 PM
Changing letters - by Neo - 02-03-2003, 04:04 PM
Changing letters - by LooseCaboose - 02-04-2003, 02:02 AM
Changing letters - by toonski84 - 02-04-2003, 04:56 AM
Changing letters - by Lanzaa - 02-04-2003, 07:27 AM
Changing letters - by toonski84 - 02-04-2003, 08:14 AM
Changing letters - by Neo - 02-04-2003, 04:31 PM
Changing letters - by Lanzaa - 02-05-2003, 09:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)