[PR #1277] [CLOSED] feat: add Knapsacp algorithm in dynamic algorithm #1876

Open
opened 2026-01-29 15:25:37 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/1277
Author: @aa001R
Created: 6/13/2023
Status: Closed

Base: masterHead: dynamic_programming_knapsack


📝 Commits (10+)

  • bb5eb86 feat: add Knapsacp algorithm in dynamic algorithm
  • 817a6e8 feat: add Knapsacp algorithm in dynamic algorithm
  • f7ef265 feat: add Knapsacp algorithm in dynamic algorithm
  • 90f1fa9 updating DIRECTORY.md
  • 516c8b6 feat: add Knapsacp algorithm in dynamic algorithm
  • 11451f9 Update dynamic_programming/knapsack.c
  • f4eb199 Update dynamic_programming/knapsack.c
  • cf2e555 Update dynamic_programming/knapsack.c
  • 4db91d9 Update dynamic_programming/knapsack.c
  • ebb5f12 Update dynamic_programming/knapsack.c

📊 Changes

2 files changed (+229 additions, -0 deletions)

View changed files

📝 DIRECTORY.md (+1 -0)
dynamic_programming/knapsack.c (+228 -0)

📄 Description

Description of Change

Hi. I have added the knapsack(0-1 knapsack)algorithm code to dynamic programming.

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/1277 **Author:** [@aa001R](https://github.com/aa001R) **Created:** 6/13/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dynamic_programming_knapsack` --- ### 📝 Commits (10+) - [`bb5eb86`](https://github.com/TheAlgorithms/C/commit/bb5eb86fa72f0991cd2aa19d94e5b4cf758d94aa) feat: add Knapsacp algorithm in dynamic algorithm - [`817a6e8`](https://github.com/TheAlgorithms/C/commit/817a6e807d04bdf646d64d5a504ec28d92194d8b) feat: add Knapsacp algorithm in dynamic algorithm - [`f7ef265`](https://github.com/TheAlgorithms/C/commit/f7ef265539bcef081c3d0b5311e3e7a8da2f304c) feat: add Knapsacp algorithm in dynamic algorithm - [`90f1fa9`](https://github.com/TheAlgorithms/C/commit/90f1fa9c05152ddf1016878774deb8cf6828d77a) updating DIRECTORY.md - [`516c8b6`](https://github.com/TheAlgorithms/C/commit/516c8b622f438fd2403a6de6ffbd7b6363d46893) feat: add Knapsacp algorithm in dynamic algorithm - [`11451f9`](https://github.com/TheAlgorithms/C/commit/11451f99d4318fd53cd451bf1e67f21c09253666) Update dynamic_programming/knapsack.c - [`f4eb199`](https://github.com/TheAlgorithms/C/commit/f4eb19996d3086bdaa3b909a9322c04f6a346be2) Update dynamic_programming/knapsack.c - [`cf2e555`](https://github.com/TheAlgorithms/C/commit/cf2e5551f0760592137f7dd6979073141379b877) Update dynamic_programming/knapsack.c - [`4db91d9`](https://github.com/TheAlgorithms/C/commit/4db91d9fb23622cb627294c4e3484c7808217ec3) Update dynamic_programming/knapsack.c - [`ebb5f12`](https://github.com/TheAlgorithms/C/commit/ebb5f12823ebcb22995a872b99a4867ff6d3fb52) Update dynamic_programming/knapsack.c ### 📊 Changes **2 files changed** (+229 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+1 -0) ➕ `dynamic_programming/knapsack.c` (+228 -0) </details> ### 📄 Description #### Description of Change Hi. I have added the knapsack(0-1 knapsack)algorithm code to dynamic programming. #### References #### Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:25:37 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1876