[mercury-users] Memory Query
Ralph Becket
rafe at cs.mu.OZ.AU
Tue Jan 15 12:52:49 AEDT 2002
Daryl Essam, Tuesday, 15 January 2002:
>
> I am developing a genetic programming problem in Mercury. The heart
> of it is a 2000-element array of binary trees. The trees have a depth
> of 10, and hence can have up to 1024 nodes. The trees are represented
> as simple terms, i.e. plus(minus(3,6),add(4,7)).
>
> The program works successfully with a size 2000 array, but with a depth
> of 6. It also works successfully with a size 100 array, with a depth of
> 10. However anythin larger then about a 110 size array with trees of
> depth 10 give me a:-
>
> Mercury runtime: array__set: array index out of bounds
>
> error. Any ideas on what the problem is??? I assume its not a trivial
> programming problem.. after all the program works with both a 2000
> element array, and also with depth 10 trees - just not at the same
> time.
My first guess is that this is a bug in your code. If you can post it
I'll take a look and see if I can spot the problem.
- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list