Giter Site home page Giter Site logo

Comments (4)

julien-boudry avatar julien-boudry commented on July 30, 2024 1

If it's confusing, a project could be to migrate for permissive philosophy with silent error (can have som advantage) to a more strict error intolerant inputs.

from condorcet.

julien-boudry avatar julien-boudry commented on July 30, 2024

There is an error in your inputs.

Output 2 and 3 are equal and give the same result. But Vote NĀ°3 is invalid.
But output 1 has a different and valid vote NĀ°3, it is valid. So the result is different, and it's normal.

Can you confirm that can I close this issue as not a bug? ;-)

from condorcet.

LiamM32 avatar LiamM32 commented on July 30, 2024

I don't think the program should stop without results when this happens, but there should be warning messages for invalid votes, and it should display a limited number of invalid votes in the output. There should also be a function in the public API to verify that a vote is valid, if there isn't already.

from condorcet.

LiamM32 avatar LiamM32 commented on July 30, 2024

Yes this turned out to be the case. Thank you as I could not find what was the difference between the two sets of votes. When corrected, E is the winner, as the Wikipedia example says should happen.

from condorcet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.