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 / subbu
answer is a
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain 'far' and 'near' pointers in c.
Which is an example of a structural homology?
What is "Hungarian Notation"?
What is volatile keyword in c?
Does * p ++ increment p or what it points to?
What is a sequential access file?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is an lvalue in c?
What does the c in ctime mean?
How do I create a directory? How do I remove a directory (and its contents)?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
How can you increase the size of a statically allocated array?
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
What is the difference between arrays and pointers?
What is the difference between abs() and fabs() functions?