In article <·················@mail.bancard.com>,
Andy Vu <···@mail.bancard.com> wrote:
>Can someone point me to anywhere has algorithm or source code about
>Depth-First-Search???
I'll bet you can find the algorithm in Knuth.
Actually, the algorithm is pretty trivial, I think I can put it right here:
If current node has children
then for each child node
recurse on the child node
If the current node satisfies the search criteria
then process it
--
Barry Margolin, ······@bbnplanet.com
GTE Internetworking, Powered by BBN, Cambridge, MA
Support the anti-spam movement; see <http://www.cauce.org/>
Please don't send technical questions directly to me, post them to newsgroups.
In article <·················@mail.bancard.com>,
Andy Vu <···@mail.bancard.com> wrote:
>
> Can someone point me to anywhere has algorithm or source code about
> Depth-First-Search???
One good place is Peter Norvig's "Paradigms of Artificial Intelligence
Programming," section 6.4, "A set of searching tools." See www.norvig.com.
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet