luker501 / dposvoterrepresentation Goto Github PK
View Code? Open in Web Editor NEWAlgorithms to check that the elected block producers fairly represent the electorate
Algorithms to check that the elected block producers fairly represent the electorate
The Extended Justified Representation Axiom requires each committee to be assigned a score. Assigning a score to a committee naively requires calculating each individual voter score and then summing them up (this is what [this file does](https://github.com/Luker501/DPoSVoterRepresentation/blob/master/PAVScoreOfACommittee.java for the committee with the block producer candidates with indexes defined by the S array on line 14).
We have created a more efficient version of this algorithm, which we describe on the last page of this paper and we implement in this file.
But our efficient version of the algorithm does not return the same score for all of the committees it analyses. For example, if you use the example data provided, our efficient algorithm generates 3 separate committees, the last 2 of which have different scores compared to the naive implementation (see this file for further implementation).
This is mostly likely a rounding issue as we have many doubles and divisions in both files. But I have yet been able to resolve where the issue is, so that both files return the same score for every committee.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.