Question: 1 . The Knapsack problem is an example of _ _ _ _ _ _ _ _ _ _ _ _ a ) Greedy algorithm
The Knapsack problem is an example of
a Greedy algorithm
bD dynamic programming
cD dynamic programming
d Divide and conquer
Which of the following methods can be used to solve the Knapsack problem?
a Brute force algorithm
b Recursion
c Dynamic programming
d Brute force, Recursion and Dynamic Programming
You are given a knapsack that can carry a maximum weight of There are items
with weights and values What is the maximum
value of the items you can carry using the knapsack?
a
b
c
d
What will be the number of passes to sort the elements using insertion sort?
a
b
c
d
Which of the following real time examples is based on insertion sort?
a arranging a pack of playing cards
b database scenarios and distributes scenarios
c arranging books on a library shelf
d realtime systems
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
