Skip to content

Commit

Permalink
Merge pull request #16 from kwooshung/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
kwooshung authored Feb 1, 2024
2 parents afd8943 + eaeff4d commit 024404e
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 23 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">

# @kwooshung/AlgorithmSorts
# @kwooshung/algorithm-sorts

![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/kwooshung/AlgorithmSorts?labelColor=272e3b&color=00b42A&logo=github)
![GitHub last commit](https://img.shields.io/github/last-commit/kwooshung/AlgorithmSorts?labelColor=272e3b&color=165dff)
Expand Down Expand Up @@ -59,41 +59,41 @@ As the project name suggests, our project's algorithms only support `sorting`. I

The comparison involves random data of 1000 items, with string lengths varying from 6 to 32 and numbers ranging from 0 to 1,000,000, as shown below:

| Algorithm | algorithms.js | pnpm add @kwooshung/console-badge | Difference |
| :---------------------- | :-----------: | :-------------------------------: | :------------: |
| Bubble Sort | 65.0368 ms | 65.0298 ms | -0.0070 ms |
| Shout Bubble Sort | 13251.3260 ms | 128.2500 ms | -13123.0760 ms |
| Cocktail Sort | - | 52.7166 ms | - |
| Counting Sort | - | 12.3503 ms | - |
| Optimized Counting Sort | 33.2357 ms | 32.6380 ms | -0.5977 ms |
| Heap Sort | 8.3025 ms | 4.6525 ms | -3.6500 ms |
| Insertion Sort | 27.4480 ms | 27.4331 ms | -0.0149 ms |
| Merge Sort | 2.9167 ms | 2.5592 ms | -0.3575 ms |
| Pancake Sort | - | 57.7009 ms | 0 ms |
| Quick Sort | 3.0599 ms | 2.6374 ms | -0.4225 ms |
| Radix Sort | 0.2070 ms | 0.1339 ms | -0.0731 ms |
| Selection Sort | 55.8389 ms | 55.8000 ms | -0.0389 ms |
| Shell Sort | 3.1775 ms | 3.1564 ms | -0.0211 ms |
| Tim Sort | - | 6.7950 ms | - |
| Algorithm | algorithms.js | @kwooshung/algorithm-sorts | Difference |
| :---------------------- | :-----------: | :------------------------: | :------------: |
| Bubble Sort | 65.0368 ms | 65.0298 ms | -0.0070 ms |
| Shout Bubble Sort | 13251.3260 ms | 128.2500 ms | -13123.0760 ms |
| Cocktail Sort | - | 52.7166 ms | - |
| Counting Sort | - | 12.3503 ms | - |
| Optimized Counting Sort | 33.2357 ms | 32.6380 ms | -0.5977 ms |
| Heap Sort | 8.3025 ms | 4.6525 ms | -3.6500 ms |
| Insertion Sort | 27.4480 ms | 27.4331 ms | -0.0149 ms |
| Merge Sort | 2.9167 ms | 2.5592 ms | -0.3575 ms |
| Pancake Sort | - | 57.7009 ms | 0 ms |
| Quick Sort | 3.0599 ms | 2.6374 ms | -0.4225 ms |
| Radix Sort | 0.2070 ms | 0.1339 ms | -0.0731 ms |
| Selection Sort | 55.8389 ms | 55.8000 ms | -0.0389 ms |
| Shell Sort | 3.1775 ms | 3.1564 ms | -0.0211 ms |
| Tim Sort | - | 6.7950 ms | - |

# Install

## npm

```bash
npm install pnpm add @kwooshung/console-badge
npm install @kwooshung/algorithm-sorts
```

## yarn

```bash
yarn add pnpm add @kwooshung/console-badge
yarn add @kwooshung/algorithm-sorts
```

## pnpm

```bash
pnpm add pnpm add @kwooshung/console-badge
pnpm add @kwooshung/algorithm-sorts
```

# Usage
Expand All @@ -103,13 +103,13 @@ pnpm add pnpm add @kwooshung/console-badge
### esm

```ts
import { bubbleSort } from 'pnpm add @kwooshung/console-badge';
import { bubbleSort } from '@kwooshung/algorithm-sorts';
```

### commonjs

```ts
const { bubbleSort } = require('pnpm add @kwooshung/console-badge');
const { bubbleSort } = require('@kwooshung/algorithm-sorts');
```

## Supported Algorithms
Expand Down
1 change: 1 addition & 0 deletions changelogs/.history
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1.0.14
1.0.13
1.0.12
1.0.11
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.en.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 1.0.14 `2024-02-02`
### 🐛 Fix
- If you see this, you must laugh at me, and manage several items at the same time, faint, this time the command fixes ([#fc1456f](https://github.com/kwooshung/algorithm-sorts/commit/fc1456f01920a005dbbf04cc193c5955cd612584))

## 🎉 1.0.13 `2024-02-02`
### 🐛 Fix
- English document, install command to write errors ([#ecf809d](https://github.com/kwooshung/algorithm-sorts/commit/ecf809d68524f23a4d3d026120d8a4fc29d38cb6))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.ja.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 1.0.14 `2024-02-02`
### 🐛 Fix
- あなたがこれを見たら、あなたは私を笑い、同時にいくつかのアイテムを管理しなければなりません、かすかに、今回はコマンドが修正します ([#fc1456f](https://github.com/kwooshung/algorithm-sorts/commit/fc1456f01920a005dbbf04cc193c5955cd612584))

## 🎉 1.0.13 `2024-02-02`
### 🐛 Fix
- 英語文書、コマンドをインストールしてエラーを書き込む ([#ecf809d](https://github.com/kwooshung/algorithm-sorts/commit/ecf809d68524f23a4d3d026120d8a4fc29d38cb6))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.ko.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 1.0.14 `2024-02-02`
### 🐛 Fix
- 이것을 본다면, 당신은 나를 비웃고 동시에 여러 항목을 관리해야합니다. 이번에는 명령이 수정됩니다. ([#fc1456f](https://github.com/kwooshung/algorithm-sorts/commit/fc1456f01920a005dbbf04cc193c5955cd612584))

## 🎉 1.0.13 `2024-02-02`
### 🐛 Fix
- 영어 문서, 명령을 설치하여 오류를 작성하십시오 ([#ecf809d](https://github.com/kwooshung/algorithm-sorts/commit/ecf809d68524f23a4d3d026120d8a4fc29d38cb6))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.ru.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 1.0.14 `2024-02-02`
### 🐛 Fix
- Если вы видите это, вы должны смеяться надо мной и одновременно управлять несколькими элементами, слабые, на этот раз команда исправляет ([#fc1456f](https://github.com/kwooshung/algorithm-sorts/commit/fc1456f01920a005dbbf04cc193c5955cd612584))

## 🎉 1.0.13 `2024-02-02`
### 🐛 Fix
- Английский документ, установить команду для написания ошибок ([#ecf809d](https://github.com/kwooshung/algorithm-sorts/commit/ecf809d68524f23a4d3d026120d8a4fc29d38cb6))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.zh-cn.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 1.0.14 `2024-02-02`
### 🐛 Fix
- 如果您看到了,则必须嘲笑我,并同时管理几个项目,晕倒,这次命令修复了 ([#fc1456f](https://github.com/kwooshung/algorithm-sorts/commit/fc1456f01920a005dbbf04cc193c5955cd612584))

## 🎉 1.0.13 `2024-02-02`
### 🐛 Fix
- 英语文档,安装命令写错误 ([#ecf809d](https://github.com/kwooshung/algorithm-sorts/commit/ecf809d68524f23a4d3d026120d8a4fc29d38cb6))
Expand Down
4 changes: 4 additions & 0 deletions changelogs/CHANGELOG.zh-tw.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 🎉 1.0.14 `2024-02-02`
### 🐛 Fix
- 如果您看到了,則必須嘲笑我,並同時管理幾個項目,暈倒,這次命令修復了 ([#fc1456f](https://github.com/kwooshung/algorithm-sorts/commit/fc1456f01920a005dbbf04cc193c5955cd612584))

## 🎉 1.0.13 `2024-02-02`
### 🐛 Fix
- 英語文檔,安裝命令寫錯誤 ([#ecf809d](https://github.com/kwooshung/algorithm-sorts/commit/ecf809d68524f23a4d3d026120d8a4fc29d38cb6))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kwooshung/algorithm-sorts",
"version": "1.0.13",
"version": "1.0.14",
"title": "algorithm-sorts",
"description": "Better algorithm implementation library",
"private": false,
Expand Down

0 comments on commit 024404e

Please sign in to comment.