What kind of sorting is this?
SORT (k,n)
1.[Loop on I Index]
repeat thru step2 for i=1,2,........n-1
2.[For each pass,get small value]
min=i;
repeat for j=i+1 to N do
{
if K[j]<k[min]
min=j;
}
temp=K[i];K[i]=K[min];K[min]=temp;
3.[Sorted Values will be returned]
A)Bubble Sort
B)Quick Sort
C)Selection Sort
D)Merge Sort
Answer Posted / santhoo035
c
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How will you find a duplicate number in a array without negating the nos ?
What is the difference between new and malloc functions?
What is the difference between malloc() and calloc() function in c language?
What's a good way to check for "close enough" floating-point equality?
How are variables declared in c?
write a program to find out prime number using sieve case?
What is the heap?
What are header files in c?
By using C language input a date into it and if it is right?
What is a MAC Address?
What is c token?
What is restrict keyword in c?
Why is it usually a bad idea to use gets()? Suggest a workaround.
What is the use of gets and puts?
Simplify the program segment if X = B then C ← true else C ← false