Question
Input: we 11 at 68 nice is by 23. What is step IV for
the given input? Directions : A word arrangement machine, when given a particular input, rearranges it following a particular rule. The following is the illustration of the input and steps of arrangement: Input: of 93 if 26 it eleven are 37 Step I: if 93 of 26 it eleven are 37 Step II: if 26 of 93 it eleven are 37 Step III: if 26 it 93 of eleven are 37 Step IV: if 26 it 37 of are eleven 93 The machine comes to a halt when the input is fully arranged as above.Now study the logic given above and answer the questions that follow.Solution
Words and numbers both arrange among themselves only. That is, words can’t take the place of numbers and vice versa. For the arrangement of words, the basis is the no .of letters. That is, the one with the least no. of letters interchanges with the word at the leftmost position. If the no. of letters is equal, we follow the alphabetical order. For the arrangement of numbers, we have to put them in ascending order. That is, the least number interchanges with the number at the leftmost position. The change is made as and when we come across a word or a number, not necessarily alternately Input: we 11 at 68 nice is by 23 Step I: at 11 we 68 nice is by 23 Step II: at 11 by 68 nice is we 23 Step III: at 11 by 23 nice is we 68 Step IV: at 11 by 23 is nice we 68
Which algorithm is commonly used for collaborative filtering in recommendation systems?
Which network topology uses a central node to connect all other nodes?
What is the main advantage of Hadoop's HDFS (Hadoop Distributed File System)?
What is the main purpose of a parser in a compiler?
Which of the following is NOT a potential concurrency control issue?
Which of the following clause return specific rows?
Suppose we have a printer shared between various machines in a network, and any machine or computer in a network can send a print request to the printe...
Which is not in relation to the database.
the star schema is the simplest style of data mart schema and is the approach most widely used to develop data warehouses and dimensional data marts.
Major type of computer chip