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 / jitendra kumar arya
c)seletoin sort
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why header files are used?
What is the difference between struct and typedef struct in c?
What is sizeof in c?
What is the use of bit field?
What does the c in ctime mean?
Is multithreading possible in c?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What does it mean when a pointer is used in an if statement?
Explain can static variables be declared in a header file?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
Where local variables are stored in c?
hi any body pls give me company name interview conduct "c" language only
What is a example of a variable?
Explain what are its uses in c programming?