by mtinkerhess · 13y ago · 0 comments
On the other hand, the category-ordering approach does have the advantage that it's an O(log n) operation, whereas solving the restrictive effect maximization problem is harder: a heuristic greedy search in the solution space might be O(n), and a true solution might be O(n!).