guile-devel
[Top][All Lists]
Advanced

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

Re: Will guile support R7RS terminating "equal?" in the presence of cycl


From: William ML Leslie
Subject: Re: Will guile support R7RS terminating "equal?" in the presence of cycle?
Date: Mon, 10 Sep 2012 19:21:34 +1000

On 9 September 2012 13:41, Mark H Weaver <address@hidden> wrote:
> Another option is to use the method described in "Efficient Nondestructive
> Equality Checking for Trees and Graphs" by Adams and Dybvig.
>
> http://www.cs.indiana.edu/~dyb/pubs/equal.pdf
>
>     Mark

The 'interleave' algorithm there looks excellent.  One possible
refinement: the 'stack' of items currently being examined is probably
a good hint as to which slots may have cycles, so it could be useful
to reify that stack, at least the portion of it that has not been
checked yet.

-- 
William Leslie



reply via email to

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