substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Implement MMS algorithm for npos-election

Open kianenigma opened this issue 5 years ago • 7 comments

This will be algorithm 2 explained here: https://github.com/w3f/research-internal/blob/master/papers/NPoS_validator_selection.pdf.

We will most likely never want to use this on a chain, because this solver is considerably slow, yet it produces better results and on offchain application/bot might want to use it to improve on-chain solutions.

This is a great first issue for someone to get started with election algorithms. Reading the paper itself worth the time.

kianenigma avatar Jul 12 '20 07:07 kianenigma

cc @AlfonsoCev.

kianenigma avatar Jul 12 '20 07:07 kianenigma

w3f/research-internal is not public, is this issue internal? I'd like to read the algorithm 2 explanation.

4meta5 avatar Jul 25 '20 23:07 4meta5

Article exists publicly at https://arxiv.org/pdf/2004.12990.pdf

burdges avatar Jul 26 '20 01:07 burdges

@emostov you might be interested in this.

kianenigma avatar Jul 07 '21 16:07 kianenigma

This will be algorithm 2 explained here: https://github.com/w3f/research-internal/blob/master/papers/NPoS_validator_selection.pdf.

We will most likely never want to use this on a chain, because this solver is considerably slow, yet it produces better results and on offchain application/bot might want to use it to improve on-chain solutions.

This is a great first issue for someone to get started with election algorithms. Reading the paper itself worth the time.

I assume that you mean algorithm 1 instead?

georgesdib avatar Apr 04 '22 09:04 georgesdib

No, 2:

Screen Shot 2022-04-04 at 15 06 58

kianenigma avatar Apr 04 '22 13:04 kianenigma

Oh so I think that the arxiv article linked above is not the same as the internal article you mentioned. I don’t have access to the internal article but in the arxiv one I think it’s algorithm 1 as per the screenshot below:

AC18E015-7800-4EC7-A7CE-0E2A88AC74BB

I assume the 2 articles are largely the same?

georgesdib avatar Apr 04 '22 13:04 georgesdib