in reply to Brute force vs algorithm (PWC # 100)
So you have to visit each node once, but you never need to recurse or try every path.
edit: whoops, I described finding the maximum; thanks LanX. The idea is the same, just pick the smallest each time /edit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Brute force vs algorithm (PWC # 100)
by LanX (Saint) on Feb 15, 2021 at 18:38 UTC | |
|
Re^2: Brute force vs algorithm (PWC # 100)
by LanX (Saint) on Feb 15, 2021 at 19:26 UTC | |
by pryrt (Abbot) on Feb 15, 2021 at 19:56 UTC | |
by LanX (Saint) on Feb 15, 2021 at 20:17 UTC |