Question
How many steps will be required to get the final output
from the following input? Input: 117, 63, 11, 18, 93, 4, 6, 13, 17 Directions : A number arrangement machine,when given a particular input, rearranges it following a particular rule. The following is the illustration of the input and the steps of arrangement: Input: 18, 7, 45, 23, 21, 91, 12, 16, 19 Step I: 7, 18, 45, 23, 21, 91, 12, 16, 19 Step II: 7, 19, 45, 23, 21, 91, 12, 16, 18 Step III: 7, 19, 23, 45, 21, 91, 12, 16, 18 Step IV: 7, 19, 23, 21, 45, 91, 12, 16, 18 This is the final arrangement and step IV is the last step for the given in put.Solution
Clearly, in the given arrangement, the numbers of each type have been arranged in ascending order, ie prime numbers are arranged first in ascending order,then non-prime odd numbers, and finally even numbers.Also, when a number is arranged, it interchanges its position with the wrongly placed number. Input: 117, 63, 11, 18, 93, 4, 6, 13, 17 Step I: 11, 63, 117, 18, 93, 4, 6, 13, 17 Step II: 11, 13, 117, 18, 93, 4, 6, 63, 17 Step III: 11, 13, 17, 18, 93, 4, 6, 63, 117 Step IV: 11, 13, 17, 63, 93, 4, 6, 18, 117 Step V: 11, 13, 17, 63, 93, 117, 6, 18, 4 Step VI: 11, 13, 17, 63, 93, 117, 4, 18, 6 Step VII: 11, 13, 17, 63, 93, 117, 4, 6, 18
Train 'C' running with a speed of 90 km/hr crosses a pole in 8 seconds. In how much time will train 'C' cross train 'D' whose length is 80 meters more a...
- Train 'A' having a speed of 20 m/s can cross a man in 5 seconds. The length of train 'B' is 100 metres more than the length of 'A'. If the speed of 'B' is ...
A train that is 360 metres long passes a signal post in 18 seconds. How long will it take to pass a bridge that is 240 metres long?
Two poles are positioned at a certain distance from each other. A train traveling at a speed of 90 km/hr passes the first pole in 5 seconds and reaches ...
A train moving at a speed of 72 km/h takes 12.5 seconds to pass a pole. If the train takes 24 seconds to completely cross a platform, what is the lengt...
A train crosses a bridgeΒ in 15 secs while it crosses a man standing on a platform in 8 secs. If the speed of train 108 km/hrs, then what will be the ti...
- A train, running at the speed of 72 km/h, is 300 metres long. How much time (in seconds) will it take to pass over a bridge that is 600 metres long?
- A train can cross a bridge and a pole in 7.2 seconds and 4 seconds respectively. The length of the bridge is 80 metres. Find the time taken by train to cro...
Two trains A and B, were proceeding in the same direction on parallel tracks at 24 km/hr and 78 km/hr respectively. A man noticed that it took exactly 2...
Train βXβ is travelling with a speed of 90 km/hr and crosses a vertical pole in 6 seconds. Train βYβ is 30 metres longer than βXβ and trave...