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
Can stdout be forced to print somewhere other than the screen?
Why do we use int main instead of void main in c?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
How can I remove the leading spaces from a string?
What is a wrapper function in c?
What is the code in while loop that returns the output of given code?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
What is union and structure?
What is a header file?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
write a progrmm in c language take user interface generate table using for loop?
What are extern variables in c?
Write a program for finding factorial of a number.
What is the heap?
Explain how do you override a defined macro?