caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: caml-list@inria.fr
Subject: dependencies with alternatives
Date: Sat, 01 Jul 2006 14:25:11 +1000	[thread overview]
Message-ID: <1151727911.6032.36.camel@rosella.wigram> (raw)

More a math than ocaml question but .. we know with a dependency graph
we can find the transitive closure of a set of nodes. 

This set represents the conjunction of initial requirements:
"this package requires package A, package B, AND package C".

What happens if a new constructor for alternatives is introduced?
Assume first inclusive or (introducing exclusive or seems equivalent
to introducing negation, i.e. conflicts).

As far as I can see this problem doesn't have a unique solution,
we're looking for a minimal set of nodes such that at least
one alternative of each (reachable) alternation is reachable 
from the root. It's looking remarkably like an Earley style 
algorithm is actually needed to compute such a minimal set.

If conflicts are introduced, it seems even harder.

The model for this thing is no longer a graph, rather at least
a graph labelled with the constructor (all-of, one-of) is required.

Any hints on this?

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


                 reply	other threads:[~2006-07-01  4:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1151727911.6032.36.camel@rosella.wigram \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).