Q.1.
Shell sort is also known as _____________
Q.2.
StatementShell sort is a stable sorting algorithm.
Q.3.
Shell sort is applied on the elementsand the chosen decreasing sequence of increments is (5,3,1). The result after the first iteration will be
Q.4.
Consider the following code snippet, which implements the Shell sort algorithm. shellSort( int elements[], int num_elements , int incrmnts[], int num_incrmnts) { int incr, j, k, span, y; for(incr =incr ;&lt num_incrmnts; incr++) { span = incrmnts[incr]; data-structure-questions-answers-shell-sort for( j = span; j < num_elements; j++) { k = j; y = elements[j]; while (________ ) { elements [ k] = elements[k - span]; k = k - span; } elements[k] = y; } }
Q.5.
Shell sort is an improvement on ____
Q.6.
An array that is first 7-sorted, then 5-sorted becomes _________
Q.7.
If Hibbard increments (hhh…, hk = 2k–are used in a Shell sort implementation, then the best case time complexity will be ________
Q.8.
Records RRR3,.. RN with keys KKK3,.. KN are said to be h-ordered, if ________
Q.9.
Shell sort is more efficient than insertion sort if the length of input arrays is small.
Q.10.
Which of the following is true?