Professional Documents
Culture Documents
Searchin & Sorting Pseudo Codes
Searchin & Sorting Pseudo Codes
Searchin & Sorting Pseudo Codes
1. Linear/Sequen-al Search
2. Selec-on Sort
func-on selec-onSort(array)
for i from 0 to length of array - 1
set minIndex to i
for j from i + 1 to length of array
if array[j] < array[minIndex]
set minIndex to j
swap array[i] with array[minIndex]
3. Binary Search
func-on externalMergeSort(file)
divide file into smaller sub-files
for each sub-file
sort using any internal sor-ng method
merge sorted sub-files into one large file
5. Hashing
6. Quick Sort