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

Algorithm 2

ranking (Integer score, Integer id)

Let be a node

(2) = search(score, id)

(3) if = null

(4) return −1

(5) end if

(6)

(7)

(8) while:

(9) if:

(10)

(11) end if

(12)

(13) end while

(14) return

end ranking

We are committed to sharing findings related to COVID-19 as quickly as possible. We will be providing unlimited waivers of publication charges for accepted research articles as well as case reports and case series related to COVID-19. Review articles are excluded from this waiver policy. Sign up here as a reviewer to help fast-track new submissions.