liddiard / slack-meetups

Slack bot that randomly pairs users in a Slack channel for 1:1 meetups. Meet new, interesting people in your company, club, or group!
https://harrisonliddiard.com/project/slack-meetups/
MIT License
18 stars 7 forks source link

Prevent repeat pairings with the last N people you matched with #8

Closed liddiard closed 4 years ago

liddiard commented 4 years ago

N = 3 is probably reasonable. If a pairing would be a duplicate of one of a person's last N pairings, exclude it as a possibility. See discussion and some potential algorithms on this StackOverflow thread: https://stackoverflow.com/questions/3046482/random-pairings-that-dont-repeat.

Considerations

liddiard commented 4 years ago

improved matching using greedy "set difference" algorithm in: c0a74d4eabdb9c950d844b350c3d229faf821a6e it's not "perfect," but it should be a huge improvement in reducing the probability for duplicate pairings