| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:9dd128d4-5581-61f7-761a-c25018a091e2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A7EA:267719:16135D2:1E2CF8F:6AFB7C00 |
| html-safe-nonce | 4f89157b5dd2867f6d6e5ef5530876ab57429c27416b01cdb78881f002d85f39 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0VBOjI2NzcxOToxNjEzNUQyOjFFMkNGOEY6NkFGQjdDMDAiLCJ2aXNpdG9yX2lkIjoiNTk1NjgxNjQ4MTA4MDI3ODAxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 82b6633d4e8baf691d8ca26e814ca42727ea18218f446bfbdcc5754e6a6943c3 |
| hovercard-subject-tag | pull_request:2888239827 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/TheAlgorithms/Python/13234/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/6c11b266e353c1ca5e5fc60448b4e53f0931d047c55bd13104943c95f712b52d/TheAlgorithms/Python/pull/13234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c11b266e353c1ca5e5fc60448b4e53f0931d047c55bd13104943c95f712b52d/TheAlgorithms/Python/pull/13234 |
| og:image:alt | Describe your change:
Adding a genetic algorithm solution for the knapsack problem, one of the famous combinatorial optimization problems.
It is commonly known that combinatorial optimization probl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Dang-Hoang-Tung |
| hostname | github.com |
| expected-hostname | github.com |
| None | ef32892d4269fb87b55e81cc4ba8d86e0f16aa28446ffbf46cba8be5179ab188 |
| turbo-cache-control | no-cache |
| go-import | github.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63476337 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bc3703b4dcbe820d1284ef63c88b001c850be25e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/TheAlgorithms/Python/pull/13234#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13234 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13234 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=TheAlgorithms%2FPython |
| Reload | https://github.com/TheAlgorithms/Python/pull/13234 |
| Reload | https://github.com/TheAlgorithms/Python/pull/13234 |
| Reload | https://github.com/TheAlgorithms/Python/pull/13234 |
| TheAlgorithms | https://github.com/TheAlgorithms |
| Python | https://github.com/TheAlgorithms/Python |
| Code | https://github.com/TheAlgorithms/Python |
| Issues14 (14) | https://github.com/TheAlgorithms/Python/issues |
| Pull requests104 (104) | https://github.com/TheAlgorithms/Python/pulls |
| Discussions | https://github.com/TheAlgorithms/Python/discussions |
| Actions | https://github.com/TheAlgorithms/Python/actions |
| Projects | https://github.com/TheAlgorithms/Python/projects |
| Wiki | https://github.com/TheAlgorithms/Python/wiki |
| Security and quality | https://github.com/TheAlgorithms/Python/security |
| Insights | https://github.com/TheAlgorithms/Python/pulse |
| https://github.com/TheAlgorithms/Python |
| Dang-Hoang-Tung | https://github.com/Dang-Hoang-Tung |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| Dang-Hoang-Tung:master | https://github.com/Dang-Hoang-Tung/Python/tree/master |
| Conversation | https://github.com/TheAlgorithms/Python/pull/13234 |
| Commits28 (28) | https://github.com/TheAlgorithms/Python/pull/13234/commits |
| Checks | https://github.com/TheAlgorithms/Python/pull/13234/checks |
| Files changed | https://github.com/TheAlgorithms/Python/pull/13234/files |
| New Genetic Algorithm solution for Knapsack problem | https://github.com/TheAlgorithms/Python/pull/13234#top |
| Dang-Hoang-Tung | https://github.com/Dang-Hoang-Tung |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| Dang-Hoang-Tung:master | https://github.com/Dang-Hoang-Tung/Python/tree/master |
|
| https://github.com/Dang-Hoang-Tung |
| Dang-Hoang-Tung | https://github.com/Dang-Hoang-Tung |
| Oct 5, 2025 | https://github.com/TheAlgorithms/Python/pull/13234#issue-3484996905 |
| CONTRIBUTING.md | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| type hints | https://docs.python.org/3/library/typing.html |
| doctests | https://docs.python.org/3/library/doctest.html |
| closing keyword | https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
require descriptive names
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22 |
|
require tests
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20tests%22 |
|
require type hints
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20type%20hints%22 |
| Oct 5, 2025 | https://github.com/TheAlgorithms/Python/pull/13234#event-20102419582 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Oct 5, 2025
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302473465 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/13234/files |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302473465 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
|
tests are failing
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22 |
|
require tests
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20tests%22 |
| Oct 5, 2025 | https://github.com/TheAlgorithms/Python/pull/13234#event-20102419831 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Oct 5, 2025
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302478215 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/13234/files |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302478215 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Oct 5, 2025
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302479267 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/13234/files |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302479267 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Oct 5, 2025
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302481638 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/13234/files |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302481638 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
require type hints
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20type%20hints%22 |
| Oct 5, 2025 | https://github.com/TheAlgorithms/Python/pull/13234#event-20102510720 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Oct 5, 2025
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302482007 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/13234/files |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302482007 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Oct 5, 2025
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302482502 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/13234/files |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302482502 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| genetic_algorithm/knapsack.py | https://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
tests are failing
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22 |
|
require descriptive names
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22 |
|
tests are failing
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22 |
| Oct 5, 2025 | https://github.com/TheAlgorithms/Python/pull/13234#event-20102523255 |
| https://github.com/Tarannum9623 |
| Tarannum9623 | https://github.com/Tarannum9623 |
| Oct 6, 2025 | https://github.com/TheAlgorithms/Python/pull/13234#issuecomment-3371916372 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| #13245 | https://github.com/TheAlgorithms/Python/pull/13245 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/Dang-Hoang-Tung |
| Dang-Hoang-Tung | https://github.com/Dang-Hoang-Tung |
| force-pushed | https://github.com/TheAlgorithms/Python/compare/a4f2a203383df165d3762140322b9953d9e0d8c8..0c246e60ad25dc696bfba5fc7f4f95176d49da19 |
| a4f2a20 | https://github.com/TheAlgorithms/Python/commit/a4f2a203383df165d3762140322b9953d9e0d8c8 |
| 0c246e6 | https://github.com/TheAlgorithms/Python/commit/0c246e60ad25dc696bfba5fc7f4f95176d49da19 |
|
Compare
| https://github.com/TheAlgorithms/Python/compare/a4f2a203383df165d3762140322b9953d9e0d8c8..0c246e60ad25dc696bfba5fc7f4f95176d49da19 |
| October 8, 2025 12:43 | https://github.com/TheAlgorithms/Python/pull/13234#event-20163093477 |
| https://github.com/Dang-Hoang-Tung |
| Dang-Hoang-Tung | https://github.com/Dang-Hoang-Tung |
| force-pushed | https://github.com/TheAlgorithms/Python/compare/602d631d0fee85ac97af60e671630fcb2628a49b..ab9070097c990d9f2d1c5ebc70d85a061dd99f76 |
| 602d631 | https://github.com/TheAlgorithms/Python/commit/602d631d0fee85ac97af60e671630fcb2628a49b |
| ab90700 | https://github.com/TheAlgorithms/Python/commit/ab9070097c990d9f2d1c5ebc70d85a061dd99f76 |
|
Compare
| https://github.com/TheAlgorithms/Python/compare/602d631d0fee85ac97af60e671630fcb2628a49b..ab9070097c990d9f2d1c5ebc70d85a061dd99f76 |
| October 27, 2025 16:44 | https://github.com/TheAlgorithms/Python/pull/13234#event-20530826695 |
| Dang-Hoang-Tung | https://github.com/Dang-Hoang-Tung |
| November 15, 2025 16:16 | https://github.com/TheAlgorithms/Python/pull/13234#commits-pushed-f4dc224 |
|
| https://github.com/Dang-Hoang-Tung |
| Genetic algorithm for Knapsack | https://github.com/TheAlgorithms/Python/pull/13234/commits/f4dc224305c81c91824f5cf2ec668fc31e0befc7 |
| f4dc224 | https://github.com/TheAlgorithms/Python/pull/13234/commits/f4dc224305c81c91824f5cf2ec668fc31e0befc7 |
|
| https://github.com/Dang-Hoang-Tung |
| updating DIRECTORY.md | https://github.com/TheAlgorithms/Python/pull/13234/commits/e77bd83e9bc501654de834b7cbe6125fdbef4bd0 |
| e77bd83 | https://github.com/TheAlgorithms/Python/pull/13234/commits/e77bd83e9bc501654de834b7cbe6125fdbef4bd0 |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/0611a6c0142187e6be241eae863152d07052b5e6 |
| 0611a6c | https://github.com/TheAlgorithms/Python/pull/13234/commits/0611a6c0142187e6be241eae863152d07052b5e6 |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/Dang-Hoang-Tung |
| Update with doctests | https://github.com/TheAlgorithms/Python/pull/13234/commits/45f1516d3de1c6f6fc964103dce1bd2d49757e65 |
| 45f1516 | https://github.com/TheAlgorithms/Python/pull/13234/commits/45f1516d3de1c6f6fc964103dce1bd2d49757e65 |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/97f54f21e11961a910b58dc674ccc5673ce854d8 |
| 97f54f2 | https://github.com/TheAlgorithms/Python/pull/13234/commits/97f54f21e11961a910b58dc674ccc5673ce854d8 |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/Dang-Hoang-Tung |
| Update Genome to genome_t | https://github.com/TheAlgorithms/Python/pull/13234/commits/38c8ac3f211a4f9a4694f47f3a388f3e2221389d |
| 38c8ac3 | https://github.com/TheAlgorithms/Python/pull/13234/commits/38c8ac3f211a4f9a4694f47f3a388f3e2221389d |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/5c257b7019b3177ea3da6b9429bd586042d9b747 |
| 5c257b7 | https://github.com/TheAlgorithms/Python/pull/13234/commits/5c257b7019b3177ea3da6b9429bd586042d9b747 |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/Dang-Hoang-Tung |
| Fix variable names | https://github.com/TheAlgorithms/Python/pull/13234/commits/2d293273a84d8e9bae5c05acf319e36b80e5fa7c |
| 2d29327 | https://github.com/TheAlgorithms/Python/pull/13234/commits/2d293273a84d8e9bae5c05acf319e36b80e5fa7c |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/6a13f89004f05f0e8eb61a7b12bb390488a25c2b |
| 6a13f89 | https://github.com/TheAlgorithms/Python/pull/13234/commits/6a13f89004f05f0e8eb61a7b12bb390488a25c2b |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/Dang-Hoang-Tung |
| Add type annotation for run_ga | https://github.com/TheAlgorithms/Python/pull/13234/commits/c893eda4a7415dc0ad124fb786ba8f0e7550db4a |
| c893eda | https://github.com/TheAlgorithms/Python/pull/13234/commits/c893eda4a7415dc0ad124fb786ba8f0e7550db4a |
| Dang-Hoang-Tung | https://github.com/Dang-Hoang-Tung |
| November 15, 2025 16:16 | https://github.com/TheAlgorithms/Python/pull/13234#commits-pushed-ddfa479 |
|
| https://github.com/Dang-Hoang-Tung |
| Update variable names | https://github.com/TheAlgorithms/Python/pull/13234/commits/ddfa4790184070c303527374f5b19c8c1a017efa |
| ddfa479 | https://github.com/TheAlgorithms/Python/pull/13234/commits/ddfa4790184070c303527374f5b19c8c1a017efa |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/a04a1dde917d2402fe9143f4181d9cf93e184bcc |
| a04a1dd | https://github.com/TheAlgorithms/Python/pull/13234/commits/a04a1dde917d2402fe9143f4181d9cf93e184bcc |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/Dang-Hoang-Tung |
| Update variable names | https://github.com/TheAlgorithms/Python/pull/13234/commits/0b72ce9ba7047baa1fb43679f81755d554147cc7 |
| 0b72ce9 | https://github.com/TheAlgorithms/Python/pull/13234/commits/0b72ce9ba7047baa1fb43679f81755d554147cc7 |
|
| https://github.com/Dang-Hoang-Tung |
| Fix issues | https://github.com/TheAlgorithms/Python/pull/13234/commits/6dff6c1f291da327a4a43099021599c7a87411b6 |
| 6dff6c1 | https://github.com/TheAlgorithms/Python/pull/13234/commits/6dff6c1f291da327a4a43099021599c7a87411b6 |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/ff4a50bbffb3a438345032c6ab565c0e8a294a6f |
| ff4a50b | https://github.com/TheAlgorithms/Python/pull/13234/commits/ff4a50bbffb3a438345032c6ab565c0e8a294a6f |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/Dang-Hoang-Tung |
| Fix issues | https://github.com/TheAlgorithms/Python/pull/13234/commits/5f8eb7963a403551158d2d4e7297c5cdba333a74 |
| 5f8eb79 | https://github.com/TheAlgorithms/Python/pull/13234/commits/5f8eb7963a403551158d2d4e7297c5cdba333a74 |
|
| https://github.com/Dang-Hoang-Tung |
| Fix issues | https://github.com/TheAlgorithms/Python/pull/13234/commits/36207c672376ebcf0e3cc73e73e12df2bbce7e37 |
| 36207c6 | https://github.com/TheAlgorithms/Python/pull/13234/commits/36207c672376ebcf0e3cc73e73e12df2bbce7e37 |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/c95007c159e59f1a844fc8e58b4f2ee6d2ccea97 |
| c95007c | https://github.com/TheAlgorithms/Python/pull/13234/commits/c95007c159e59f1a844fc8e58b4f2ee6d2ccea97 |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/Dang-Hoang-Tung |
| Fix type issues | https://github.com/TheAlgorithms/Python/pull/13234/commits/8b810d0b8c908173de10653d09098fe4c69f1f2c |
| 8b810d0 | https://github.com/TheAlgorithms/Python/pull/13234/commits/8b810d0b8c908173de10653d09098fe4c69f1f2c |
|
| https://github.com/Dang-Hoang-Tung |
| Fix type issues | https://github.com/TheAlgorithms/Python/pull/13234/commits/07f07deb3fbf631f4bf3cfef5ad0a751c76e0ab2 |
| 07f07de | https://github.com/TheAlgorithms/Python/pull/13234/commits/07f07deb3fbf631f4bf3cfef5ad0a751c76e0ab2 |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/e7a417a325302224feba07bc3ad318b8adfa9b39 |
| e7a417a | https://github.com/TheAlgorithms/Python/pull/13234/commits/e7a417a325302224feba07bc3ad318b8adfa9b39 |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/Dang-Hoang-Tung |
| Fix type issues | https://github.com/TheAlgorithms/Python/pull/13234/commits/3d17060483038c7e21c7e686f4458cd4c72268f2 |
| 3d17060 | https://github.com/TheAlgorithms/Python/pull/13234/commits/3d17060483038c7e21c7e686f4458cd4c72268f2 |
|
| https://github.com/Dang-Hoang-Tung |
| fix issues | https://github.com/TheAlgorithms/Python/pull/13234/commits/8f4c28e1f584ecab0284fffd44500f6fd1acf61f |
| 8f4c28e | https://github.com/TheAlgorithms/Python/pull/13234/commits/8f4c28e1f584ecab0284fffd44500f6fd1acf61f |
|
| https://github.com/Dang-Hoang-Tung |
| fix issues | https://github.com/TheAlgorithms/Python/pull/13234/commits/4f9c5081c1f3541f5d0ba0e7961093d4849e6eb8 |
| 4f9c508 | https://github.com/TheAlgorithms/Python/pull/13234/commits/4f9c5081c1f3541f5d0ba0e7961093d4849e6eb8 |
|
| https://github.com/Dang-Hoang-Tung |
| Polish up | https://github.com/TheAlgorithms/Python/pull/13234/commits/833a9af0dbbbc61376291bde604a45be9a8b442b |
| 833a9af | https://github.com/TheAlgorithms/Python/pull/13234/commits/833a9af0dbbbc61376291bde604a45be9a8b442b |
|
| https://github.com/Dang-Hoang-Tung |
| Polish up | https://github.com/TheAlgorithms/Python/pull/13234/commits/215849d49112d22ec1876d36215feed8fa0d84d4 |
| 215849d | https://github.com/TheAlgorithms/Python/pull/13234/commits/215849d49112d22ec1876d36215feed8fa0d84d4 |
|
| https://github.com/marketplace/pre-commit-ci |
|
| https://github.com/Dang-Hoang-Tung |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/13234/commits/bb4e35b4875d5841e65671972a8550b57143d0a3 |
| bb4e35b | https://github.com/TheAlgorithms/Python/pull/13234/commits/bb4e35b4875d5841e65671972a8550b57143d0a3 |
| https://pre-commit.ci | https://pre-commit.ci |
| https://github.com/Dang-Hoang-Tung |
| Dang-Hoang-Tung | https://github.com/Dang-Hoang-Tung |
| force-pushed | https://github.com/TheAlgorithms/Python/compare/ab9070097c990d9f2d1c5ebc70d85a061dd99f76..bb4e35b4875d5841e65671972a8550b57143d0a3 |
| ab90700 | https://github.com/TheAlgorithms/Python/commit/ab9070097c990d9f2d1c5ebc70d85a061dd99f76 |
| bb4e35b | https://github.com/TheAlgorithms/Python/commit/bb4e35b4875d5841e65671972a8550b57143d0a3 |
|
Compare
| https://github.com/TheAlgorithms/Python/compare/ab9070097c990d9f2d1c5ebc70d85a061dd99f76..bb4e35b4875d5841e65671972a8550b57143d0a3 |
| November 15, 2025 16:16 | https://github.com/TheAlgorithms/Python/pull/13234#event-20962493179 |
| https://github.com/priya-sundaram-dev |
| priya-sundaram-dev | https://github.com/priya-sundaram-dev |
|
Sep 5, 2026
| https://github.com/TheAlgorithms/Python/pull/13234#ref-issue-5242842322 |
|
priya-sundaram-dev as a triager?
#15081
| https://github.com/TheAlgorithms/Python/issues/15081 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
|
Sep 13, 2026
| https://github.com/TheAlgorithms/Python/pull/13234#ref-issue-5437954679 |
|
Open Pull Request File Map
#15310
| https://github.com/TheAlgorithms/Python/issues/15310 |
|
| https://github.com/cclauss |
| Merge branch 'master' into master | https://github.com/TheAlgorithms/Python/pull/13234/commits/ff74399196ee95e9c4838b4f04f1e9b16fda6ea9 |
| ff74399 | https://github.com/TheAlgorithms/Python/pull/13234/commits/ff74399196ee95e9c4838b4f04f1e9b16fda6ea9 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
| Oct 1, 2026 | https://github.com/TheAlgorithms/Python/pull/13234#issuecomment-5927167869 |
| https://hacktoberfest.com | https://hacktoberfest.com |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
| Oct 1, 2026 | https://github.com/TheAlgorithms/Python/pull/13234#event-32232204180 |
| https://github.co/hiddenchars |
| https://github.com/TheAlgorithms/Python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13234 |
|
| https://github.com/apps/algorithms-keeper |
|
algorithms-keeper[bot]
| https://github.com/apps/algorithms-keeper |
|
| https://github.com/TheAlgorithms/Python/pull/13234/files/2f2f012a6984fb5bc4633153ad3fdddfc3a591ba |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13234 |
|
| https://github.com/Dang-Hoang-Tung |
|
| https://github.com/Tarannum9623 |
|
| https://github.com/cclauss |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |