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 / murali
Bubble sort
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
Multiply an Integer Number by 2 Without Using Multiplication Operator
how to capitalise first letter of each word in a given string?
Why should I use standard library functions instead of writing my own?
Why dont c comments nest?
why return type of main is not necessary in linux
What is the difference between procedural and functional programming?
What are the characteristics of arrays in c?
When can a far pointer be used?
What is the correct code to have following output in c using nested for loop?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
How can I split up a string into whitespace-separated fields?
What is local and global variable in c?
List some basic data types in c?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix