Skip to content

Faster rating calculation - #190

Open
alexeydergunov wants to merge 3 commits into
ng-mainlinefrom
faster-rating-calculation
Open

Faster rating calculation#190
alexeydergunov wants to merge 3 commits into
ng-mainlinefrom
faster-rating-calculation

Conversation

@alexeydergunov

@alexeydergunov alexeydergunov commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

First part can be calculated without bruteforce (itertools.combinations).

It's a classical math problem "choose k of n items to maximize sum(x[i]*w[i]) / sum(w[i])".

Solution is a binary search.

Also, it opens a quick possible fix for smooth tournaments decay, which was discussed lately.
Just multiply the last element with 0.2 / 0.4 / 0.6 / 0.8 / 1.0

@alexeydergunov
alexeydergunov force-pushed the faster-rating-calculation branch from d58d954 to dcd1180 Compare August 30, 2026 23:47
@alexeydergunov
alexeydergunov force-pushed the faster-rating-calculation branch from dcd1180 to cfdfe3a Compare August 30, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant