Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a greedy algorithm?
Think about how it approaches decision making.
Name one algorithm that follows a greedy approach.
Consider what you learned about minimum spanning trees.
What is one key characteristic of greedy algorithms?
Consider how they operate step-by-step.
True or False: Prim’s algorithm is used to find the shortest path in graphs.
Remember the distinction between paths and trees.
Design an example where the use of a greedy algorithm fails to yield the optimal solution. Describe the algorithm and the scenario.
Think about job selection in terms of maximizing rewards versus minimizing time.
Using the interval scheduling algorithm, outline the procedure step-by-step for a given set of time intervals. Explain the outcome.
Keep track of finish times at each stage.
5 more questions in this section. Enroll free to practise them all.
Enroll free