PrajaPrep

ریزننگ · 8 منٹ

مشین ان پٹ–آؤٹ پٹ

Machine input–output

سبق

مشین ان پٹ–آؤٹ پٹ کے سوالوں میں ایک مشین الفاظ اور اعداد کو مقررہ قدموں میں ترتیب دیتی ہے۔ PO مینز میں ایسی مشین پر اکثر 5 سوالوں کا سیٹ آتا ہے۔ مشین ہر قدم پر ایک ہی کام کرتی ہے۔ یہ قاعدہ قدم I اور قدم II سے پکڑا جاتا ہے، آخری قدم سے نہیں۔

Machine input–output questions give a machine that rearranges words and numbers in fixed steps, and PO mains often carries a set of 5 questions on one such machine. The machine does one fixed thing at every step, and that single rule has to be found from Step I and Step II, not from the last step.

عام قاعدہ ہر قدم پر ایک لفظ اور ایک عدد چنتا ہے۔ لفظ لغت کی ترتیب سے آتا ہے۔ عدد باقی بچے ہوئے اعداد میں سب سے بڑا یا سب سے چھوٹا ہوتا ہے۔ یہ جوڑا بائیں سرے پر چلا جاتا ہے، اور باقی سب اپنی پرانی ترتیب میں رہتے ہیں۔ ایک قدم میں صرف چنا ہوا جوڑا ہلتا ہے۔ نہ ہلنے والے اپنی جگہ پر رہتے ہیں۔ سب سے پہلے قدم I کو ان پٹ سے ملا کر دیکھا جاتا ہے کہ کیا کہاں ہلا۔ قاعدے کو استعمال کرنے سے پہلے قدم II پر جانچ لینا چاہیے۔

The usual rule picks one word and one number at each step. The word is chosen in dictionary order, and the number is the largest or the smallest among those left. The pair then moves to the left end, and everything else keeps its old order. Only the picked pair moves, so the items that did not move stay exactly where they were. The first comparison is between Step I and the input, which shows what moved and where it went. The rule is checked on Step II before it is used.

4 الفاظ اور 4 اعداد ہوں تو زیادہ سے زیادہ 4 قدم لگتے ہیں۔ اکثر ایک کم پڑتا ہے، کیونکہ باقی سب جب سیدھے ہو جاتے ہیں تو آخری جوڑا پہلے ہی اپنی جگہ ہوتا ہے۔ شروع کرنے سے پہلے جوڑے گن لیے جائیں تو اندازہ ہو جاتا ہے کہ کتنے قدم آئیں گے۔ ہر قدم ایک لائن میں لکھا جاتا ہے، ذہن میں دوبارہ نہیں کرنا چاہیے۔

With 4 words and 4 numbers, the rearrangement takes at most 4 steps. Often it takes one fewer, because the last pair is already in place once the rest is settled. Counting the pairs before starting shows how many steps to expect. Each step is written on one line rather than redone in the head.

ان پٹ 41 park 19 lamp 76 door 33 kite ہے۔ اس سے قدم I یوں بنتا ہے: door 76 41 park 19 lamp 33 kite۔ یہاں door لغت کی ترتیب میں پہلا لفظ ہے اور 76 سب میں بڑا عدد ہے۔ قاعدہ ایک بار مل جائے تو سیٹ کے پانچوں سوالوں کا جواب نکل آتا ہے۔

The input 41 park 19 lamp 76 door 33 kite becomes Step I as door 76 41 park 19 lamp 33 kite, with door first in dictionary order and 76 the largest number. Once the rule is found, all 5 questions of the set can be answered.

حرف حذف اور حرف تبدیلی کی مشینیں

Letter-elimination and letter-modification machines

