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
How can you increase the size of a statically allocated array?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Why is main function so important?
What is the difference between fread and fwrite function?
What are dangling pointers? How are dangling pointers different from memory leaks?
What does the c preprocessor do?
difference between object file and executable file
What are loops in c?
How can you restore a redirected standard stream?
Can we increase size of array in c?
How can you draw circles in C?
What are register variables in c?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Why is struct padding needed?
What does char * * argv mean in c?