5. 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 / rajesh
Selection Sort
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the difference between printf and scanf in c?
What is getch () for?
What are the different file extensions involved when programming in C?
How was c created?
How can I pad a string to a known length?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
Compare array data type to pointer data type
what is the diffrenet bettwen HTTP and internet protocol
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is wrong with this statement? Myname = 'robin';
How do you define a function?
When would you use a pointer to a function?
How can you find the exact size of a data type in c?
What is meant by operator precedence?
What is pass by reference in c?