{"id":18743867,"url":"https://github.com/devmarkson/sorting-algorithms","last_synced_at":"2025-09-12T18:06:44.137Z","repository":{"id":251407465,"uuid":"746900736","full_name":"DevMarkson/Sorting-Algorithms","owner":"DevMarkson","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-23T22:14:29.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T06:37:05.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DevMarkson.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":"2024-01-22T22:17:20.000Z","updated_at":"2024-01-22T22:17:38.000Z","dependencies_parsed_at":"2024-08-02T20:31:45.439Z","dependency_job_id":"8f75f0f8-8702-4947-b944-265402606f04","html_url":"https://github.com/DevMarkson/Sorting-Algorithms","commit_stats":null,"previous_names":["devmarkson/sorting-algorithms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevMarkson/Sorting-Algorithms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FSorting-Algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FSorting-Algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FSorting-Algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FSorting-Algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevMarkson","download_url":"https://codeload.github.com/DevMarkson/Sorting-Algorithms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevMarkson%2FSorting-Algorithms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274850844,"owners_count":25361454,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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-07T16:12:48.722Z","updated_at":"2025-09-12T18:06:44.104Z","avatar_url":"https://github.com/DevMarkson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sorting Algorithms\n\nThis folder contains my implementations of various sorting algorithms in Java. I'm currently working on learning and implementing different sorting techniques, so this collection will grow over time.\n\n\n## Bubble Sort\n\n### Implementation (`BubbleSort.java`):\n- The `BubbleSort` class provides a static method `bubblesort` for sorting an integer array using the Bubble Sort algorithm.\n- The algorithm compares adjacent elements and swaps them if they are in the wrong order. This process is repeated until the entire array is sorted.\n- The main method demonstrates the usage of the Bubble Sort algorithm on two arrays: `age` and `salaries`.\n- The sorted arrays are then printed using the `Arrays.toString` method.\n\n### Usage:\n1. Compile the `BubbleSort.java` file.\n   ```bash\n   javac BubbleSort.java\n   ```\n2. Run the compiled program.\n   ```bash\n   java BubbleSort\n   ```\n\n## Selection Sort\n\n### Implementation (`SelectionSort.java`):\n- The `SelectionSort` class contains a static method `selectionSort` for sorting an integer array using the Selection Sort algorithm.\n- The algorithm divides the array into a sorted and an unsorted region. It repeatedly selects the minimum element from the unsorted region and swaps it with the first element of the unsorted region.\n- The main method demonstrates the usage of the Selection Sort algorithm on two arrays: `ages` and `salaries`.\n- The sorted arrays are then printed using the `Arrays.toString` method.\n\n### Usage:\n1. Compile the `SelectionSort.java` file.\n   ```bash\n   javac SelectionSort.java\n   ```\n2. Run the compiled program.\n   ```bash\n   java SelectionSort\n   ```\n\n## Insertion Sort\n\n### Implementation (`InsertionSort.java`):\n- The `InsertionSort` class provides a static method `insertion` for sorting an integer array using the Insertion Sort algorithm.\n- The algorithm builds a sorted portion of the array by repeatedly taking elements from the unsorted part and inserting them into their correct position in the sorted part.\n- The main method demonstrates the usage of the Insertion Sort algorithm on two arrays: `age` and `salaries`.\n- The sorted arrays are then printed using the `Arrays.toString` method.\n\n### Usage:\n1. Compile the `InsertionSort.java` file.\n   ```bash\n   javac InsertionSort.java\n   ```\n2. Run the compiled program.\n   ```bash\n   java InsertionSort\n   ```\n\n## Future Additions\nCommon sorting algorithms include Merge Sort, Quick Sort, and Heap Sort. Each algorithm provides a unique approach to sorting and I would understand their differences to deepen my understanding of algorithmic efficiency and implement them.\n\nFeel free to explore!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmarkson%2Fsorting-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevmarkson%2Fsorting-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevmarkson%2Fsorting-algorithms/lists"}