|
|
|
|
|
by rsrsrs86
2 days ago
|
|
I don’t need to specify all steps, you need to know what correct means in your system. Then you find the steps to get there. The spec for a sorting algorithm says that the output is a permutation and that no element at I > J is smaller than the element at J. This is true for any sorting algorithm no matter the steps ie quick sort merge sort will have different steps but same spec |
|