Just some algorithms with php,not a tool package.But you can use these algorithms like xxxTest.php do.
- Every Sort Algorithm contains three files.
Data File
,Sort Algorithm File
andTest File
. DataClass in Data File implement Comparable Interface class insrc/Interface/Comparable.php
.
cate | algorithm | O |
---|---|---|
Sort | SelectionSort | O(N2) |
Sort | InsertionSort | O(N2) |
Sort | ShellSort | O(N1/5) |