What are the 3 fundamental techniques?
Describe the Greedy Method?
Why might we not use a greedy method approach?
How does the greedy method decide what is the best/optimal local decision to make?
Give examples of problems solved by the greedy method
What is the fractional Knapsack Problem?
Have a set S of n items, each item has a positive benefit bi and weight wi
- goal is to find the maximum benefit subset that does not exceed total weight W
- we can take arbitrary fraction xi of each item where each fraction is 0 <= xi <= wi
- the sum of all the fractions must be <= max W
What is the objective function for solving the fractional knapsack problem?
What is the general method for solving the FKP?
What is the greedy element in the greedy method’s solution for the FKP?
What amount do we add to the total benefit after an item is packed?
What is the {0,1} knapsack problem?
Similar to the Fractional knapsack problem, however only a whole item’s weight can be packed into the knapsack
- so an item can only get packed or not rather than a fraction of it
- optimal solution isn’t always found with the greedy method
- can be solved by dynamic programming
What is interval scheduling?
How do we use a greedy algorithm to solve the interval scheduling problem?
What data structure can we use to implement the solution of a greedy algorithm for both the fractional knapsack problem and the interval scheduling problem
What is clustering?
What is the maximum spacing clustering problem?
Given a set of clusters C1, … Ck, where the maximum spacing is defined as the minimum distance between two objects in two different clusters, we want to find a clustering so that the minimum inter cluster distance is as large as possible.
What type of problem is the maximum spacing clustering problem?
How do we solve the maximum spacing clustering problem
What are the steps for solving the maximum spacing clustering problem?