RodrigoDeRosa-zz / RETE

Simple RETE algorithm implementation
20 stars 4 forks source link

Algorithm question #7

Open emilian opened 3 months ago

emilian commented 3 months ago

Hi,

It looks like the alpha nodes only go one level deep. Is that correct? Does that mean that the alpha nodes going across represent an "OR" operator? And with each level down it would be "AND"?

Just trying to wrap my head around the algorithm.

Thanks

emilian commented 3 months ago

Also, it seems like the alpha memory stores the nodes. Shouldn't it be the other way around? Each alpha node should be storing the items that match the condition.