René's URL Explorer Experiment


Title: New Genetic Algorithm solution for Knapsack problem by Dang-Hoang-Tung · Pull Request #13234 · TheAlgorithms/Python · GitHub

Open Graph Title: New Genetic Algorithm solution for Knapsack problem by Dang-Hoang-Tung · Pull Request #13234 · TheAlgorithms/Python

X Title: New Genetic Algorithm solution for Knapsack problem by Dang-Hoang-Tung · Pull Request #13234 · TheAlgorithms/Python

Description: All Algorithms implemented in Python. Contribute to TheAlgorithms/Python development by creating an account on GitHub.

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/TheAlgorithms/Python/pull/13234

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9dd128d4-5581-61f7-761a-c25018a091e2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA7EA:267719:16135D2:1E2CF8F:6AFB7C00
html-safe-nonce4f89157b5dd2867f6d6e5ef5530876ab57429c27416b01cdb78881f002d85f39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0VBOjI2NzcxOToxNjEzNUQyOjFFMkNGOEY6NkFGQjdDMDAiLCJ2aXNpdG9yX2lkIjoiNTk1NjgxNjQ4MTA4MDI3ODAxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac82b6633d4e8baf691d8ca26e814ca42727ea18218f446bfbdcc5754e6a6943c3
hovercard-subject-tagpull_request:2888239827
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/TheAlgorithms/Python/13234/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6c11b266e353c1ca5e5fc60448b4e53f0931d047c55bd13104943c95f712b52d/TheAlgorithms/Python/pull/13234
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6c11b266e353c1ca5e5fc60448b4e53f0931d047c55bd13104943c95f712b52d/TheAlgorithms/Python/pull/13234
og:image:altDescribe 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDang-Hoang-Tung
hostnamegithub.com
expected-hostnamegithub.com
Noneef32892d4269fb87b55e81cc4ba8d86e0f16aa28446ffbf46cba8be5179ab188
turbo-cache-controlno-cache
go-importgithub.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id63476337
octolytics-dimension-repository_nwoTheAlgorithms/Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63476337
octolytics-dimension-repository_network_root_nwoTheAlgorithms/Python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebc3703b4dcbe820d1284ef63c88b001c850be25e
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/TheAlgorithms/Python/pull/13234#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13234
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13234
Sign uphttps://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
Reloadhttps://github.com/TheAlgorithms/Python/pull/13234
Reloadhttps://github.com/TheAlgorithms/Python/pull/13234
Reloadhttps://github.com/TheAlgorithms/Python/pull/13234
TheAlgorithmshttps://github.com/TheAlgorithms
Pythonhttps://github.com/TheAlgorithms/Python
Codehttps://github.com/TheAlgorithms/Python
Issues14 (14)https://github.com/TheAlgorithms/Python/issues
Pull requests104 (104)https://github.com/TheAlgorithms/Python/pulls
Discussionshttps://github.com/TheAlgorithms/Python/discussions
Actionshttps://github.com/TheAlgorithms/Python/actions
Projectshttps://github.com/TheAlgorithms/Python/projects
Wikihttps://github.com/TheAlgorithms/Python/wiki
Security and qualityhttps://github.com/TheAlgorithms/Python/security
Insightshttps://github.com/TheAlgorithms/Python/pulse
https://github.com/TheAlgorithms/Python
Dang-Hoang-Tunghttps://github.com/Dang-Hoang-Tung
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
Dang-Hoang-Tung:masterhttps://github.com/Dang-Hoang-Tung/Python/tree/master
Conversationhttps://github.com/TheAlgorithms/Python/pull/13234
Commits28 (28)https://github.com/TheAlgorithms/Python/pull/13234/commits
Checkshttps://github.com/TheAlgorithms/Python/pull/13234/checks
Files changedhttps://github.com/TheAlgorithms/Python/pull/13234/files
New Genetic Algorithm solution for Knapsack problemhttps://github.com/TheAlgorithms/Python/pull/13234#top
Dang-Hoang-Tunghttps://github.com/Dang-Hoang-Tung
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
Dang-Hoang-Tung:masterhttps://github.com/Dang-Hoang-Tung/Python/tree/master
https://github.com/Dang-Hoang-Tung
Dang-Hoang-Tunghttps://github.com/Dang-Hoang-Tung
Oct 5, 2025https://github.com/TheAlgorithms/Python/pull/13234#issue-3484996905
CONTRIBUTING.mdhttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
type hintshttps://docs.python.org/3/library/typing.html
doctestshttps://docs.python.org/3/library/doctest.html
closing keywordhttps://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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, 2025https://github.com/TheAlgorithms/Python/pull/13234#event-20102419582
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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-keeperhttps://github.com/apps/algorithms-keeper
https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302473465
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Contributing guidelineshttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
Project Euler solution guidelineshttps://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 hintshttps://docs.python.org/3/library/typing.html
doctesthttps://docs.python.org/3/library/doctest.html
unittesthttps://docs.python.org/3/library/unittest.html
pytesthttps://docs.pytest.org/en/stable/
algorithms-keeperhttps://github.com/dhruvmanila/algorithms-keeper
please open an issue about it.https://github.com/dhruvmanila/algorithms-keeper/issues
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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, 2025https://github.com/TheAlgorithms/Python/pull/13234#event-20102419831
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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-keeperhttps://github.com/apps/algorithms-keeper
https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302478215
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Contributing guidelineshttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
Project Euler solution guidelineshttps://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 hintshttps://docs.python.org/3/library/typing.html
doctesthttps://docs.python.org/3/library/doctest.html
unittesthttps://docs.python.org/3/library/unittest.html
pytesthttps://docs.pytest.org/en/stable/
algorithms-keeperhttps://github.com/dhruvmanila/algorithms-keeper
please open an issue about it.https://github.com/dhruvmanila/algorithms-keeper/issues
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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-keeperhttps://github.com/apps/algorithms-keeper
https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302479267
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Contributing guidelineshttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
Project Euler solution guidelineshttps://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 hintshttps://docs.python.org/3/library/typing.html
doctesthttps://docs.python.org/3/library/doctest.html
unittesthttps://docs.python.org/3/library/unittest.html
pytesthttps://docs.pytest.org/en/stable/
algorithms-keeperhttps://github.com/dhruvmanila/algorithms-keeper
please open an issue about it.https://github.com/dhruvmanila/algorithms-keeper/issues
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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-keeperhttps://github.com/apps/algorithms-keeper
https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302481638
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Contributing guidelineshttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
Project Euler solution guidelineshttps://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 hintshttps://docs.python.org/3/library/typing.html
doctesthttps://docs.python.org/3/library/doctest.html
unittesthttps://docs.python.org/3/library/unittest.html
pytesthttps://docs.pytest.org/en/stable/
algorithms-keeperhttps://github.com/dhruvmanila/algorithms-keeper
please open an issue about it.https://github.com/dhruvmanila/algorithms-keeper/issues
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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, 2025https://github.com/TheAlgorithms/Python/pull/13234#event-20102510720
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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-keeperhttps://github.com/apps/algorithms-keeper
https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302482007
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Contributing guidelineshttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
Project Euler solution guidelineshttps://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 hintshttps://docs.python.org/3/library/typing.html
doctesthttps://docs.python.org/3/library/doctest.html
unittesthttps://docs.python.org/3/library/unittest.html
pytesthttps://docs.pytest.org/en/stable/
algorithms-keeperhttps://github.com/dhruvmanila/algorithms-keeper
please open an issue about it.https://github.com/dhruvmanila/algorithms-keeper/issues
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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-keeperhttps://github.com/apps/algorithms-keeper
https://github.com/TheAlgorithms/Python/pull/13234#pullrequestreview-3302482502
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Contributing guidelineshttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
Project Euler solution guidelineshttps://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 hintshttps://docs.python.org/3/library/typing.html
doctesthttps://docs.python.org/3/library/doctest.html
unittesthttps://docs.python.org/3/library/unittest.html
pytesthttps://docs.pytest.org/en/stable/
algorithms-keeperhttps://github.com/dhruvmanila/algorithms-keeper
please open an issue about it.https://github.com/dhruvmanila/algorithms-keeper/issues
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
genetic_algorithm/knapsack.pyhttps://github.com/TheAlgorithms/Python/pull/13234/files#diff-4ef7f3a8d5db64df4cc2fbe85850ab883f194f69d3122b829894735c19fe986d
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://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, 2025https://github.com/TheAlgorithms/Python/pull/13234#event-20102523255
https://github.com/Tarannum9623
Tarannum9623https://github.com/Tarannum9623
Oct 6, 2025https://github.com/TheAlgorithms/Python/pull/13234#issuecomment-3371916372
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
#13245https://github.com/TheAlgorithms/Python/pull/13245
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/Dang-Hoang-Tung
Dang-Hoang-Tunghttps://github.com/Dang-Hoang-Tung
force-pushedhttps://github.com/TheAlgorithms/Python/compare/a4f2a203383df165d3762140322b9953d9e0d8c8..0c246e60ad25dc696bfba5fc7f4f95176d49da19
a4f2a20https://github.com/TheAlgorithms/Python/commit/a4f2a203383df165d3762140322b9953d9e0d8c8
0c246e6https://github.com/TheAlgorithms/Python/commit/0c246e60ad25dc696bfba5fc7f4f95176d49da19
Compare https://github.com/TheAlgorithms/Python/compare/a4f2a203383df165d3762140322b9953d9e0d8c8..0c246e60ad25dc696bfba5fc7f4f95176d49da19
October 8, 2025 12:43https://github.com/TheAlgorithms/Python/pull/13234#event-20163093477
https://github.com/Dang-Hoang-Tung
Dang-Hoang-Tunghttps://github.com/Dang-Hoang-Tung
force-pushedhttps://github.com/TheAlgorithms/Python/compare/602d631d0fee85ac97af60e671630fcb2628a49b..ab9070097c990d9f2d1c5ebc70d85a061dd99f76
602d631https://github.com/TheAlgorithms/Python/commit/602d631d0fee85ac97af60e671630fcb2628a49b
ab90700https://github.com/TheAlgorithms/Python/commit/ab9070097c990d9f2d1c5ebc70d85a061dd99f76
Compare https://github.com/TheAlgorithms/Python/compare/602d631d0fee85ac97af60e671630fcb2628a49b..ab9070097c990d9f2d1c5ebc70d85a061dd99f76
October 27, 2025 16:44https://github.com/TheAlgorithms/Python/pull/13234#event-20530826695
Dang-Hoang-Tunghttps://github.com/Dang-Hoang-Tung
November 15, 2025 16:16https://github.com/TheAlgorithms/Python/pull/13234#commits-pushed-f4dc224
https://github.com/Dang-Hoang-Tung
Genetic algorithm for Knapsackhttps://github.com/TheAlgorithms/Python/pull/13234/commits/f4dc224305c81c91824f5cf2ec668fc31e0befc7
f4dc224https://github.com/TheAlgorithms/Python/pull/13234/commits/f4dc224305c81c91824f5cf2ec668fc31e0befc7
https://github.com/Dang-Hoang-Tung
updating DIRECTORY.mdhttps://github.com/TheAlgorithms/Python/pull/13234/commits/e77bd83e9bc501654de834b7cbe6125fdbef4bd0
e77bd83https://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/0611a6c0142187e6be241eae863152d07052b5e6
0611a6chttps://github.com/TheAlgorithms/Python/pull/13234/commits/0611a6c0142187e6be241eae863152d07052b5e6
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Update with doctestshttps://github.com/TheAlgorithms/Python/pull/13234/commits/45f1516d3de1c6f6fc964103dce1bd2d49757e65
45f1516https://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/97f54f21e11961a910b58dc674ccc5673ce854d8
97f54f2https://github.com/TheAlgorithms/Python/pull/13234/commits/97f54f21e11961a910b58dc674ccc5673ce854d8
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Update Genome to genome_thttps://github.com/TheAlgorithms/Python/pull/13234/commits/38c8ac3f211a4f9a4694f47f3a388f3e2221389d
38c8ac3https://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/5c257b7019b3177ea3da6b9429bd586042d9b747
5c257b7https://github.com/TheAlgorithms/Python/pull/13234/commits/5c257b7019b3177ea3da6b9429bd586042d9b747
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Fix variable nameshttps://github.com/TheAlgorithms/Python/pull/13234/commits/2d293273a84d8e9bae5c05acf319e36b80e5fa7c
2d29327https://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/6a13f89004f05f0e8eb61a7b12bb390488a25c2b
6a13f89https://github.com/TheAlgorithms/Python/pull/13234/commits/6a13f89004f05f0e8eb61a7b12bb390488a25c2b
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Add type annotation for run_gahttps://github.com/TheAlgorithms/Python/pull/13234/commits/c893eda4a7415dc0ad124fb786ba8f0e7550db4a
c893edahttps://github.com/TheAlgorithms/Python/pull/13234/commits/c893eda4a7415dc0ad124fb786ba8f0e7550db4a
Dang-Hoang-Tunghttps://github.com/Dang-Hoang-Tung
November 15, 2025 16:16https://github.com/TheAlgorithms/Python/pull/13234#commits-pushed-ddfa479
https://github.com/Dang-Hoang-Tung
Update variable nameshttps://github.com/TheAlgorithms/Python/pull/13234/commits/ddfa4790184070c303527374f5b19c8c1a017efa
ddfa479https://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/a04a1dde917d2402fe9143f4181d9cf93e184bcc
a04a1ddhttps://github.com/TheAlgorithms/Python/pull/13234/commits/a04a1dde917d2402fe9143f4181d9cf93e184bcc
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Update variable nameshttps://github.com/TheAlgorithms/Python/pull/13234/commits/0b72ce9ba7047baa1fb43679f81755d554147cc7
0b72ce9https://github.com/TheAlgorithms/Python/pull/13234/commits/0b72ce9ba7047baa1fb43679f81755d554147cc7
https://github.com/Dang-Hoang-Tung
Fix issueshttps://github.com/TheAlgorithms/Python/pull/13234/commits/6dff6c1f291da327a4a43099021599c7a87411b6
6dff6c1https://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/ff4a50bbffb3a438345032c6ab565c0e8a294a6f
ff4a50bhttps://github.com/TheAlgorithms/Python/pull/13234/commits/ff4a50bbffb3a438345032c6ab565c0e8a294a6f
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Fix issueshttps://github.com/TheAlgorithms/Python/pull/13234/commits/5f8eb7963a403551158d2d4e7297c5cdba333a74
5f8eb79https://github.com/TheAlgorithms/Python/pull/13234/commits/5f8eb7963a403551158d2d4e7297c5cdba333a74
https://github.com/Dang-Hoang-Tung
Fix issueshttps://github.com/TheAlgorithms/Python/pull/13234/commits/36207c672376ebcf0e3cc73e73e12df2bbce7e37
36207c6https://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/c95007c159e59f1a844fc8e58b4f2ee6d2ccea97
c95007chttps://github.com/TheAlgorithms/Python/pull/13234/commits/c95007c159e59f1a844fc8e58b4f2ee6d2ccea97
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Fix type issueshttps://github.com/TheAlgorithms/Python/pull/13234/commits/8b810d0b8c908173de10653d09098fe4c69f1f2c
8b810d0https://github.com/TheAlgorithms/Python/pull/13234/commits/8b810d0b8c908173de10653d09098fe4c69f1f2c
https://github.com/Dang-Hoang-Tung
Fix type issueshttps://github.com/TheAlgorithms/Python/pull/13234/commits/07f07deb3fbf631f4bf3cfef5ad0a751c76e0ab2
07f07dehttps://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/e7a417a325302224feba07bc3ad318b8adfa9b39
e7a417ahttps://github.com/TheAlgorithms/Python/pull/13234/commits/e7a417a325302224feba07bc3ad318b8adfa9b39
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Fix type issueshttps://github.com/TheAlgorithms/Python/pull/13234/commits/3d17060483038c7e21c7e686f4458cd4c72268f2
3d17060https://github.com/TheAlgorithms/Python/pull/13234/commits/3d17060483038c7e21c7e686f4458cd4c72268f2
https://github.com/Dang-Hoang-Tung
fix issueshttps://github.com/TheAlgorithms/Python/pull/13234/commits/8f4c28e1f584ecab0284fffd44500f6fd1acf61f
8f4c28ehttps://github.com/TheAlgorithms/Python/pull/13234/commits/8f4c28e1f584ecab0284fffd44500f6fd1acf61f
https://github.com/Dang-Hoang-Tung
fix issueshttps://github.com/TheAlgorithms/Python/pull/13234/commits/4f9c5081c1f3541f5d0ba0e7961093d4849e6eb8
4f9c508https://github.com/TheAlgorithms/Python/pull/13234/commits/4f9c5081c1f3541f5d0ba0e7961093d4849e6eb8
https://github.com/Dang-Hoang-Tung
Polish uphttps://github.com/TheAlgorithms/Python/pull/13234/commits/833a9af0dbbbc61376291bde604a45be9a8b442b
833a9afhttps://github.com/TheAlgorithms/Python/pull/13234/commits/833a9af0dbbbc61376291bde604a45be9a8b442b
https://github.com/Dang-Hoang-Tung
Polish uphttps://github.com/TheAlgorithms/Python/pull/13234/commits/215849d49112d22ec1876d36215feed8fa0d84d4
215849dhttps://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 hookshttps://github.com/TheAlgorithms/Python/pull/13234/commits/bb4e35b4875d5841e65671972a8550b57143d0a3
bb4e35bhttps://github.com/TheAlgorithms/Python/pull/13234/commits/bb4e35b4875d5841e65671972a8550b57143d0a3
https://pre-commit.cihttps://pre-commit.ci
https://github.com/Dang-Hoang-Tung
Dang-Hoang-Tunghttps://github.com/Dang-Hoang-Tung
force-pushedhttps://github.com/TheAlgorithms/Python/compare/ab9070097c990d9f2d1c5ebc70d85a061dd99f76..bb4e35b4875d5841e65671972a8550b57143d0a3
ab90700https://github.com/TheAlgorithms/Python/commit/ab9070097c990d9f2d1c5ebc70d85a061dd99f76
bb4e35bhttps://github.com/TheAlgorithms/Python/commit/bb4e35b4875d5841e65671972a8550b57143d0a3
Compare https://github.com/TheAlgorithms/Python/compare/ab9070097c990d9f2d1c5ebc70d85a061dd99f76..bb4e35b4875d5841e65671972a8550b57143d0a3
November 15, 2025 16:16https://github.com/TheAlgorithms/Python/pull/13234#event-20962493179
https://github.com/priya-sundaram-dev
priya-sundaram-devhttps://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
cclausshttps://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 masterhttps://github.com/TheAlgorithms/Python/pull/13234/commits/ff74399196ee95e9c4838b4f04f1e9b16fda6ea9
ff74399https://github.com/TheAlgorithms/Python/pull/13234/commits/ff74399196ee95e9c4838b4f04f1e9b16fda6ea9
https://github.com/cclauss
cclausshttps://github.com/cclauss
Oct 1, 2026https://github.com/TheAlgorithms/Python/pull/13234#issuecomment-5927167869
https://hacktoberfest.comhttps://hacktoberfest.com
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/cclauss
cclausshttps://github.com/cclauss
Oct 1, 2026https://github.com/TheAlgorithms/Python/pull/13234#event-32232204180
https://github.co/hiddenchars
https://github.com/TheAlgorithms/Python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://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 pagehttps://github.com/TheAlgorithms/Python/pull/13234
https://github.com/Dang-Hoang-Tung
https://github.com/Tarannum9623
https://github.com/cclauss
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.