Welcome, Guest. Please login or register.

Author Topic: Programming question! :)  (Read 3319 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Jose

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show all replies
Re: Programming question! :)
« on: April 16, 2012, 10:53:01 PM »
I have an idea. Depending on how you want to optimize it (apparently for speed rather than size) you could organize ranks comparisons in a binary tree like sequence (assuming the ranks are fixed). This would grant you the fastest search results possible but probably a tid bit bigger code.
Don't ask me for a code sample right now though :)
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Jose

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show all replies
Re: Programming question! :)
« Reply #1 on: April 17, 2012, 03:55:07 PM »
Is the size between boundaries constant ? (i.e. is the total nr. of ranks a multiple of the size of one rank).
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Jose

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show all replies
Re: Programming question! :)
« Reply #2 on: April 19, 2012, 12:40:38 AM »
Another idea that I don't know if it would work. If the values of the curve can be guessed by using a mathematical function you could revert the function and get the x value. Then calculate the rank by dividing by rank x size (of course that assumes rank x size is constant between ranks, as opposed to rank y size which isn't (like you say it's a curve)).
\\"We made Amiga, they {bleep}ed it up\\"