13

There are a few questions at SO that basically ask the same thing, but with slight differences:

  1. Unique (non-repeating) random numbers in O(1)? - the most popular one, yet defines the problem badly (doesn't even introduce letters for uniformity)
  2. How do you efficiently generate a list of K non-repeating integers between 0 and an upper bound N - defines the problem well, except it doesn't specify if it's combinations or permutations
  3. Algorithm to select a single, random combination of values? - the tag clearly defines it's about combinations, yet the wording is unclear about it which confuses people
  4. Efficiently selecting a set of random elements from a linked list - the same task but specifically for linked lists

Due to the intersections, the answers to them are a mess.

  • Answers to 1. and 2. basically address the same problem
  • Some answers to 1. apply to 3. instead (that's only those I looked into in depth, there may be more)
  • Several answers apply to more than one case (and occur in more than one question - or not), but to various degrees and often have deficiencies when done so - which are never specified

Thus, as a source of knowledge on the subject, these questions as a whole are - likewise - a mess

Shall anything be done about this? Maybe:

  • move answers around
  • merge questions / mark as a duplicate
  • improve formulations in the questions to make them sound more distinct
  • improve answers to add lacking details / add better copies (if the amount of work is perceived to be close enough to writing one's own answer)
  • prominently link to the other questions to encourage those who have a problem better covered by another one to move there
  • something else?
3
  • 4
    And the tag removal was correct—the [duplicate-answers] tag applies only to answers that are exact duplicates of another answer. Please read the tag excerpts before using them. Commented Sep 11, 2016 at 19:26
  • There are at least a few answers that suggest the same, I commented them accordingly. They don't need to be exact clones to a 't', as other users of the tag show (and that would be absurd to require anyway). Your formatting is not only superfluous, with it, titles won't be updated at all - and the links have been made human-readable specifically in case they become broken. Dash not being on the keyboard means it's relatively inconvenient to input which has led to hyphens being a generally accepted tradeoff in network posts, with those who aggressively "fix" them considered Grammar Nazi. Commented Sep 11, 2016 at 20:02
  • Spaces not needed - didn't know or see that, even in English texts. en.wikipedia.org/wiki/Dash#En_dash_versus_em_dash confirms that both versions are in general use (so yes, I was ultimately wrong to require spaces). The "spaceless" version is apparently considered old-fashioned (while not yet obsolete), so I wouldn't use it in my posts anyway. Commented Sep 11, 2016 at 20:19

1 Answer 1

0

Got a general carte blanche here with no more specific ideas.

So:

  • move answers around
    • a moderator stated this is technically impossible
  • merge questions / mark as a duplicate
    • flagged 1 as duplicate of 2 (some assistance required!)
  • improve formulations in the questions to make them sound more distinct
    • improved 2 and 3 to explicitly require permutations and combinations, respectively
  • improve answers to add lacking details / add better copies (if the amount of work is perceived to be close enough to writing one's own answer)
  • prominently link to the other questions to encourage those who have a problem better covered by another one to move there
    • linked 2 and 3 to each other, made a link to 4 from 2 prominently visible
  • something else?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .