I have to implement a review system which should work like the following:
This is what i have:
- N users
- M cards
- Every user has created some (number in a range e.g. 3-6) of the M cards
- Every card has stored the ID of its creator
This is what I want:
- A card should be reviewed K times by K random users
- A card should not be reviewed by his creator
- All users should review roughly the same amount of cards
- Nice to have: If possible no user should get two cards of the same user to review
My question is: Is there an algorithm which does this for me or do I have to implement it by myself (if so ideas would be helpful)?
Data is stored in a mysql database, algorithm should be executed on a node.js server (anyway pseudocode algorithm would be good enough).
Performance is not an issue, although it should not take forever.
The outcome should be stored in a mysql table.
Hope someone can help me.
Aucun commentaire:
Enregistrer un commentaire