[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] DFA_MAX_MATCHED too small?

From: Tanguy Urvoy
Subject: Re: [gnugo-devel] DFA_MAX_MATCHED too small?
Date: Mon, 14 Jan 2002 15:05:55 +0100

Teun Burgers wrote:
> To fix this warning the 400 in the next #define
> should be increased to something > 412.
> #define DFA_MAX_MATCHED 8*400
> Perhaps Tanguy has something to say about this
> Teun

DFA_MAX_MATCHED is the size of the array used to store
and sort the indexes of patterns found at 
one position + transformation.

DFA_MAX_MATCHED should be alway greater than patno
to avoid a (very unprobable but unchecked) 
array out of bound.

The optimal value is
max number of patterns + 1

So here 413 will make it, but
with 500 you will stay in peace when adding patterns.
It is still possible to reduce this number for releases.

Tanguy Urvoy

reply via email to

[Prev in Thread] Current Thread [Next in Thread]