Question
Which of the following was certainly the input of the
following step III? Step III: 37 46 89 61 57 72 76 98 Directions : Study the following information to answer the given questions: 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. Input: 17 56 32 70 81 25 77 92 52 23 60 97 Step I: 17 23 32 70 81 25 77 92 52 56 60 97 Step II: 17 23 32 70 81 25 77 60 52 56 92 97 Step III: 17 23 25 70 81 32 77 60 52 56 92 97 Step IV: 17 23 25 70 56 32 77 60 52 81 92 97 Step V: 17 23 25 32 56 70 77 60 52 81 92 97 Step VI: 17 23 25 32 56 70 52 60 77 81 92 97 Step VII: 17 23 25 32 52 70 56 60 77 81 92 97 Step VIII: 17 23 25 32 52 60 56 70 77 81 92 97 Step IX: 17 23 25 32 52 56 60 70 77 81 92 97 and step IX is the last step for the given input.Solution
Here the rule followed is: Step I: The smallest number interchanges its position with the first number. [In case the first number is smallest then the next number just larger than it interchanges its position with the second number.] Step II: The largest number interchanges its position with the last number. [In case the largest number is first from right end, the second largest number interchanges its position with the second number from right and so on.] These steps are repeated alternately till the numbers get arranged in ascending order and that will be the last step for the particular input. Since it is a case of arrangement previous steps can’t be determined with certainty
A bag holds 'a' red bands and 5 green bands. If two bands are drawn sequentially at random without replacement, the probability that both selected bands...
In a purse, there are 3 two-rupee coins and 4 five-rupee coins. If you randomly select 4 coins from the purse, what is the probability that you will cho...
What is the probability that the cards drawn contains 1 red card, 1 purple card and 1 yellow card?
A number is randomly chosen from 1 to 100(both inclusive). What is the probability that it is divisible by 2, 3 or 5?
- A basket contains x green apples, (x + 2) red apples and (x + 10) yellow apples. If probability of getting a red apple is 1/8 more than that of getting a g...
Karan has a 65% chance of being admitted to school L and a 55% chance at school M. His preferences are 'L', then 'M', and lastly 'N'. Assuming Karan get...
A bag contains 20 white and some black balls. If the probability of drawing a black ball from the bag is 2.5 times that of drawing a white ball, find th...
A game consists of tossing three coins once and then rolling two dice. Find the probability of getting no heads in the coin toss and a sum equal to 4 on...
15 rotten bananas are accidentally mixed with 115 good ones. It is not possible to just look at a banana and tell whether or not it is rotten. One banan...
A box holds 8 green balls, 7 blue balls, and 5 yellow balls. Three balls are picked randomly. What is the probability that at least two balls are blue?