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
Which of the following types of virus, also known as spacefiller virus,infects a file using empty sections?
A vendor buys a box of fruits for ₹720 and sells them at a 25% profit. If he sells 60% of the fruits, what will be his profit on this transaction?
887, ? , 818, 749, 657, 542.
120 litres of mixture contains water and milk in the ratio 5:6 respectively. If 32 litres of the mixture is replaced by same quantity of water, then fin...
55-litres of paint is added to a mixture of paint and oil in the ratio 3:5. The ratio of paint and oil in the resulting mixture is 4:3. Find the total v...
Determine the mean of the following observations:
24, 26, 22, 25, 20, 21, 24, 25Find the number of real solutions of sinx=x
'R' invested Rs. 24,000 in SIP 'A' with a compound interest rate of 20% per annum compounded annually, and Rs. 18,600 in SIP 'B' with a simple interest ...
- What does a landscape orientation refer to?
- What was the first successful supercomputer?