Search for question
Question

4. Suppose we use the sequence of integers of the form 2P39, where p, q≥ 0, for Shell-sorting an array of n ≥ 1 elements. Moreover, the sequence contains all integers

of the form 2P39 that are strictly less than n. (a) Suppose q* is the largest (integer) exponent such that 39* q*. For the row that contains the integer 2P", what is the maximum number of integers that could be included in the sequence? How about the row above that?)

Fig: 1