3 ms·
Interesting. Here we don’t care about duplicates though, except that they may indicate we had yet to arrive at the optimal solution. But it’s possible that you
by hinkley 5y ago
Interesting. Here we don’t care about duplicates though, except that they may indicate we had yet to arrive at the optimal solution.
But it’s possible that you could accidentally make duplicates of one word by pairing others. For a single copy you can omit that word. But if it appears multiple times that represents a compression opportunity that a shuffle to avoid it might destroy.