Discussion :: Sequential Output Training
-
Study the following information carefully and answer the given questions:A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement:Input: 48 245 182 26 99 542 378 297Step I: 542 48 245 182 26 99 378 297Step II: 542 248 245 182 99 378 297Step III: 542 26 378 48 245 182 99 297Step IV: 542 26 378 48 297 245 182 99Step V: 542 26 378 48 297 99 245 182This is the final arrangement and step V is the last step for this input.How many steps will be required to get the final output from the following input?Input: 39 88 162 450 386 72 29
Answer : Option E
Explanation :
From the last step it is clear that there are two alternating series of numbers. One in descending order and the other in ascending order.
When we go through input to step I, we find that the largest number because the first and remaining numbers shift rightward. In the next step the smallest number becomes the second and the rest shift rightward. These two steps continue alternately untill the two alternate series are formed.
Be The First To Comment