Probability, Statistics, Distributed Systems, Software Engineering, Interview Questions.
search space i.e. # only add keys to a partition if the sum of the probabilities # is less than equal to 1/k assignments[i] = j sums[j] += probabilities[i] # a - minimum sum of probabilities for any partition # b - maximum sum of probabilities for any partition # c - best partition with minimum