|
|
|
|
|
by zeteo
5455 days ago
|
|
A greedy algorithm is an algorithm that makes locally optimal choices. The classic example, if you've taken an algorithms course, is the travelling salesman problem with the nearest neighbor heuristic. This starts at an arbitrary node, and will usually generate different solutions based on the node that is chosen to start at. The very presence of the "internal heuristic" that you mention is usually enough to make the algorithm greedy. Otherwise, thanks for being nice, and try to take less offense at what people say on the Internet. |
|
That is most likely a wrong assumption. Greedy algorithms usually do not find globally optimal solutions, yet the people solving these problems are finding -the- solution. That is enough to suggest that the heuristic people are using is much more complex than merely choosing local optimums.