{"id":20640166,"url":"https://github.com/wondervictor/memsteve","last_synced_at":"2026-04-22T06:03:34.257Z","repository":{"id":71143940,"uuid":"93129861","full_name":"wondervictor/MemSteve","owner":"wondervictor","description":"Course Project of Information Theory","archived":false,"fork":false,"pushed_at":"2017-06-12T08:52:25.000Z","size":131,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T11:38:29.427Z","etag":null,"topics":["huffman-coding","information-theory","shannon"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wondervictor.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-06-02T05:22:31.000Z","updated_at":"2017-11-09T07:16:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"97b4ae2b-ac01-4321-bc98-baf50828752d","html_url":"https://github.com/wondervictor/MemSteve","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wondervictor/MemSteve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wondervictor%2FMemSteve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wondervictor%2FMemSteve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wondervictor%2FMemSteve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wondervictor%2FMemSteve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wondervictor","download_url":"https://codeload.github.com/wondervictor/MemSteve/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wondervictor%2FMemSteve/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32123604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["huffman-coding","information-theory","shannon"],"created_at":"2024-11-16T15:28:12.712Z","updated_at":"2026-04-22T06:03:34.236Z","avatar_url":"https://github.com/wondervictor.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MemSteve\n\n\u003e Course Project for Infomation Theory. To commemorate the commencement which Steve Jobs delivered in 2005 Stanford University.\n\n## Introduction\n\n* **Compute the Frequency of each letter/punctuation/space**\n\n* **Compute the Entropy of the passage**\n\n* **Compression Methods Implementation**\n\n\t* Huffmen Coding\n\t* Shannon Coding\n\t* Shannon-Fano-Elias Coding\n\n## Files\n\n* **include** directory for header files\n\n\t* **Counter.h**: Compute the frequency of elementes and calculate entropy\n\t* **Encoding.h**: Algotithms, Encoder Class\n\t* **Common.h**: timer\n\n* **src** directory for source files (implementation)\n\n\t* Counter.cpp\n\t* Encoding.cpp\n\t* Common.cpp\n\n* **test**\n\n\t* **Steve.txt** origin txt\n\t* **xxxxxcode.csv** code word for each letter (The first line is a `\\n` character)\n\t* **xxxx.dat** encoded txt\n\t* **xxxxdecode.txt** content by decoded the compressed string.\n\n## Usage\n\nYou need to install CMake or use Makefile directly.\n\n\n````\ncd MemSteve\ncmake .\nmake\n./MemSteve\n````\n\n**ATTENTION**\n\nif you run this source code, you need to specify the path of the whole project!!\n\nNotice the warning in the `main.cpp`\n\n````\n#warning please change the path when you run in your own computer\nstd::string path = \"/Users/vic/Dev/Alg/InfomationTheory/MemSteve/test/\";\nint m = wordCounter.readFile(path+\"Steve.txt\",s);\n````\n\nyou need to change the `path`!\n\n## Output\n\n\u003e output files are in the **test** directory\n\n* encoded strings(dat file)\n* code (csv file)\n* decoded strings(txt file)\n\n## Test\n\nThis Program has been tested on my MacBook(macOS Sierra 10.12.14)\n\n````\ncmake version: 3.8.0\nClang version:Apple LLVM version 8.1.0 (clang-802.0.42)\nTarget: x86_64-apple-darwin16.5.0\nThread model: posix\n````\n\n## Licence\n\n**This Project is under the MIT Licence**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwondervictor%2Fmemsteve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwondervictor%2Fmemsteve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwondervictor%2Fmemsteve/lists"}