GATEverse
← GATE CSE 2014 Set 3

Q37

NAT2 marks

Suppose you want to move from 00 to 100100 on the number line. In each step, you either move right by a unit distance or you take a shortcut. A shortcut is simply a pre-specified pair of integers i, j with i<ji,\:j \:\text{with}\: i <j. Given a shortcut (i,j)(i,j), if you are at position ii on the number line, you may directly move to jj. Suppose T(k)T(k) denotes the smallest number of steps needed to move from kk to 100100. Suppose further that there is at most 11 shortcut involving any number, and in particular, from 99 there is a shortcut to 1515. Let yy and zz be such that T(9)=1+min⁡(T(y),T(z))T(9) = 1 + \min(T(y),T(z)). Then the value of the product yzyz is _____.

Sign in to save attempts.

Loading…