Examveda

Which of the following statements is the basic for loop for a shell sort algorithm?

A. for(increment=N/2;increment>0;increment/=2)

B. for(i=1;i<n;i++)

C. for(i=n/2;i>=0;i- -)

D. for(i=0;i< n;i++;numelements- -)

Answer: Option A


This Question Belongs to Data Structure >> Sorting Algorithms

Join The Discussion

Related Questions on Sorting Algorithms