Q1.EASY
What is the time complexity of the Knapsack algorithm using the Greedy method (fractional knapsack)?
The greedy fractional knapsack algorithm sorts items by value/weight ratio, which takes time, and then fills the knapsack in time. So the overall time complexity is .