PrajaPrep

ریزننگ · 8 منٹ

کوڈ شفٹ

Coding by shift

سبق

جب CAT سے DBU بنتا ہے تو ہر حرف ایک قدم آگے بڑھا ہے، یعنی +1 ہی پورا نقشہ ہے۔ اگر CAT سے XZG بنے تو نقشہ غالباً الٹی ابجد ہے۔ اس میں A کا جوڑ Z اور B کا Y سے ہے۔

When CAT becomes DBU, every letter has moved one step forward, so +1 is the whole map. When CAT becomes XZG, the map is probably the reverse alphabet, where A pairs with Z and B pairs with Y.

وہی نقشہ نئے لفظ پر لگایا جاتا ہے، اور بیچ میں دوسرا نقشہ نہیں گھڑا جاتا۔ اوپر اصل حروف اور نیچے کوڈ کے حروف لکھ کر دو قطاریں بنائیں تو قدم سامنے آ جاتا ہے۔ پھر وہ قدم دوسرے حرف پر بھی جانچا جا سکتا ہے، صرف پہلے پر نہیں۔

The same map is then applied to the new word, and no second map is invented halfway through. Two rows make the step visible, plain letters above and code letters below. The step can then be tested on the second letter and not only on the first.

+1 کے ساتھ DOG سے EPH بنتا ہے، اور اسی +1 کے ساتھ SUN سے TVO۔ ایک مستقل شفٹ ہی پورا سوال ہے، اور لفظ کا دوسرا حرف اسی کو ثابت کرتا ہے۔

DOG with +1 gives EPH, and SUN with the same +1 gives TVO. One consistent shift is the whole question, and the second letter of the word is what proves it.

پہلے حرف پر پیٹرن اچھا لگے تو بھی دوسرے حرف پر وہ ٹوٹ سکتا ہے۔ اس لیے پیٹرن پر بھروسا کرنے کی بجائے پوزیشن گننا بہتر ہے۔

A pattern that looks right on the first letter may break on the second. Counting positions is safer than trusting the look of the word.

ہر کوڈ حروف کو حروفِ تہجی میں آگے نہیں کھسکاتا۔ بہت سے کوڈ صرف لفظ کے حروف کی جگہ بدلتے ہیں۔ عام نمونے یہ ہیں: لفظ کو الٹا لکھنا، ہر آدھے کو الگ الٹنا، ہر دو پڑوسی حروف کی جگہ بدلنا، یا صرف پہلا اور آخری حرف بدلنا۔ دی گئی مثال کو ان نمونوں سے ایک ایک کر کے جانچیں: لفظ اور اس کے کوڈ کو حرف بہ حرف ملا کر دیکھیں کہ ہر حرف کہاں گیا۔ جگہیں مل جائیں تو نئے لفظ پر وہی حرکت لگائیں، اور کوئی حرف نہ کھسکائیں، کیونکہ صرف جگہیں بدلتی ہیں۔

Not every code shifts letters along the alphabet. Many simply rearrange the letters of the word. Common patterns are writing the word backwards, reversing each half separately, swapping each pair of neighbouring letters, or swapping only the first and last letters. Test the given example against these patterns one by one: line up the word and its code letter by letter and see where each letter has moved. Once the positions match, apply the same movement to the new word, and do not shift any letter, because only positions change.

الٹ حروف اور بڑھتی ہوئی ہلچل

Opposite letters and an increasing shift

الٹ حرف کے کوڈ میں A کا جوڑا Z، B کا Y، C کا X ہے، اس لیے CAT کا کوڈ XZG ہے۔ بڑھتی ہوئی ہلچل میں پہلا حرف ایک مقام، دوسرا دو، تیسرا تین ہلتا ہے، اس لیے ACE کا کوڈ BEH ہے (A+1=B، C+2=E، E+3=H)۔ ہر حرف پر برابر +1 ہلچل لگانا، یا اسے ملا جلا حرفی–عددی کوڈ سمجھنا، عام غلطی ہے۔

In an opposite-letter code, A pairs with Z, B with Y, C with X, and so on, so CAT is coded as XZG. In an increasing-shift code, the first letter moves one place, the second two places, the third three places, and so on, so ACE is coded as BEH (A+1=B, C+2=E, E+3=H). A common slip is to apply a flat +1 shift to every letter, or to treat this as a mixed letter-number code.

یاد رکھیں

اگر CAT سے DBU بنتا ہے تو ہر حرف +1 بڑھا ہے۔ اگر CAT سے XZG بنے تو نقشہ الٹی ابجد ہو سکتا ہے۔ اس میں A کے مقابل Z اور B کے مقابل Y ہیں۔ وہی نقشہ نئے لفظ پر لگایا جاتا ہے اور بیچ میں دوسرا نقشہ نہیں گھڑا جاتا۔

If CAT becomes DBU, each letter has moved +1. If CAT becomes XZG, the map may be the reverse alphabet, with A against Z and B against Y. The same map is applied to the new word, and no second map is invented halfway through.

اصل اور کوڈ کی دو قطاریں لکھی جائیں۔ پوزیشن گننا اس پیٹرن کو دیکھنے سے بہتر ہے جو دوسرے حرف پر ٹوٹ جائے۔

Writing two rows, plain letters above and code letters below, keeps the step visible. Counting positions is safer than seeing a pattern that breaks on the second letter.

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

ایک مستقل شفٹ ہی پورا سوال ہے، اور لفظ کا دوسرا حرف اسی کو ثابت کرتا ہے۔ صرف پہلے حرف پر چلنے والا نقشہ ابھی پکا نہیں ہوتا۔

One consistent shift is the whole question, and the second letter of the word is what proves it. A map that works on the first letter alone is not yet confirmed.

حل شدہ مثال

اصل لفظ اوپر اور کوڈ نیچے رکھیں۔ پھر CAT کے نیچے DBU سے تینوں حروف پر +1 نظر آتا ہے۔ جب سب مل جائیں تو نئے لفظ پر وہی +1 لگایا جاتا ہے۔

Put the plain word on top and the code underneath, so CAT with DBU below it shows +1 on every one of the three letters. When all of them match, the same +1 is applied to the new word.

عام غلطی

عام غلطی یہ ہے کہ پہلے حرف پر دلکش پیٹرن دیکھ کر دوسرے حرف کی جانچ نہ کی جائے۔ وہ پیٹرن دیکھنے میں درست لگتا ہے، اسی لیے دوسرا حرف پرکھے بغیر رہ جاتا ہے۔The common slip is seeing a pleasing pattern on the first letter and never checking the second one. The pattern looks fine at a glance, so the second letter goes unchecked.

ماخذ: TOSS / SCERT انٹرمیڈیٹ · کانسٹیبل اینیکسر II

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

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

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