بنیادی سبق پہلے ہی عام بینک پیٹرن دیکھ چکا ہے: لغت کے ترتیب میں ایک لفظ اور سب سے بڑی یا چھوٹی عدد جوڑے کی طرح ایک سرے پر جاتے ہیں، باقی پرانی ترتیب میں رہتے ہیں۔ یہ توسیع دوسرا خاندان ہے۔ کچھ مشینیں ہر قدم پر ہر لفظ سے ایک حرف نکال دیتی ہیں۔ کچھ حروف کو مقررہ قاعدے سے بدلتی ہیں، جیسے ابجد کا اگلا حرف، یا بچے حروف الٹ دیتی ہیں۔ عدد بالکل نہ بھی ہوں۔ طریقہ ویسا ہی ہے: قدم I سے قاعدہ پکڑیں، قدم II پر تصدیق کریں، پھر سیٹ کے جواب دیں۔

The base lesson already covers the usual bank pattern: one word in dictionary order and one number, largest or smallest, moving as a pair to one end, with the rest keeping their old order. This extension is a different family. Some machines drop a letter from every word at each step. Some change letters by a fixed rule, such as the next letter in the alphabet, or they reverse the leftover letters. Numbers may be absent altogether. The method is the same as before: find the rule from Step I, and confirm it on Step II, before answering the set.

حرف حذف کی مشین میں قدم I کے لفظ کو ملتے ان پٹ لفظ سے ملائیں۔ اگر BROWN سے ROWN، TABLE سے ABLE، STAND سے TAND بنے، تو ہر لفظ کا پہلا حرف ہٹا ہے، باقی ترتیب وہی ہے۔ اگلا قدم نیا پہلا حرف پھر ہٹائے گا: ROWN سے OWN۔ تبدیلی کی مشین میں ہر حرف ابجد میں ایک جگہ ہل سکتا ہے، LAST سے MBTU بنتا ہے۔ کبھی حرف ہٹنے کے بعد باقی الٹ بھی جاتے ہیں، BROWN سے NWOR بنتا ہے۔ جن سیٹوں میں عدد نہیں، یا قدم I کے الفاظ ان پٹ کے بدلے ہوئے حروف ہیں، ان پر لغت اور عدد والی ترتیب نہ ٹھونسیں۔

In a letter-elimination machine, compare each Step I word with the matching input word. If BROWN becomes ROWN, TABLE becomes ABLE and STAND becomes TAND, the first letter of every word has been dropped, and the leftover letters keep their order. The next step would drop the new first letter again: ROWN becomes OWN, and so on. In a modification machine, each letter may move one place in the alphabet, so LAST becomes MBTU. Sometimes the leftover letters are also reversed after a letter is dropped, so BROWN becomes NWOR. Do not force the dictionary-and-number sort onto a set that has no numbers, or whose Step I words are clearly shortened or altered letters of the input words.

پرچے چند الفاظ کا ان پٹ، قدم I اور قدم II دے کر پوچھتے ہیں کہ اگلا قدم کیسا ہوگا، یا کون سا حرف ہٹا۔

Papers give a short input of words, then Step I and Step II, and ask what a later step will look like, or which letter was dropped.

ان پٹ BROWN TABLE STAND، اگر قدم I ہو ROWN ABLE TAND، تو قاعدہ ہے 'ہر لفظ کا پہلا حرف ہٹاؤ'۔ پھر قدم II ہوگا OWN BLE AND۔

Input BROWN TABLE STAND, if Step I is ROWN ABLE TAND, the rule is 'drop the first letter of each word'. Step II is then OWN BLE AND.

صرف حروف بدلنے والے سیٹ پر عام لفظ اور عدد والی لغت کی ترتیب ٹھونسنا۔

Forcing the usual word-and-number dictionary sort onto a set that only changes letters.

وہ مشینیں جو لفظ کی لمبائی، حرف علت یا صحیح، یا طاق اور جفت اعداد کے مطابق ترتیب دیتی ہیں

Machines that arrange by word length, by vowel or consonant, or by odd and even numbers

