Question
How many steps will be required for getting the final
output for the following input? Input: 111, 81, 62, 40, 63, 36, 173, 29, 141, 74 Directions : Study the following information carefully to answer the questions given below:A number sorting machine, when given an input of numbers, rearranges the numbers in a particular manner step by step as indicated below, till all the numbers are arranged in a particular order. Given below is an illustration of this arrangement. Input: 45, 163, 53, 19, 81, 139, 18, 48, 73, 96 Step I: 18, 45, 163, 53, 19, 81, 139, 48, 73, 96 Step II: 18, 45, 53, 19, 81, 139, 48, 73, 96, 163 Step III: 18, 19, 45, 53, 81, 139, 48, 73, 96, 163 Step IV: 18, 19, 45, 53, 81, 48, 73, 96, 139, 163 Step V: 18, 19, 45, 48, 53, 81, 73, 96, 139, 163 Step VI: 18, 19, 45, 48, 53, 73, 81, 96, 139, 163 (This is the final arrangement and VI is the last step for this input.)Solution
Input: 111, 81, 62, 40, 63, 36, 173, 29, 141, 74 Step I: 29, 111, 81, 62, 40, 63, 36, 173, 141, 74 Step II: 29, 111, 81, 62, 40, 63, 36, 141, 74, 173 Step III: 29, 36, 111, 81, 62, 40, 63, 141, 74, 173 Step IV: 29, 36, 111, 81, 62, 40, 63, 74, 141, 173 Step V: 29, 36, 40, 111, 81, 62, 63, 74, 141, 173 Step VI: 29, 36, 40, 81, 62, 63, 74, 111, 141, 173 Step VII: 29, 36, 40, 62, 81, 63, 74, 111, 141, 173 Step VIII: 29, 36, 40, 62, 63, 74, 81, 111, 141, 173
- The average of 36 numbers is 75. If every number is multiplied by 9, what will be the average of the resulting numbers?
The average age of 4 children in a family is 30% of the average age of the mother and the youngest child. The total age of the father and the eldest chi...
A set contains ten numbers. The average of the first six numbers is (x - 4), and the average of the last three numbers is (x + 2). The average of the en...
The average of five even numbers is 68. If we replace two of these even numbers, 84 and 92, with a single even number X, the new average decreases by 4....
The average age of A, B & C is 48 years. Ratio of present ages of A to C is 3:5 and present age of B is 33.33% more than that of A. find the difference...
The average marks of 'm' students in a math test is (m + 5) and the average marks of 30 girls is (2m - 10). If the average marks of all students togethe...
The cost of running a mini train is partly fixed and partly variable. When 50 tickets are sold, the average cost per ticket is Rs. 45. When 70 tickets a...
In a class of 50 students, the girls are 76%. The average weight of boys is 62 kg and that of girls is 58 kg. What is the average weight (in kg) of whol...
Determine the average marks achieved by six additional aspirants if the average score of 24 aspirants in a mock test is 67. Adding the marks of these si...
The average of six numbers is 8. When three new numbers are included in such a way that the first number is  twice the second and second number is thri...