Puzzle

Apr. 2nd, 2004 09:23 am
sobrique: (Default)
[personal profile] sobrique
I have a minor problem to solve.

Due to a problem where my Dad works, he needs to figure out how to sort some numbers.
But they need to be sorted such that there is more than 2 between each number in the sequence.

eg. 2, 4, 6, 8 would become 4, 8, 2, 6.

The problem is in figuring out the 'best' sort algorithm to do this programatically.
Oh and ideally using every frequency.

(The background is that the numbers represent 'channel numbers' on a radio system, and they're separated by 50Mhz. If they're less than 2 apart, then there's interference)

There's probably a beer (or other drink of choice) in it for anyone who can give me a good solution.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

sobrique: (Default)
sobrique

December 2015

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728 293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 20th, 2026 04:00 pm
Powered by Dreamwidth Studios