JESS: Efficiency of list processing

2004-07-21 Thread Brett Daniel
I have a problem where I am trying to establish if a String element in a given list A exists in another larger list B. There are obviously a number of ways I can do this in either Jess or in Java. In Jess, I could use the member$ function and iterate through the list B until I have found the elem

RE: JESS: Very simple defquery question

2004-07-21 Thread Alan Moore
Title: RE: JESS: Very simple defquery question JZ, http://herzberg.ca.sandia.gov/jess/docs/61/language.html#queries This section of the manual has both a jess and java version of iterating through the query results - scroll down a bit, if necessary, to see the java code. See also: http:

Re: JESS: Efficiency of list processing

2004-07-21 Thread ejfried
I think Brett Daniel wrote: > I have a problem where I am trying to establish if a String element in a > given list A exists in another larger list B. There are obviously a number > of ways I can do this in either Jess or in Java. In Jess, I could use the > member$ function and iterate through th

RE: JESS: Efficiency of list processing

2004-07-21 Thread Brett Daniel
Thanks for your response, Earnest. It sounds like the most efficient approach for my problem may be to use a standard binary search on a sorted list (List B is loaded and sorted only once on start up) and implement it in Java. How does the new feature request process work? Regards, Brett -O