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


Please Help Members By Posting Answers For Below Questions

Can stdout be forced to print somewhere other than the screen?

717


Why do we use int main instead of void main in c?

729


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

2648


How can I remove the leading spaces from a string?

719


What is a wrapper function in c?

698






What is the code in while loop that returns the output of given code?

1511


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.

717


What is union and structure?

658


What is a header file?

726


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1035


write a progrmm in c language take user interface generate table using for loop?

1667


What are extern variables in c?

646


Write a program for finding factorial of a number.

733


What is the heap?

804


Explain how do you override a defined macro?

676