https://github.com/jannchie/algorithm-c
各种算法的实现(C语言版本)
https://github.com/jannchie/algorithm-c
Last synced: 9 months ago
JSON representation
各种算法的实现(C语言版本)
- Host: GitHub
- URL: https://github.com/jannchie/algorithm-c
- Owner: Jannchie
- License: mit
- Created: 2019-10-21T16:24:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-10T17:59:53.000Z (over 4 years ago)
- Last Synced: 2025-03-17T14:49:05.154Z (over 1 year ago)
- Language: C
- Size: 85.9 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# algorithm-c/c++
## 简介
各种数据结构、算法的实现(C/C++语言版本)
目前编写了在linux环境下,适用于clang/clang++编译器的makefile文件。
所有数据结构或算法原想通过C语言实现。
但由于C语言并无对泛型的支持,在几种高级算法、数据结构中,需要重复实现几种基本数据结构,不易维护,因此部分算法和数据结构采用C++实现,调用了C++标准模板库(STL)。
## 打开方式
``` bash
make # 在项目根目录执行下列bash脚本即可运行
./dist/c-algorithm # 运行c程序测试
./dist/cpp-algorithm # 运行c++程序测试
```
## 目录
### 排序(C语言实现)
- 冒泡排序
- 选择排序
- 插入排序
- 快速排序
- 归并排序