Finding maximal elements of a poset's subset
问题 The problem is the following: Given a poset's subset S find the maximal elements of S. For example consider the hass diagram of the poset in http://ndp.jct.ac.il/tutorials/Discrete/node34.html. Given a subset of it ex: {12, 2, 8} the maximal elements are 12 and 8. I do not know if I describe precisly the problem. I think the problem might involves some sorting or computation of transitive closure but I am a little confused. Could you give me some approach for a fast algorithm? I would like to