<< Prev | - Up - |
This last point concerns a more specific issue: practically, how does one go about modeling a complex problem in a way that benefits from concurrent constraint programming? There is, of course, no simple or easy answer to this question. However, we illustrate various modelization techniques on the following two issues:
the treatment of dependency structure
the treatment of word order
To take advantage of constraint propagation, it is desirable to state global truths. Partial functions have the disadvantage that you can only state properties at points where they are defined. For example, the features of a feature structure are often regarded as partial functions.
We demonstrate a nice trick to turn partial functions into total functions:
Given a partial functionreplace it by the total function
where is of cardinality at most 1.
if
is defined at
, else
. Thus
will map to the empty set at points where
was not previously defined, and to a singleton set elsewhere.
<< Prev | - Up - |