I have been working on an interesting problem from my computer science class (not homework). So the question is this: there is a tournament going on. If each player has 2 "stats", strength and stamina, then one player would beat the other if and only if his strength stat and stamina is greater than the other. How would I construct a graph to show this? So each player who dominates another draws an edge in between them.
Clearly there is a O(n^2) algorithm: just test pairwise each player and draw an edge if there is domination. But is there more clever way? For example if player A dominates B and B dominates C, then A dominates C and no testing needed. Thanks.