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 should malloc(0) do?
Explain what are the different data types in c?
What is the difference between c &c++?
How are variables declared in c?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
How can I open files mentioned on the command line, and parse option flags?
Explain the use of function toupper() with and example code?
What do you mean by c what are the main characteristics of c language?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
writ a program to compare using strcmp VIVA and viva with its output.
Why we write conio h in c?
How can I invoke another program or command and trap its output?
Compare and contrast compilers from interpreters.
What is a program flowchart and how does it help in writing a program?
What is 2 d array in c?