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
What are the 5 organizational structures?
Differentiate between static and dynamic modeling.
What is dynamic variable in c?
Explain 'far' and 'near' pointers in c.
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What are near, far and huge pointers?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Is there sort function in c?
Is swift based on c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What is I ++ in c programming?
What are runtime error?
string reverse using recursion
about c language
cavium networks written test pattern ..