Forum: Java Jan 12th, 2006 |
| Replies: 15 Views: 14,073 Hi,
by the way DFS has linear growth ( O(n) ), meaning that it is pretty efficient.
I believe that there is no faster algorithm for your problem, in terms of efficiency. |
Forum: Java Jan 11th, 2006 |
| Replies: 15 Views: 14,073 Hi,
I wonder why people think about graphics applications when they read "directed graph". Actually, it is clearly defined what that means.
However, you can detect cycles in directed graphs by... |