All Projects → hustcc → Js Sorting Algorithm

hustcc / Js Sorting Algorithm

一本关于排序算法的 GitBook 在线书籍 《十大经典排序算法》,多语言实现。

Programming Languages

python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language
PHP
23972 projects - #3 most used programming language
go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Js Sorting Algorithm

Thealgorithms
Algorithms repository.
Stars: ✭ 122 (-97.29%)
Mutual labels:  algorithm, sorting-algorithms
Interview Questions
List of all the Interview questions practiced from online resources and books
Stars: ✭ 187 (-95.85%)
Mutual labels:  algorithm, sorting-algorithms
Data structure and algorithms library
A collection of classical algorithms and data-structures implementation in C++ for coding interview and competitive programming
Stars: ✭ 133 (-97.05%)
Mutual labels:  algorithm, sorting-algorithms
Ivy
Visualization of sorting algorithm
Stars: ✭ 93 (-97.94%)
Mutual labels:  algorithm, sorting-algorithms
Javascript Datastructures Algorithms
📚 collection of JavaScript and TypeScript data structures and algorithms for education purposes. Source code bundle of JavaScript algorithms and data structures book
Stars: ✭ 3,221 (-28.53%)
Mutual labels:  algorithm, sorting-algorithms
Javascript
A repository for All algorithms implemented in Javascript (for educational purposes only)
Stars: ✭ 16,117 (+257.6%)
Mutual labels:  algorithm, sorting-algorithms
Cosmos
Hacktoberfest 2021 | World's largest Contributor driven code dataset | Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter |
Stars: ✭ 12,936 (+187.02%)
Mutual labels:  algorithm, sorting-algorithms
Algorithms
A collection of algorithms and data structures
Stars: ✭ 11,553 (+156.33%)
Mutual labels:  algorithm, sorting-algorithms
Leader.js.cool
不可替代的团队领袖培养计划
Stars: ✭ 257 (-94.3%)
Mutual labels:  algorithm, gitbook
Python
All Algorithms implemented in Python
Stars: ✭ 125,688 (+2688.73%)
Mutual labels:  algorithm, sorting-algorithms
Data Structure And Algorithms With Es6
Data Structures and Algorithms using ES6
Stars: ✭ 594 (-86.82%)
Mutual labels:  algorithm, sorting-algorithms
Algorithms Primer
A consolidated collection of resources for you to learn and understand algorithms and data structures easily.
Stars: ✭ 381 (-91.55%)
Mutual labels:  algorithm, sorting-algorithms
Sorting Algorithms Visualizer
Program made with Python and Pygame module for visualizing sorting algorithms
Stars: ✭ 137 (-96.96%)
Mutual labels:  algorithm, sorting-algorithms
Way To Algorithm
Algorithm Tutorial and Source Code
Stars: ✭ 221 (-95.1%)
Mutual labels:  algorithm, gitbook
Algorithm Exercise
Data Structure and Algorithm notes. 数据结构与算法/leetcode/lintcode题解/
Stars: ✭ 3,276 (-27.31%)
Mutual labels:  algorithm, gitbook
Algodeck
An Open-Source Collection of 200+ Algorithmic Flash Cards to Help you Preparing your Algorithm & Data Structure Interview 💯
Stars: ✭ 4,441 (-1.46%)
Mutual labels:  algorithm, sorting-algorithms
Algorithmsanddatastructure
Algorithms And DataStructure Implemented In Python & CPP, Give a Star 🌟If it helps you
Stars: ✭ 400 (-91.12%)
Mutual labels:  algorithm
Aigames
use AI to play some games.
Stars: ✭ 422 (-90.64%)
Mutual labels:  algorithm
Tstl
TypeScript-STL (Standard Template Library, migrated from C++)
Stars: ✭ 397 (-91.19%)
Mutual labels:  algorithm
Leetcode Swift
Solutions to LeetCode by Swift
Stars: ✭ 4,099 (-9.05%)
Mutual labels:  algorithm

十大经典排序算法

Build Status

排序算法是《数据结构与算法》中最基本的算法之一。

排序算法可以分为内部排序和外部排序,内部排序是数据记录在内存中进行排序,而外部排序是因排序的数据很大,一次不能容纳全部的排序记录,在排序过程中需要访问外存。常见的内部排序算法有:插入排序、希尔排序、选择排序、冒泡排序、归并排序、快速排序、堆排序、基数排序等。用一张图概括:

十大经典排序算法 概览截图

关于时间复杂度

  1. 平方阶 (O(n2)) 排序 各类简单排序:直接插入、直接选择和冒泡排序。
  2. 线性对数阶 (O(nlog2n)) 排序 快速排序、堆排序和归并排序;
  3. O(n1+§)) 排序,§ 是介于 0 和 1 之间的常数。 希尔排序
  4. 线性阶 (O(n)) 排序 基数排序,此外还有桶、箱排序。

关于稳定性

稳定的排序算法:冒泡排序、插入排序、归并排序和基数排序。

不是稳定的排序算法:选择排序、快速排序、希尔排序、堆排序。

名词解释

n:数据规模

k:“桶”的个数

In-place:占用常数内存,不占用额外内存

Out-place:占用额外内存

稳定性:排序后 2 个相等键值的顺序和排序之前它们的顺序相同


GitBook 内容大纲

  1. 冒泡排序
  2. 选择排序
  3. 插入排序
  4. 希尔排序
  5. 归并排序
  6. 快速排序
  7. 堆排序
  8. 计数排序
  9. 桶排序
  10. 基数排序

本书内容几乎完全来源于网络。

开源项目地址:https://github.com/hustcc/JS-Sorting-Algorithm,整理人 hustcc

GitBook 在线阅读地址:https://sort.hust.cc/

本项目使用 lint-md 进行中文 Markdown 文件的格式检查,务必在提交 Pr 之前,保证 Markdown 格式正确。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].