اس سبق کے پہلے صفحے پر وہ عام بینک مشین پہلے آ چکی ہے جو ایک لغتی لفظ اور ایک عدد جوڑے کے طور پر ہلاتی ہے، اور وہ بعد کا خاندان جو حروف گراتا یا بدلتا ہے۔ یہ اضافہ تیسرا خاندان ہے۔ کچھ مشینیں سب سے چھوٹا یا لمبا لفظ ہلاتی ہیں۔ کچھ وہ الفاظ پہلے جماتی ہیں جو حرف علت سے شروع ہوں، پھر وہ جو حرف صحیح سے شروع ہوں۔ کچھ طاق اعداد ایک طرف اور جفت اعداد دوسری طرف بھیجتی ہیں۔ طریقہ اب بھی وہی ہے: مرحلہ I سے قاعدہ نکالو، مرحلہ II پر تصدیق کرو، پھر سیٹ کا جواب لکھو۔ لغت اور عدد کی ترتیب، یا حرف گرانے کا قاعدہ، ایسے سیٹ پر نہ تھوپو جس کے مراحل صاف طور پر لمبائی، پہلا حرف، یا جفت طاق پر چلتے ہوں۔

An earlier page on this lesson already walks through the usual bank machine that moves one dictionary word and one number as a pair, and through a later family that drops or changes letters. This addition is a third family. Some machines move the shortest or longest word. Some gather words that start with a vowel before words that start with a consonant. Some send odd numbers one way and even numbers the other. The method is still the same: find the rule from Step I, confirm it on Step II, then answer the set. Do not force the dictionary-and-number sort, or a letter-dropping rule, onto a set whose steps clearly follow length, first-letter, or parity.

لمبائی کی مشین میں ہر مرحلے پر ایک لفظ مرتب ہوتا ہے، عام طور پر باقی میں سب سے چھوٹا لفظ بائیں جاتا ہے؛ اگر دو لفظ برابر لمبے ہوں تو لغتی ترتیب ٹائی توڑتی ہے، باقی پرانی ترتیب میں رہتے ہیں۔ حرف علت اور صحیح کی مشین میں حرف علت سے شروع ہونے والے الفاظ لغتی ترتیب میں بائیں، ہر مرحلے پر ایک، مرتب ہونے کے بعد ہی صحیح سے شروع ہونے والے الفاظ کو وہی سلوک ملتا ہے۔ جفت طاق مشین میں ایک طاق اور ایک جفت عدد ایک ہی مرحلے میں ہل سکتے ہیں: عام نمونہ باقی میں سب سے چھوٹا طاق عدد بائیں سرے پر اور سب سے بڑا جفت عدد دائیں سرے پر بھیجتا ہے، الفاظ اپنی نسبتی ترتیب رکھتے ہیں۔ چھوٹا ان پٹ کاغذ پر کرو۔ لمبائی کے لیے mango table ant peach ice لو۔ Ant اور ice دونوں تین حروف کے ہیں، اس لیے لغت میں ant پہلے: مرحلہ I ant mango table peach ice، مرحلہ II ant ice mango table peach۔ حروف علت کے لیے brown apple under table orange۔ حرف علت سے شروع الفاظ لغتی ترتیب میں apple، orange، under، اس لیے مرحلہ I apple brown under table orange، مرحلہ II apple orange brown under table۔ جفت طاق کے لیے 41 park 18 lamp 27 door 36۔ سب سے چھوٹا طاق 27، سب سے بڑا جفت 36، اس لیے مرحلہ I 27 41 park 18 lamp door 36، مرحلہ II 27 41 park lamp door 18 36۔ پھندا یہ ہے ہر چیز ایک ساتھ ترتیب دینا، یا لمبائی، پہلے حرف، یا جفت طاق پر چلنے والے سیٹ پر لغت اور عدد کے جوڑے کا قاعدہ، یا حرف گرانے کا قاعدہ تھوپنا۔

In a length machine, one word is arranged at each step, usually the shortest remaining word moving to the left; if two words have the same length, alphabetical order breaks the tie, and the other items keep their old order. In a vowel-and-consonant machine, words that start with a vowel are arranged alphabetically to the left, one per step, and only after those are placed do words that start with a consonant get the same treatment. In a parity machine, an odd number and an even number may move in the same step: a usual pattern sends the smallest remaining odd number to the left end and the largest remaining even number to the right end, while the words keep their relative order. Work a short input on paper. For length, take mango table ant peach ice. Ant and ice both have three letters, so ant comes first alphabetically: Step I is ant mango table peach ice, and Step II is ant ice mango table peach. For vowels, take brown apple under table orange. The vowel-start words in alphabetical order are apple, orange, under, so Step I is apple brown under table orange, and Step II is apple orange brown under table. For parity, take 41 park 18 lamp 27 door 36. The smallest odd is 27 and the largest even is 36, so Step I is 27 41 park 18 lamp door 36, and Step II is 27 41 park lamp door 18 36. The trap is to sort every item at once, or to apply a dictionary-and-number pair rule, or a letter-dropping rule, to a set that is clearly following length, first-letter, or parity.

