You are here: Re: Code snippet for recursive file reading? « All PHP « IT news, forums, messages
Re: Code snippet for recursive file reading?

Posted by ZeldorBlat on 10/13/20 11:34

Curtis wrote:

> The only way I can presently see to solve the problem is
> with linked lists, and backwalk the link paths when, say, E
> calls B. But I've never worked on this issue before, so
> maybe there's a simpler algorithm that hasn't occurred to
> me?
>

Well, you basically just described the best algorithm out there. By
doing a depth first search of the tree you can detect cycles pretty
easily.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация