{"id":18243973,"url":"https://github.com/akphi/vanilla.knapsack","last_synced_at":"2025-04-08T18:29:18.750Z","repository":{"id":110158949,"uuid":"90539961","full_name":"akphi/vanilla.knapsack","owner":"akphi","description":"Explore different algorithms for Maximum 0-1 Knapsack","archived":false,"fork":false,"pushed_at":"2017-05-08T01:29:26.000Z","size":2897,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T06:04:49.939Z","etag":null,"topics":["3sat","dynamic-programming","fptas","greedy-algorithms","knapsack","np-complete","np-hard"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akphi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-07T14:50:16.000Z","updated_at":"2017-12-06T11:36:57.000Z","dependencies_parsed_at":"2023-09-01T04:15:23.566Z","dependency_job_id":null,"html_url":"https://github.com/akphi/vanilla.knapsack","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"87f6648db6e7e7d82d2a0a5996bd00f600efd90c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akphi%2Fvanilla.knapsack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akphi%2Fvanilla.knapsack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akphi%2Fvanilla.knapsack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akphi%2Fvanilla.knapsack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akphi","download_url":"https://codeload.github.com/akphi/vanilla.knapsack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247901516,"owners_count":21015279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3sat","dynamic-programming","fptas","greedy-algorithms","knapsack","np-complete","np-hard"],"created_at":"2024-11-05T09:04:28.160Z","updated_at":"2025-04-08T18:29:18.724Z","avatar_url":"https://github.com/akphi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vanilla Knapsack and Its Various Flavors\n\n\u003cimg src=\"./images/knapsack.png\" alt = \"The Robber Knows You\" width = \"140px\"/\u003e\n\n## Introduction ##\nThis project explores different approach to the familiar Maximum 0-1 Knapsack problem:\n* Maximum Value Dynamic Programming \n* Minimum Cost Dynamic Programming\n* Greedy 2-Approximation \n* Fully Polynomial-time Approximation Scheme\n\nAs a _side_ experiment, we attempt to reduce 3SAT to Decision 0-1 Knapsack problem.\n\n## Usage\nTo run the experiment, use the build script. You can modify various run settings by modifying [config.properties](config.properties). This script also helps building the report written in R. To modify the rendering of the report, refer to [configs.R](src/report/configs.R). **Make sure that you run the script directly, i.e. launch it from the directory it belongs to.**\n\n```\n./build.sh\n```\n\nThe report comes in 2 different formats: [PDF](document/report.pdf), HTML (gitbook, bookdown). To view the HTML version, you can view this [file](document/index.html) or for better functionality, we recommend using the start script which serves the HTML files at a local server, i.e. [localhost:2302](localhost:2302), on your machine (with this, you can use the search function within the document).\n\n```\n./start.sh\n```\n\nThe default port is 2302, which can be changed by modifying [configs.R](src/report/configs.R).\n\n## Structure\n* **data**: result of the experiments (in CSV and TXT).\n* **document**: the [report](document/report.pdf) on result of the experiments.\n* **src**: source codes for the project (Java and R).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakphi%2Fvanilla.knapsack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakphi%2Fvanilla.knapsack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakphi%2Fvanilla.knapsack/lists"}