Find the optimal solution to the fractional Knapsack problem using Greedy technique:
Number of objects n: 6
Maximum Weight M = 25
Value of each item:
(
To find the optimal solution to the fractional Knapsack problem using a Greedy technique, we need to consider the value-to-weight ratio of each item and select items greedily based on this ratio. The goal is to maximize the total value while not exceeding the maximum weight capacity of the knapsack.
Let's consider the given problem:
Number of objects n: 6
Maximum Weight M = 25
Value of each item and its weight:
Item 1: Value = 10, Weight = 5
Item 2: Value = 5, Weight = 3
Item 3: Value = 15, Weight = 10
Item 4: Value = 7, Weight = 7
Item 5: Value = 6, Weight = 4
Item 6: Value = 18, Weight = 12
To solve the fractional Knapsack problem using a Greedy technique, we will follow these steps:
-
Calculate the value-to-weight ratio for each item:
Item 1: Ratio = Value/Weight = 10/5 = 2
Item 2: Ratio = Value/Weight = 5/3 ≈ 1.67
Item 3: Ratio = Value/Weight = 15/10 = 1.5
Item 4: Ratio = Value/Weight = 7/7 = 1
Item 5: Ratio = Value/Weight = 6/4 = 1.5
Item ___ ______ _________ ____ _______ ________ ______.
________ __________ _______ __________ __________.
_________ _____ ______ _________ ________ _______ _______ _________ __________.
_____ _________ __________ ___ ____ ________.
________ ________ ________ _____ _____ __________ ______ __________ _______.
_____ ____ _________ _________ ___ ___ _____ ___ ____.
_____ ______ _____ _______ __________ ____ __________ ________.
_______ _________ ______ ____ _________ __________ __________ _________ ________ ___ ______ ____.
_______ _________ ________ _____ _______ __________ ___.
__________ _____ _______ _____ _____ _________ ______ ______ _________ ______ _______ _______.
_____ _____ ________ ____ ________ _____.
___ _______ _______ _______ ____ ______ _________ ______ ____.
_______ _________ ________ _________ _______ ___ ________ ______.
_______ _____ _____ __________ _____ _____ __________ _________.
___ ______ _________ ___ __________ ____ ___ ____.
_______ _____ ____ ___ ____ ________ _____.
___ _____ ___ __________ _______ ____.
____ _________ ______ _____ _____ ______ _____.
________ _________ _____ ________ ____ __________ __________.
____ ________ ___ ____ _______ ____ _________ ________ _______.
_______ __________ ____ __________ ______ ___ _____ _______ _________.
____ ____ ________ _______ ________ _______ _______ _________ ____ _________ ________ ________.
______ _____ ______ ______ _________ ____.
____ _______ _________ ________ ____ ______ __________ __________.
_____ _______ _______ __________ ____ ___.
__________ __________ __________ _____ ___.
________ ____ ____ _________ _______ ______ _______.
______ ________ __________ _____ ________ _________ __________ _______ ____ ___ __________ ______.
__________ _____ _____ _____ _____.
______ ___ ________ _______ _________ _________ _____ ______ _______ ______ ____ _____.
__________ __________ ___ _________ __________ _______ ________.
_____ ______ _________ __________ ______ ____ _______ __________.
_______ ________ ____ ________ _______ ___ _______ _____ __________ ______.
____ ______ _______ ___ ____.
____ _________ _____ _________ ____ __________.
_____ ______ _________ _________ ___ _______.
_______ _________ _______ _____ _________ _______ _______ ___ __________ ___.
__________ _______ _______ __________ ___.
____ _____ _____ _______ ___ ______ ___ ______.
________ _______ ________ ____ __________ ___ ___ __________ ______ ___ ________ ________.
___ _________ ____ __________ _______.
_______ _________ ___ _______ __________ ____ __________ _______.
________ ____ ________ ________ ______.
_______ ___ _______ _________ _______ ____ ____.
_________ _____ _________ _____ ______ ____ ____ ___ _____ _______ ____.
____ ___ ____ __________ ______ _____ _____ ______ __________ ______ __________.
________ __________ ____ __________ ________.
____ __________ ______ ______ ______ _____ _____ _____ ____ ___ _________ ___.
______ _________ _____ _________ ____ ______ _____ _____ ________ ______.
_________ ____ _________ _________ ______ ________ ________ __________ __________ _______ ___.
___ _______ __________ _____ _________ ________ ____.
____ ______ ____ ____ _____ _________ _____ ___.
_________ _____ __________ _______ _________ _______ ______.
____ _____ _____ _________ ________ ________ _______.
___ _________ ________ _______ _____ _______ ___ _________ ________ _______ _________.
______ ______ ________ ________ ___ ______ _________ ____ _______.
_________ ___ _______ ____ __________ _______ ______ ______.
_____ _____ ____ ______ ____ __________ ________ ___ __________ ______ ___.
__________ _______ __________ ________ ___ _______ _______ __________ ______ ______ _________.
_______ ______ ___ ____ ________ _____ ___ _____ ________ ____.
______ ___ _____ ______ __________ ________ ________.
______ ________ __________ ___ _____.
__________ _______ _________ _________ _______ _____ __________ _________ ________ _____ __________.
______ ____ ___ ____ ________ _____ _______ __________.
__________ ____ _______ __________ _____ __________ _______.
___ __________ ____ __________ ________ __________.
_____ ___ ________ ___ ________ ____ ________ ________.
___ _________ __________ _______ __________ __________ _______.
_______ ___ ___ ______ _______.
_________ _____ _______ ___ ________ _____ ______ ___.
____ ________ __________ _______ ______.
_____ _____ __________ __________ ____ ________ ____ __________ ____ ____.
_______ _____ _____ _________ _______ _________ _________.
________ _______ __________ _____ ___ _________ ______.
____ _______ _______ ________ ____ ____.
________ _____ ______ __________ _______ __________ ______ ____.
_____ __________ _________ _____ __________ ________ ___.
______ ______ ____ ________ _________ _____ _______ _______.
________ _______ _______ _______ ____ _________ ______ ____.
______ ___ ______ ____ _______ _________.
_______ _____ _________ _____ _________ _____ ______ _________ ____ _____ ____ __________.
_______ ________ _____ __________ ________ __________ _____ ____ ______ ______ __________.
_________ ________ __________ _________ ____ _________ ___ ___ ________ ______.
________ __________ _______ ____ _____ ________.
____ _________ ____ ________ ___ ____ ___ _________ ____ ___ _______.
____ __________ _________ ______ _____ ___ _______.
_______ _________ ______ _______ ______.
_____ ____ ______ ______ _____ ________ __________.
_________ ___ ______ ___ ____ ___ ________ _________ __________ _________ ________.
___ _______ ___ _________ _____ __________ ______ _________ _________.
___ _________ _____ ___ ___ _____ ____.
____ ________ ___ _____ _________ _______ ___ ____.
____ ____ _________ _______ _______ _____ _________ ____ _________ ____.
________ ______ _________ ___ ______ __________ ______.
_________ ___ ___ ________ __________ ___ __________ _____ __________ ___ ____.
________ _______ ______ __________ ___ ____ ________ __________ ________ ________.
___ _________ _____ ______ __________ _________ _____ ____ _________ ____ _____ ________.
__________ _______ __________ _________ _____ _______ ______ _________.
______ ___ _____ ____ ___ _____ _______ ___.
_______ ____ _____ _________ ____.
_____ ______ _________ ___ _________.
Get Full Answer on WhatsApp