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
What is c method?
What is dynamic memory allocation?
Explain how can I read and write comma-delimited text?
What is pivot in c?
What is getch?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What are the functions to open and close file in c language?
What is the difference between call by value and call by reference in c?
What is malloc calloc and realloc in c?
Is register a keyword in c?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is meant by 'bit masking'?
how many errors in c explain deply
How can you tell whether a program was compiled using c versus c++?
What does the characters “r” and “w” mean when writing programs that will make use of files?