unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* sorting by a partial order
@ 2002-10-29 20:33 Paul Jarc
  2002-10-30  3:23 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Jarc @ 2002-10-29 20:33 UTC (permalink / raw)


I have a two-place predicate that defines a partial order (i.e., it is
possible that neither is A less than B nor is B less than A).  I want
to sort a sequence of items according to that predicate, so that if A
occurs before B in the result, then B is not less than A according to
the predicate.
* Can sort, stable-sort, sort-list, etc., deal with a partial order
  for the less procedure, or must it be a full ordering?
* How do these procedures behave if, by mistake, the ordering
  predicate (consistently) returns contradictory results?  (A is less
  than B, and B is less than A.)
* My predicate is actually not quite a partial order because it is not
  transitive.  Is there any existing code for constructing the
  transitive closure of a relation?
TIA


paul


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-11-06 13:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-29 20:33 sorting by a partial order Paul Jarc
2002-10-30  3:23 ` Thien-Thi Nguyen
2002-10-30  6:34   ` Keith Wright
2002-10-30  7:27     ` Thien-Thi Nguyen
2002-10-30  7:43       ` Thien-Thi Nguyen
2002-10-30 17:12     ` Paul Jarc
2002-10-31 10:22       ` rm
2002-10-31 17:41         ` Paul Jarc
2002-11-06 13:12       ` Mikael Djurfeldt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).