{"id":26245072,"url":"https://github.com/deryaxacar/sorting-algorithms","last_synced_at":"2026-04-07T13:31:38.105Z","repository":{"id":209172640,"uuid":"723397757","full_name":"deryaxacar/Sorting-Algorithms","owner":"deryaxacar","description":"This repository provides C implementations of sorting algorithms like Bubble, Insertion, Selection, Merge, and Quick Sort with clear examples.","archived":false,"fork":false,"pushed_at":"2025-06-14T19:21:33.000Z","size":1504,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T12:08:17.409Z","etag":null,"topics":["buble-sort","insertion-sort","insertion-sort-algorithm","merge-sort","mergesort","sorting","sorting-algorithm","sorting-algorithms","sorting-algorithms-implemented"],"latest_commit_sha":null,"homepage":"https://github.com/deryaxacar/Sorting-Algorithms","language":null,"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/deryaxacar.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":"2023-11-25T14:41:56.000Z","updated_at":"2025-08-21T16:41:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc59c6bc-6465-4d05-bff1-30c5ec40fc9e","html_url":"https://github.com/deryaxacar/Sorting-Algorithms","commit_stats":null,"previous_names":["deryaxacar/sorting-algorithms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deryaxacar/Sorting-Algorithms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deryaxacar%2FSorting-Algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deryaxacar%2FSorting-Algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deryaxacar%2FSorting-Algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deryaxacar%2FSorting-Algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deryaxacar","download_url":"https://codeload.github.com/deryaxacar/Sorting-Algorithms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deryaxacar%2FSorting-Algorithms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31515144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["buble-sort","insertion-sort","insertion-sort-algorithm","merge-sort","mergesort","sorting","sorting-algorithm","sorting-algorithms","sorting-algorithms-implemented"],"created_at":"2025-03-13T12:29:45.378Z","updated_at":"2026-04-07T13:31:38.083Z","avatar_url":"https://github.com/deryaxacar.png","language":null,"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eSorting Algorithms 📊\u003c/h1\u003e \u003cimg src=\"https://github.com/deryaxacar/Sorting-Algorithms/blob/main/c.png\" alt=\"http Logo\" width=\"110\"\u003e\u003c/br\u003e\u003c/br\u003e\n   This repository contains implementations of various sorting algorithms written in C.\n\u003c/div\u003e\n\n---\n\n## Algorithms 🔍\n\nCurrently, the repository includes the following sorting algorithms:\n\n1. **Bubble Sort 🧼**  \n   - This algorithm compares adjacent elements and swaps them if they are in the wrong order. It repeatedly passes through the list, pushing the largest unsorted element to the end with each pass, until the list is fully sorted.\n\n2. **Insertion Sort 📝**  \n   - This algorithm divides the list into a sorted and an unsorted part. Starting from the second element, it inserts each item into its correct position within the sorted portion. The process continues until all elements are sorted.\n\n3. **Selection Sort 🕵️**  \n   - This algorithm finds the smallest (or largest) element in the unsorted part of the array and swaps it with the first (or last) unsorted element. This process is repeated until the entire array is sorted.\n\n4. **Merge Sort 🔗**  \n   - This algorithm divides the array into two halves, recursively sorts them, and then merges the sorted halves into a single sorted array. It uses a divide-and-conquer approach to efficiently sort the list.\n\n5. **Quick Sort ⚡**  \n   - This algorithm selects a pivot element and partitions the array so that elements less than the pivot are on the left, and those greater are on the right. It recursively applies the same process to the subarrays until the entire array is sorted.\n\n---\n\n## Performance Comparison 📈\n\nUse the table below to compare the performance of each algorithm:\n\n| Algorithm       | Best Time Complexity ⏱️ | Average Time Complexity ⏳ | Worst Time Complexity ⏲️ | Extra Memory 🧠 | Stable     |\n|----------------|--------------------------|-----------------------------|----------------------------|------------------|-------------|\n| Bubble Sort     | O(n)                     | O(n²)                        | O(n²)                      | O(1)             | Yes         |\n| Insertion Sort  | O(n)                     | O(n²)                        | O(n²)                      | O(1)             | Yes         |\n| Selection Sort  | O(n²)                    | O(n²)                        | O(n²)                      | O(1)             | No          |\n| Merge Sort      | O(n log n)               | O(n log n)                   | O(n log n)                 | O(n)             | Yes         |\n| Quick Sort      | O(n log n)               | O(n log n)                   | O(n²)                      | O(log n)         | Generally   |\n\n---\n\n## How to Use 🛠️\n\nEach sorting algorithm is implemented in a separate `.c` file. To run an algorithm, compile and execute its file using a C compiler like `gcc`.\n\nExample:\n\n```bash\ngcc bubble_sort.c -o bubble_sort\n./bubble_sort\n\n```\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cb\u003e2023 | Created by Derya ACAR\u003c/b\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderyaxacar%2Fsorting-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderyaxacar%2Fsorting-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderyaxacar%2Fsorting-algorithms/lists"}