Hi,

I have a program which is very similar to the 'aligning for a photo' example. My 'people' are scenes in a narrative, each scene is a tuple which describes a scene by type, start time and participants. A scene might require precedent scenes, which have the participants in various different configurations, to have occurred before. In my script, Alignment is a list of integers which represent indexes to the actual scnenes. The order in which the scenes should occur is the order of the list. I am trying to order the scenes so that as many as possible of the precedences are satisfied.

I have functions which create a tuple with 'wild-cards' and can then match this tuple against actual scenes. So my current approach is to loop through each item in 'Alignment', locating the corresponding scene and building 'wild-card' tuples for any precedence required. I then check each preceding item in Alignment to see if the corresponding scene matches any of these tuples. Finally a successful match is converted to a 1, unsuccessful to a 0.

In effect it's similar to aligning people for a photo so that each person has preferences on who should be to the left of them in the line, which may be none or more people.

I'm having enormous problems with my program, but if someone could suggest how the photo example could be modified to add the 'to the right of' preference, I might be able to convert that to suit my purposes.

Thank you in advance for any help

Regards

Mark
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to