{"id":24756208,"url":"https://github.com/jaredblumer/js-algorithms","last_synced_at":"2026-04-30T00:38:00.826Z","repository":{"id":116444112,"uuid":"146050056","full_name":"jaredblumer/js-algorithms","owner":"jaredblumer","description":"Implementations of Sorting and Search Algorithms in Javascript","archived":false,"fork":false,"pushed_at":"2024-07-30T20:58:34.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T13:47:19.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jaredblumer.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":"2018-08-24T23:57:40.000Z","updated_at":"2024-07-30T20:58:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"24064dd7-2308-484e-9b57-67a3dc44cbe6","html_url":"https://github.com/jaredblumer/js-algorithms","commit_stats":null,"previous_names":["shyblumer/js-algorithms","jaredblumer/js-algorithms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredblumer%2Fjs-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredblumer%2Fjs-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredblumer%2Fjs-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredblumer%2Fjs-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredblumer","download_url":"https://codeload.github.com/jaredblumer/js-algorithms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245066522,"owners_count":20555404,"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":"2025-01-28T13:40:24.971Z","updated_at":"2026-04-30T00:38:00.787Z","avatar_url":"https://github.com/jaredblumer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sorting and Search Algorithms in JavaScript\n\nWelcome to the Sorting and Search Algorithms repository! This repository provides examples of various sorting and search algorithms implemented in JavaScript.\n\n## Table of Contents\n- [Sorting Algorithms](#sorting-algorithms)\n  - [Bubble Sort](#bubble-sort)\n  - [Selection Sort](#selection-sort)\n  - [Insertion Sort](#insertion-sort)\n  - [Merge Sort](#merge-sort)\n- [Search Algorithms](#search-algorithms)\n  - [Linear Search](#linear-search)\n  - [Binary Search](#binary-search)\n- [Author](#author)\n- [License](#license)\n\n## Sorting Algorithms\n\n### [Bubble Sort](https://github.com/shyblumer/js-algorithms/blob/master/bubbleSort.js)\nBubble Sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.\n- **Time Complexity:** O(n^2)\n- **Space Complexity:** O(1)\n\n### [Selection Sort](https://github.com/shyblumer/js-algorithms/blob/master/selectionSort.js)\nSelection Sort divides the input list into two parts: the sublist of items already sorted, which is built up from left to right at the front (left) of the list, and the sublist of items remaining to be sorted that occupy the rest of the list.\n- **Time Complexity:** O(n^2)\n- **Space Complexity:** O(1)\n\n### [Insertion Sort](https://github.com/shyblumer/js-algorithms/blob/master/insertionSort.js)\nInsertion Sort builds the final sorted array one item at a time. It is much less efficient on large lists than more advanced algorithms such as quicksort, heapsort, or merge sort.\n- **Time Complexity:** O(n^2)\n- **Space Complexity:** O(1)\n\n### [Merge Sort](https://github.com/shyblumer/js-algorithms/blob/master/mergeSort.js)\nMerge Sort is an efficient, stable, comparison-based, divide and conquer sorting algorithm. Most implementations produce a stable sort, meaning that the implementation preserves the input order of equal elements in the sorted output.\n- **Time Complexity:** O(n log n)\n- **Space Complexity:** O(n)\n\n## Search Algorithms\n\n### [Linear Search](https://github.com/shyblumer/js-algorithms/blob/master/linearSearch.js)\nLinear Search is a method for finding an element within a list. It sequentially checks each element of the list until a match is found or the whole list has been searched.\n- **Time Complexity:** O(n)\n- **Space Complexity:** O(1)\n\n### [Binary Search](https://github.com/shyblumer/js-algorithms/blob/master/binarySearch.js)\nBinary Search is a fast search algorithm with a time complexity of O(log n). This search algorithm works on the principle of divide and conquer. For this algorithm to work, the data collection should be in a sorted form.\n- **Time Complexity:** O(log n)\n- **Space Complexity:** O(1)\n\n## Author\n**Jared Blumer**, Full-Stack Software Engineer and Data Analyst\n- [GitHub](https://github.com/jaredblumer)\n- [LinkedIn](https://www.linkedin.com/in/jaredblumer/)\n\n## License\nThis project is licensed under the [MIT License](https://opensource.org/license/mit).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredblumer%2Fjs-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredblumer%2Fjs-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredblumer%2Fjs-algorithms/lists"}