پرچے چھوٹا ان پٹ اور پہلے دو مراحل دے کر پوچھتے ہیں بعد کا مرحلہ کیسا لگے گا، ترتیب کتنے مرحلوں میں مکمل ہوگی، یا ایک سرے پر کون سی چیز ہوگی۔

Papers give a short input and the first two steps, then ask what a later step looks like, how many steps finish the arrangement, or which item sits at one end.

لمبائی ان پٹ mango table ant peach ice سے مرحلہ I ant mango table peach ice اور مرحلہ II ant ice mango table peach بنتا ہے۔ حرف علت ان پٹ brown apple under table orange سے مرحلہ I apple brown under table orange اور مرحلہ II apple orange brown under table۔ جفت طاق ان پٹ 41 park 18 lamp 27 door 36 سے مرحلہ I 27 41 park 18 lamp door 36 اور مرحلہ II 27 41 park lamp door 18 36۔ آگے بڑھنے سے پہلے مرحلہ II پر قاعدہ تصدیق کرو۔

Length input mango table ant peach ice gives Step I ant mango table peach ice and Step II ant ice mango table peach. Vowel input brown apple under table orange gives Step I apple brown under table orange and Step II apple orange brown under table. Parity input 41 park 18 lamp 27 door 36 gives Step I 27 41 park 18 lamp door 36 and Step II 27 41 park lamp door 18 36. Confirm the rule on Step II before going further.

ہر چیز ایک ساتھ ترتیب دینا، یا لمبائی، پہلے حرف، یا جفت طاق پر چلنے والے سیٹ پر لغت اور عدد کے جوڑے کا قاعدہ، یا حرف گرانے کا قاعدہ تھوپنا۔

Sorting every item in one go, or forcing a dictionary-and-number pair rule, or a letter-dropping rule, onto a set that is clearly following length, first-letter, or parity.

ان پٹ–آؤٹ پٹ: متفرق مشینیں، اور کسی قدم سے پیچھے کام

Input–output: miscellaneous machines and working backwards from a step

بنیاد پہلے سٹیپ I کا ان پٹ سے موازنہ کر کے قاعدہ ڈھونڈتی ہے، اور اکثر لغت کی ترتیب میں ایک لفظ اور بڑی یا چھوٹی ایک عدد بائیں بھیجتی ہے، باقی پرانی ترتیب میں رہتے ہیں۔ وہ پڑاؤ رہتے ہیں۔ یہ کٹ دو مزید درسی مہارتیں ہیں۔ پہلے، ایک متفرق مشین چنی عدد کو دائیں سرے پر بھیج سکتی ہے، بائیں نہیں، چنا لفظ اب بھی بائیں جاتا ہے؛ باقی ترتیب رکھتے ہیں۔ دوسری، قاعدہ معلوم ہو تو بعد کا قدم پیچھے چلایا جا سکتا ہے: بائیں سرے کا لفظ اور دائیں سرے کی عدد اتار کر ان اشیا میں واپس رکھیں جو نہیں ہلیں، تاکہ پچھلا قدم یا ان پٹ آئے۔ بعد کے قدم کو ان پٹ کی طرح پڑھنا، یا ہر مشین میں لفظ اور عدد دونوں بائیں جانے پر مجبور کرنا، جیسا بنیاد پہلے سکھا چکی، پھندا ہے۔

