Figure 4: Flowchart for object replacement using 0-1 knapsack concept.