An open API service indexing awesome lists of open source software.

https://github.com/weizujie/java-algorithms

:zap:Java实现常见的算法
https://github.com/weizujie/java-algorithms

Last synced: 10 months ago
JSON representation

:zap:Java实现常见的算法

Awesome Lists containing this project

README

          

# Java-Algorithms

## 常见算法实现

- 冒泡排序
- [BubbleSortV1](https://github.com/weizujie/Java-Algorithms/blob/main/BubbleSort/src/BubbleSortV1.java):最基础的冒泡排序
- [BubbleSortV2](https://github.com/weizujie/Java-Algorithms/blob/main/BubbleSort/src/BubbleSortV2.java):设置标志位进行优化
- [BubbleSortV3](https://github.com/weizujie/Java-Algorithms/blob/main/BubbleSort/src/BubbleSortV3.java):划分有序区和无序区进行优化

- 快速排序
- [QuickSortV1](https://github.com/weizujie/Java-Algorithms/blob/main/QuickSort/src/QuickSortV1.java):双边循环法
- [QuickSortV2](https://github.com/weizujie/Java-Algorithms/blob/main/QuickSort/src/QuickSortV2.java):单边循环法

- 二分查找
- [BinarySearch1](https://github.com/weizujie/Java-Algorithms/blob/main/BinarySearch1/src/BinarySearch1.java):while 循环写法
- [BinarySearch2](https://github.com/weizujie/Java-Algorithms/blob/main/BinarySearch2/src/BinarySearch2.java):递归写法

- 选择排序
- [SelectionSort](https://github.com/weizujie/Java-Algorithms/blob/main/SelectionSort/src/SelectionSort.java):选择排序