The base already finds the rule by comparing Step I with the input, and often moves one word in dictionary order and one number, largest or smallest, to the left, while the other items keep their old order. Those stay waypoints. This cut is two further school skills. First, a miscellaneous machine may send the chosen number to the right end, not the left, while the chosen word still goes to the left; the rest keep their order. Second, once that rule is known, a later step can be run backwards: the word that sits at the left end, and the number that sits at the right end, are peeled off and placed back among the items that never moved, to recover the previous step or the input. The trap is to read a later step as if it were the input, or to force every machine to move both the word and the number to the left, as the base already taught.

مشین ان پٹ–آؤٹ پٹ: قدم، آخری قدم، اور مقام

Machine input-output: steps, last step, and positions

بنیاد پہلے سٹیپ I کا ان پٹ سے موازنہ کر کے قاعدہ ڈھونڈتی ہے۔ اسی سبق کی پہلے والی کٹ متفرق دائیں سرے کی حرکتیں اور پیچھے کام پہلے دیکھ چکی ہے۔ وہ پڑاؤ رہتے ہیں۔ یہ کٹ معیاری بائیں جانے والی مشین پر رہتی ہے: ہر قدم پر باقی میں اگلا لغت لفظ، اور باقی میں سب سے چھوٹی عدد بائیں جاتے ہیں، لفظ عدد سے پہلے، باقی ترتیب رکھتے ہیں، جب تک ہر چنا جوڑا نہ ہل جائے۔ امتحان پھر پوچھتا ہے آخری ترتیب میں کتنے قدم لگتے ہیں، وہ آخری قدم کیا ہے، اور کسی قدم میں بائیں سے تیسری یا دائیں سے دوسری کون سی شے ہے۔ آخری جوڑے کے ہلنے کے بعد ایک اور قدم گننا، یا دائیں سرے کی متفرق مشین کو یہ بائیں جانے والی کٹ پڑھنا، پھندا ہے۔

The base already finds the rule by comparing Step I with the input. A earlier cut on this lesson already treats miscellaneous right-end moves and working backwards. Those stay waypoints. This cut stays with a standard left-moving machine: in each step the next dictionary word among those left, and the smallest number among those left, move to the left, the word just before the number, and the other items keep their order, until every chosen pair has moved. The exam then asks how many steps the last arrangement takes, what that last step is, and which item sits at a named place, third from the left or second from the right, in a named step. The trap is to count a step after the last pair has already moved, or to read a right-end miscellaneous machine as if it were this left-moving cut.

مشین ان پٹ آؤٹ پٹ: الفاظ بائیں، اعداد دائیں

Machine input-output: words left, numbers right

بنیاد پہلے سٹپ I کا ان پٹ سے موازنہ کر کے قاعدہ ڈھونڈتی ہے۔ اس سبق کی پہلی کٹیں دائیں سرے کی متفرق حرکتیں، پیچھے سے کام، اور وہ معیاری بائیں چلنے والی مشین پہلے دیکھ چکی ہیں جس میں اگلا لغتی لفظ اور باقی سب سے چھوٹا عدد دونوں بائیں جاتے ہیں۔ وہ پڑاؤ رہتے ہیں۔ یہ کٹ دوسرا نقشہ ہے: ہر قدم میں ابھی نہ سجے ہوئے میں اگلا لغتی لفظ نہ سجے بیچ کے بائیں سرے پر جاتا ہے، اور نزولی ترتیب میں اگلا عدد دائیں طرف، پہلے سجے اعداد کے فوراً بائیں بیٹھتا ہے، باقی چیزیں اپنی نسبتی ترتیب رکھتی ہیں۔ ان پٹ 'bag 31 den 14 cat 25' سے سٹپ I 'bag den 14 cat 25 31' ہے، سٹپ II 'bag cat den 14 25 31' ہے، اور آخری قدم وہی لائن ہے، کیونکہ bag، cat، den بائیں سے لغتی ترتیب میں بیٹھتے ہیں، اور 31، 25، 14 دائیں سے نزولی ترتیب میں سج کر پوری لائن میں 14 25 31 دکھائی دیتے ہیں۔ لفظ اور سب سے چھوٹے عدد دونوں کو بائیں لے جانا، جو پہلے پڑھی بائیں چلنے والی مشین ہے، یا اعداد کو دائیں طرف چڑھتی ترتیب میں سجانا، پھندا ہے۔

