Hey all
          I am a university student studying programming paradigms using
mozart oz and have to solve the N queens problem, however the dead line is
coming up real soon and I've been working as hard as I can, but ultimately
two funerals coupled with the fact I just don't understand Mozart Oz very
well, and I'm really struggling. I'm currently working on a function, called
Queens, which purpose is to solve the N queens problem, however some of the
code particularly the Revise function (which queens heavily relies on) was
provided by my tutor in a previous assignment and I must confess I do not
understand Revise at all.

I have also noticed an issue in revise (since the original function was
using on plain integer values not tuples(?) in the form of row#col), that H
is compared against BoardSize but this will never be true, since BoardSize
is an integer and H is a row#col. I attempted to replace H in this context
with {GetLengthOfList L} but to no avail.

Would anyone be able to explain a few things, perhaps show me where I am
going wrong? I have attached the file I am working so anyone can view it.

Thanks
Neil Munro

Attachment: ICA.oz
Description: Binary data

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

Reply via email to