{"id":19553915,"url":"https://github.com/hex9cf/internal-sorting-algorithms-comparison","last_synced_at":"2026-06-04T23:31:19.253Z","repository":{"id":255190652,"uuid":"810922077","full_name":"HEX9CF/internal-sorting-algorithms-comparison","owner":"HEX9CF","description":"Comparison of internal sorting algorithms.","archived":false,"fork":false,"pushed_at":"2024-08-28T11:58:22.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-19T23:22:23.681Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HEX9CF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-06-05T15:49:20.000Z","updated_at":"2024-08-28T11:58:48.000Z","dependencies_parsed_at":"2024-08-28T14:22:52.528Z","dependency_job_id":"2c47035f-5553-4243-9cd7-8462d1de638f","html_url":"https://github.com/HEX9CF/internal-sorting-algorithms-comparison","commit_stats":null,"previous_names":["hex9cf/internal-sorting-algorithms-comparison"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/HEX9CF/internal-sorting-algorithms-comparison","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEX9CF%2Finternal-sorting-algorithms-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEX9CF%2Finternal-sorting-algorithms-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEX9CF%2Finternal-sorting-algorithms-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEX9CF%2Finternal-sorting-algorithms-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HEX9CF","download_url":"https://codeload.github.com/HEX9CF/internal-sorting-algorithms-comparison/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HEX9CF%2Finternal-sorting-algorithms-comparison/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33924832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"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":[],"created_at":"2024-11-11T04:25:14.335Z","updated_at":"2026-06-04T23:31:19.232Z","avatar_url":"https://github.com/HEX9CF.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 内部排序算法比较系统\n\n## 项目介绍\n\n一个内部排序算法比较系统，主要用于比较不同排序算法的性能。通过随机数据比较各算法的关键字比较次数和关键字移动次数，以取得直观感受。\n\n## 功能\n\n- 支持以下6种常用的内部排序算法：起泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、堆排序。\n- 可以设置待排序表的表长，其中的数据由伪随机数产生程序产生。\n- 通过不同的输入数据作比较，比较的指标为有关键字参加的比较次数和关键字的移动次数（关键字交换计为3次移动）。\n\n## 用户手册\n\n欢迎使用内部排序算法比较系统。本手册将为您提供系统的各项功能和操作流程的详细指导。系统包含多种排序算法，用户可以通过输入对应的参数进行排序操作。\n\n1. **初始化**：在终端中运行程序，按照提示输入待排序表的表长、待排序表的最大值和测试次数，然后系统会自动进行排序并输出结果。\n2. **排序**：使用已生成的随机数列进行排序。系统提供了冒泡排序、直接插入排序、选择排序、快速排序、希尔排序和堆排序六种排序算法。每次测试，系统会对每种排序算法进行一次排序操作，并输出排序结果和排序过程中的比较次数和移动次数。\n3. **结果展示**：查看每次排序的结果。系统会以直观的方式在终端上显示排序结果，包括排序算法名称、比较次数、移动次数以及排序后的数列。\n4. **退出系统**：在任何时候通过关闭终端来退出系统。\n\n## 源文件说明\n\n- `main.cpp`：项目的主程序，包含主菜单和排序算法的测试。\n- `bubble_sort.cpp`：实现了冒泡排序算法。\n- `heap_sort.cpp`：实现了堆排序算法。\n- `insert_sort.cpp`：实现了直接插入排序算法。\n- `quick_sort.cpp`：实现了快速排序算法。\n- `select_sort.cpp`：实现了简单选择排序算法。\n- `shell_sort.cpp`：实现了希尔排序算法。\n- `main.h`：包含了项目中使用的各种数据类型、常量和函数的声明。\n- `sort.h`：包含了各种排序算法的函数声明。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex9cf%2Finternal-sorting-algorithms-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhex9cf%2Finternal-sorting-algorithms-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex9cf%2Finternal-sorting-algorithms-comparison/lists"}