Any computer scientists in here?
#6
whyBish,Jan 3 2006, 11:00 AM Wrote:If you keep them in a sorted list based on fitness (assuming that fitness is a calculation internal to an organism, (i.e. doesn't change when your list changes)) then it wouldn't be O(n^2)...you could also maintain the cumulative fitness of the population.  It does however mean that you take a hit on insertion (& deletion) so the overall runtime may end up back looking like O(nlogn)?
[right][snapback]98565[/snapback][/right]


Reworking it in my head, O(nlogn) is right. On very large sets, it would matter, but the overhead of the modivied trunc would probably be like half of log n on average anyway.

Still, I'm somewhat enamored with my modified truncation idea. I think I may try it out anyway.
Great truths are worth repeating:

"It is better to live in the corner of a roof
Than in a house shared with a contentious woman." -Proverbs 21:9

"It is better to live in the corner of a roof
Than in a house shared with a contentious woman." -Proverbs 25:24
Reply


Messages In This Thread
Any computer scientists in here? - by GenericKen - 12-31-2005, 08:27 AM
Any computer scientists in here? - by Kylearan - 12-31-2005, 03:58 PM
Any computer scientists in here? - by GenericKen - 12-31-2005, 08:13 PM
Any computer scientists in here? - by ima_nerd - 01-01-2006, 12:10 AM
Any computer scientists in here? - by whyBish - 01-03-2006, 11:00 AM
Any computer scientists in here? - by GenericKen - 01-03-2006, 05:30 PM
Any computer scientists in here? - by Pesmerga - 01-03-2006, 06:02 PM
Any computer scientists in here? - by GenericKen - 01-04-2006, 06:58 AM
Any computer scientists in here? - by Kylearan - 01-04-2006, 09:16 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)