Research Article

A Method for Fast Leaderboard Calculations in Massive Online Game-Based Environments

Algorithm 1

Compare (Player  a, Player  b)
if  
(2) return  
(3) else if  
(4) return   b
(5) else if  
(6) return  a
(7) else
(8) return  b
end compare