This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question on tree-walking and mutually-recursive types


riphack@web.de (Locke)  wrote on 29.06.04 in <200406291641.16989.riphack@web.de>:

> What speaks against tpological sort? it is the same problem as in directed
> graphs and topological sort runs in O(number of nodes) which should be the
> fastest.

Tortoise&Hare *also* runs in O(number of nodes), and I'm pretty sure the  
constant is smaller than sorting.

MfG Kai


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]