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
What are the benefits of organizational structure?
What is pointers in c?
Is c programming hard?
Explain how can a program be made to print the name of a source file where an error occurs?
How do you generate random numbers in C?
Why doesn't C support function overloading?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is the use of ?: Operator?
What is the use of a ‘ ’ character?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What is the concatenation operator?
how do you execute a c program in unix.
What is the difference between mpi and openmp?
Can we change the value of static variable in c?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?