mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-07-14 13:06:37 +00:00
[PR #984] [CLOSED] feat: knapsack algorithm #1522
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/984
Author: @whoisdinanath
Created: 10/3/2022
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
035ddcafeat: knapsack algorithm📊 Changes
1 file changed (+35 additions, -0 deletions)
View changed files
➕
greedy_approach/knapsack.c(+35 -0)📄 Description
Description of Change
The Knapsack Problem is also called as rucksack problem. A basic C program is written to solve knapsack problem given with set of items each with a mass and value. Describe every individual item included in a collection so that total weight is less than or equal to a given limit and total value is as large as possible. A fixed size knapsack is defined at the beginning. It must fill with most valuable items.
References
Checklist
Notes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.