Lurker News

Comments (372) 135 threads

Show all comments

Showing thread 24 of 135

Amorymeltzer1 reply#
We just had our second a few weeks ago, and to figure out some names, we each got a big list of "kind of like this name," totally casual and noncommittal, and combined them. We then used a little Elo[1] rater script I whipped up to compare items, it was fun! Once you get a short list there's no good algorithm to figure it out, but using Elo we both found names we loved that we never would have thought about, and had a fun time doing so.

1: https://en.wikipedia.org/wiki/Elo_rating_system

hamaluik1 reply#
Congrats! Elo rating is a good idea for sorting.. I just implemented an insertion sort to help rank names which works but also feels a bit awkward.
remram1 reply#
Your sort has a way higher complexity than required, in terms of comparisons. It will present the user with way more pairs than the optimal system would, which will make it very hard to sort through a longer list.

You might want to use a merge insertion sort instead. See https://stackoverflow.com/a/53979250/711380
Of course this only works if you assume the order is total, which is actually a good assumption unless multiple people are contributing to the same ranking (in that case use ELO).

hamaluik1 reply#
Hmm, that is a good idea; thanks. I don't have a CS degree so this is one of those areas where I don't know what I don't know.

Continue this thread — 1 reply