Question
In which step are the elements “today 91 done
20“ found in the same order? 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 arrangedfrom 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.
Specialised program(s) designed to allow particular input or output device(s) to communicate with the rest of the computer system is called _______.
Computer store data in _____ format and perform calculation on that.
What is the purpose of AJAX in web development?
What is the primary advantage of using a snapshot-based backup method over traditional backup methods?
Which network topology connects all devices in a linear chain?
Which normal form ensures that there are no repeating groups of data within a table?
Which type of routing is manually configured by a network administrator and does not change auAtomatically?
Which type of memory can be electrically erased and reprogrammed in blocks or sectors?
Real-Time decisions, Game AI, Learning Tasks, Skill acquisition, and Robot Navigation are applications of
What is the difference between float and double in C?