{"id":18968638,"url":"https://github.com/r100-stack/heap-helper-code","last_synced_at":"2026-04-05T11:30:17.764Z","repository":{"id":120424687,"uuid":"298432241","full_name":"r100-stack/Heap-Helper-Code","owner":"r100-stack","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-12T20:06:40.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T07:08:06.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/r100-stack.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":"2020-09-25T01:05:06.000Z","updated_at":"2020-10-12T20:06:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6d46cf1-7d4d-492b-953f-938295712abc","html_url":"https://github.com/r100-stack/Heap-Helper-Code","commit_stats":null,"previous_names":["r100-stack/heap-helper-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r100-stack%2FHeap-Helper-Code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r100-stack%2FHeap-Helper-Code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r100-stack%2FHeap-Helper-Code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r100-stack%2FHeap-Helper-Code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r100-stack","download_url":"https://codeload.github.com/r100-stack/Heap-Helper-Code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239965692,"owners_count":19726162,"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":[],"created_at":"2024-11-08T14:48:09.469Z","updated_at":"2026-04-05T11:30:17.682Z","avatar_url":"https://github.com/r100-stack.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heap and Heap Sort Sample Code\n\n## Description\n\nThis branch contains\n1. FULLY IMPLEMENTED code\n2. FULLY FUNCTIONAL executables\n\n## Intructions to run the code (on Linux/Mac and Windows)\n\n### 1) heap.c\n\nIn the command line, cd to the current location\n\n```\n(Linux/Mac and Windows)\ncd \"\u003clocation of the download location of this folder\u003e\"\n```\n\nNext run the executables\n\n```\n(Linux/Mac)\n./executables/heap.exe\n\n(Windows)\nexecutables/heap.exe\n```\n\n#### Cases\n\n* To insert a node x in the heap, ```INSERT x```\n\n* To extract min, ```EXTRACT_MIN -1```. You can enter any number instead of -1. We have to enter a number as we defined our input of the form \"%s %d\". Hence, even if we don't need an integer (%d), we still need to input one.\n\n* To exit, ```EXIT -1```. We add -1 after exit for the same reason we add -1 after EXTRACT_MIN as explained above.\n\n#### Sample Output\n\n```\n$ ./executables/heap\nINSERT 5\n5 \nINSERT 10\n5 10 \nINSERT 3\n3 10 5 \nINSERT 23\n3 10 5 23 \nINSERT 17\n3 10 5 23 17 \nINSERT 2\n2 10 3 23 17 5 \nINSERT 87\n2 10 3 23 17 5 87 \nINSERT 1\n1 2 3 10 17 5 87 23 \nEXTRACT_MIN -1\nMinimum = 1\n2 10 3 23 17 5 87\nEXTRACT_MIN -1\nMinimum = 2\n3 10 5 23 17 87\nEXTRACT_MIN -1\nMinimum = 3\n5 10 87 23 17\nEXIT -1\n```\n\n### 2) heap_sort.c\n\nIn the command line, cd to the current location\n\n```\n(Linux/Mac and Windows)\ncd \"\u003clocation of the download location of this folder\u003e\"\n```\n\nNext run the executables\n\n```\n(Linux/Mac)\n./executables/heap_sort.exe\n\n(Windows)\nexecutables/heap_sort.exe\n```\n\n#### Cases\n\nThe code sorts the input array specified in the code. No input array is provided through the command line.\n\n#### Sample Output\n\n```\n$ ./executables/heap_sort.exe \n8 3 5 10 38 4 27 2 9 34 \n2 3 4 5 8 9 10 27 34 38\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr100-stack%2Fheap-helper-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr100-stack%2Fheap-helper-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr100-stack%2Fheap-helper-code/lists"}