Question
How many steps are required to complete the
rearrangement of the given input? 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: 22 mother 85 63 or dear 32 combine 43 10 super never Step I: 10 mother 85 63 or dear 32 combine 43 super never 22 Step II: 32 10 mother 85 63 or dear combine super never 22 43 Step III: 63 32 10 mother or dear combine super never 22 43 85 Step IV: combine 63 32 10 mother or super never 22 43 85 dear Step V: mother combine 63 32 10 or super 22 43 85 dear never Step VI: or mother combine 63 32 10 22 43 85 dear never super And step VI is the last step of the above input. As per the rules followed in the above steps, find out in each of the following questions, the appropriate step for the given input. INPUT : “course 65 10 race 85 in 20 heal today 52 91 done”Solution
INPUT : course 65 10 race 85 in 20 heal today 52 91 done Step I: 10 course 65 race 85 in heal today 52 91 done 20 Step II: 52 10 course race 85 in heal today 91 done 20 65 Step III: 85 52 10 course race in heal today done 20 65 91 Step IV: course 85 52 10 race in heal today 20 65 91 done Step V: heal course 85 52 10 race today 20 65 91 done in Step VI: race heal course 85 52 10 20 65 91 done in today How words are arranged in the final step: Arrangement starts from the middle of the arrangement. First the smallest number and then second smallest number on the right of the smallest number. Then, third smallest number is on the immediate left of the first number and fourth smallest number on the immediate right of the second smallest number and so on. After all the numbers get arranged then, the first word(alphabetically) is to the left of the first arranged number and then second word is to immediate right of the last arranged number. Then, the third word is to the left of the first arranged word and fourth word to the immediate right of the second arranged word so on. What machine is doing in each step: The machine first rearranges numbers and then words. In the first step smallest number is getting arranged from the left side and the second smallest number is getting arranged from the right side. In each of the further step same procedure is followed as in the previous step and number and words arranged in the previous step are shifting one place to their left and right respectively.
The government will supply 35 million tonne (MT) of iron-fortified rice to the 800 million beneficiaries under the National Food Security Act (NFSA) by ...
What are the specific targets announced by Prime Minister Narendra Modi during the 26th edition of the Conference of Parties (CoP-26) in Glasgow, Scotland?
According to the data provided by the defense expenditure increased by 3.7 per cent in real terms to reach a record high of _____ in 2022.
IFFCO will collaborate with ________ will manufacture Nano DAP for a period of three years.
Which private sector bank has launched its mobile health services for a broad category of support staff, including essential and domestic service person...
Why did Bhutan's Prime Minister announce the completion of the National Dog Population Management and Rabies Control Project?
In which city was the country's first solar roof cycling track, named Healthway?
Which hijacked ship's Bulgarian nationals were assured by Prime Minister Narendra Modi to return home soon after being rescued by the Indian Navy?
Who won the title of Saudi Arabia Grand Prix 2023?
Which Indian long jumper successfully defended his title and won gold at the International Jumping Meeting in Greece?