# Tag Info

The question in its current form has a simple answer: This is an instance of the Assignment Problem, or equivalently of finding a minimum-weight matching in a bipartite graph. Decide on a cost function $f(x, y)$ to measure the dissimilarity between two given RGB tuples $x$ and $y$ -- that is, this function should assign identical RGB tuples a cost of zero, ...