next up previous
Next: STRATEGY DYNAMIC PROGRAMMING Up: No Title Previous: STRATEGY DIVIDE-AND-CONQUER

STRATEGY GREEDY

Solution tex2html_wrap_inline378
for tex2html_wrap_inline380 to n do
SELECT the next input x.
If tex2html_wrap_inline386 Solution is FEASIBLE then
solution tex2html_wrap_inline388 COMBINE(Solution, x)

Examples: Max finding, Selection Sort, and Kruskal's Smallest Edge First algorithm for Minimum Spanning Tree.



Sushil Prasad
Thu May 13 13:06:05 EDT 1999