The base already finds the rule by comparing Step I with the input. Earlier cuts on this lesson already treat miscellaneous right-end moves, working backwards, and a standard left-moving machine in which the next dictionary word and the smallest remaining number both move to the left. Those stay waypoints. This cut is a different pattern: in each step the next word in dictionary order among those still unarranged moves to the left end of the unarranged middle, and the next number in descending order is placed at the right, immediately left of the numbers already arranged, while the other items keep their relative order. From the input 'bag 31 den 14 cat 25', Step I is 'bag den 14 cat 25 31', Step II is 'bag cat den 14 25 31', and the last step is already that line, because bag, cat, den sit in dictionary order from the left and 31, 25, 14 have been placed from the right in descending order, which reads 14 25 31 in the finished line. The trap is to move both the word and the smallest number to the left, which is the already-taught left-moving machine, or to arrange the numbers in ascending order at the right.

یاد رکھیں

پہیلی پڑھنے کی شروعات قدم I کو ان پٹ سے ملانے سے ہوتی ہے۔ تب پتہ چلتا ہے کہ کیا ہلا اور کہاں گیا۔ قاعدہ استعمال سے پہلے قدم II پر جانچ لیا جاتا ہے، اور جو نہیں ہلے وہ پرانی ترتیب میں رہتے ہیں۔

Reading the puzzle starts with comparing Step I to the input, which shows what moved and where it went. The rule is checked on Step II before it is used, and the items that did not move keep their old order.

قدم کبھی لفظ–عدد جوڑوں سے زیادہ نہیں ہوتے۔ ہر قدم ایک لائن میں لکھا جاتا ہے، ذہن میں دوبارہ نہیں کیا جاتا۔

Steps never outnumber the word–number pairs. Each step is written on one line, not redone in the head.

پیپر یہ کیوں پوچھتا ہے

سیٹ کے پانچوں سوال ایک ہی قاعدے پر ٹکے ہوتے ہیں۔ یہ قاعدہ قدم I اور قدم II سے مل جائے تو انہی قدموں سے پانچوں سوالوں کا جواب نکل آتا ہے۔

The whole set of 5 questions rests on one rule. Once that rule is found from Step I and Step II, all 5 questions of the set can be answered from the same steps.

حل شدہ مثال

لغت کی ترتیب میں الفاظ door، kite، lamp، park ہیں، اور بڑے سے چھوٹے اعداد 76، 41، 33، 19 ہیں۔ قدم II یوں ہے: door 76 kite 41 park 19 lamp 33۔ قدم III یوں ہے: door 76 kite 41 lamp 33 park 19۔ آخری جوڑا پہلے ہی اپنی جگہ ہے، اس لیے مشین قدم III پر رک جاتی ہے۔

The words in dictionary order are door, kite, lamp, park, and the numbers from the largest are 76, 41, 33, 19. Step II is door 76 kite 41 park 19 lamp 33, and Step III is door 76 kite 41 lamp 33 park 19. The last pair is already in place, so the machine stops at Step III.

عام غلطی

عام غلطی یہ ہے کہ نہ ہلنے والے عناصر کو بھی نئی ترتیب دے دی جائے۔ ایک قدم میں صرف چنا ہوا جوڑا بائیں سرے پر جاتا ہے، باقی سب اپنی پرانی ترتیب میں رہتے ہیں۔The common mistake is rearranging the items that did not move. In one step only the picked pair goes to the left end, and every other item keeps its old order.

ماخذ: پرجا پریپ کا اپنا مشقی نوٹ۔ عوامی امتحانات کے انداز پر مبنی (سرکاری وابستگی نہیں)۔

سائن اپ کر کے پڑھائی جاری رکھیں

یہ سبق پڑھنا مفت ہے۔ مفت سائن اپ کریں، ایپ میں اگلا سبق کھولیں، اپنی پیش رفت رکھیں، اور اسی موضوع پر سوال کی پریکٹس کریں۔

سائن اپ کر کے پڑھائی جاری رکھیں