Search for question
Question

2. Consider the following procedure that generates a sequence of integers that could be used for Shell sorting n ≥ 0 elements. The integers in the sequence used for Shell sorting

are assigned to the variable k. Generate Sequence (n) k + 1; P + 1; while (kn) { 01. 02. 03. 04. 05. 06. kk x 2 + 1; P + P + 1; } /* end of while (k

Fig: 1