https://github.com/danushka96/sorting
Sorting Methods using Python
https://github.com/danushka96/sorting
Last synced: 2 months ago
JSON representation
Sorting Methods using Python
- Host: GitHub
- URL: https://github.com/danushka96/sorting
- Owner: Danushka96
- Created: 2017-06-12T03:43:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T03:59:17.000Z (almost 8 years ago)
- Last Synced: 2025-02-03T16:56:24.617Z (4 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sorting
Sorting Methods using Python## Selection Sort
### Psudo code
SelectionSort(int[] t, int n)1. begin
2. int i,j,min,q
3. for i = 1 to n-1 do
4. min = i
5. for j = i+1 TO n do
6. if t[j] < t[min] then
7. min = j
8. end if
9. end for
10. q = t[min]
11. t[min]= t[i]
12. t[i] = q
13. end for