- #1
noelo2014
- 45
- 0
I'm writing a piece of software and need to find an optimal algorithm for scanning servers. Basically I'm given a list of N IP addresses, each IP address has two associated datetime values: The time the server was last known to be online and the time of the last connection attempt.
Given these values I need to sort the list so the servers most likely to be online right now are at the top of the list.
Given these values I need to sort the list so the servers most likely to be online right now are at the top of the list.