Electrical Engineering 2021 Paper II 50 marks Prove

Paper II — Q8

(a)(i) Prove that the minimum distance of any linear (n, k) block code satisfies dmin ≤ 1 + n – k. (5 marks) (a)(ii) Show that…

(a)
(i)

Prove that the minimum distance of any linear (n, k) block code satisfies dmin ≤ 1 + n – k. 5 marks

(ii)

Show that the minimum Hamming distance of a linear block code is equal to the minimum number of columns of its parity check matrix that are linearly dependent. From this conclude that the minimum Hamming distance of a Hamming code is always equal to 3. 15 marks

(b)

A commercial interface unit uses different names for the handshake lines associated with the transfer of data from the I/O device into the interface unit. The interface input handshake line is labelled STB (strobe), and the interface output handshake line is labelled IBF (input buffer full). A low-level signal on STB loads data from the I/O bus into the interface data register. A high-level signal on IBF indicates that the data item has been accepted by the interface. IBF goes low after an I/O read signal from the CPU when it reads the content of the data register.

(i)

Draw the block diagram showing the CPU, the interface, and the I/O device together with the pertinent interconnections among the three units.

(ii)

Draw a timing diagram for the handshaking transfer.

(iii)

Obtain a sequence of events flowchart for the transfer from the device to the interface and from the interface to the CPU. 20 marks

(c)

For a 3-bus power system, assume

Voltage at bus – 1 : V₁ = (1·05 + j 0) pu,

Voltage at bus – 2 : V₂ = (0·9812 – j 0·0522) pu and

Voltage at bus – 3 : V₃ = (0·999 – j 0·0468) pu.

The line impedances are shown below :

Bus code Impedances (in p.u.)

1 – 2 (0·02 + j 0·04)

1 – 3 (0·01 + j 0·03)

2 – 3 (0·0125 + j 0·025)

Compute Real and Reactive power loss in all the lines and also compute total system loss. 10 marks

हिंदी में प्रश्न पढ़ें
(a)
(i)

सिद्ध करें कि किसी रैखिक (n, k) खंड कूट (कोड) की न्यूनतम दूरी का मान dmin ≤ 1 + n – k को संतुष्ट करता है | (5 अंक)

(ii)

दर्शाइए कि एक रैखिक खंड कूट की न्यूनतम हैमिंग दूरी इसकी पैरिटी चेक मैट्रिक्स जो कि रेखीय आधारित (आश्रित) है के न्यूनतम स्तंभों की संख्या के बराबर है | उपरोक्त से निष्कर्ष निकालिए कि हैमिंग कूट की न्यूनतम हैमिंग दूरी हमेशा 3 होती है | (15 अंक)

(b)

एक वाणिज्य अंतःप्रेष्ट इकाई द्वारा I/O युक्ति से अंतःप्रेष्ट इकाई में डाटा स्थानांतरित करने हेतु संबद्ध हैंडशेक लाइनों के लिए भिन्न नामों का उपयोग होता है | अंतःप्रेष्ट निवेशक हैंडशेक लाइन पर STB (स्ट्रोब) अंकित किया गया है व निर्गत हैंडशेक लाइन पर IBF (इनपुट बफर फुल) अंकित किया गया है | निम्नतर संकेत अवस्था में STB डाटा को I/O बस से अंतःप्रेष्ट डाटा पंजी में भारित (लोड) किया जाता है | STB पर उपस्थित उच्च स्तर संकेत दर्शित करता है कि अंतःप्रेष्ट ने डाटा को ग्रहण कर लिया है | CPU से संकेतों को I/O द्वारा पढ़ने के बाद IBF का मान निम्न हो जाता है, जब यह डाटा पंजी के कंटेंट को पढ़ लेता है |

(i)

खंड आलेख की सहायता से CPU, अंतःप्रेष्ट व I/O युक्ति को दर्शाते हुए आरेखण करें | साथ ही तीनों इकाइयों के मध्य उपयुक्त अंतरसंयोजनों को भी आलेख में प्रदर्शित करें |

(ii)

हैंडशेकिंग स्थानांतरण के लिए समय-आलेख का आरेखण करें |

(iii)

युक्ति से अंतःप्रेष्ट व अंतःप्रेष्ट से CPU में स्थानांतरण की क्रमबद्ध घटनाओं का प्रवाह चार्ट बनायें | (20 अंक)

(c)

एक 3-बस शक्ति तंत्र के लिए माने कि

बस न. 1 पर बोल्टता : V₁ = (1·05 + j 0) pu,

बस न. 2 पर बोल्टता : V₂ = (0·9812 – j 0·0522) pu

बस न. 3 पर बोल्टता : V₃ = (0·999 – j 0·0468) pu. है |

लाइनों की प्रतिबाधा निम्नलिखित है :

बस कोड प्रतिबाधा (p.u. में)

1 – 2 (0·02 + j 0·04)

1 – 3 (0·01 + j 0·03)

2 – 3 (0·0125 + j 0·025)

सभी लाइनों में वास्तविक व प्रतिघाती शक्ति की हानि (ह्रास) की गणना करें व तंत्र की संपूर्ण शक्ति हानि की गणना करें | (10 अंक)

Q8 of the 2021 UPSC Mains Electrical Engineering Paper II, as printed
The question as printed in the 2021 Electrical Engineering paper

The figure this question refers to, in words

The question paper is a scan and the diagram did not survive as text. This is the figure as read from the original page — every component, value and label — so the question can be worked from the text below.

(c) Table: Bus code | Impedances (in p.u.) 1 - 2 | (0.02 + j 0.04) 1 - 3 | (0.01 + j 0.03) 2 - 3 | (0.0125 + j 0.025)

Model answer

Drafted with AI by UPSC Answer Check against this question's marking rubric, to the expected length. UPSC does not publish answers for Mains — this is one way to score well, not an official key. How we build rubrics and answers.

(a)(i) Let H be the (n−k)×n parity-check matrix of the (n,k) code. Its rank is at most n−k, so any n−k+1 columns of H are linearly dependent. Hence some nonzero c with at most n−k+1 nonzero entries satisfies Σcᵢhᵢ = Hcᵀ = 0. Such a c is a nonzero codeword of weight ≤ n−k+1. Since dmin is the least nonzero weight, dmin ≤ n−k+1 = 1+n−k. Equality defines MDS codes.

(a)(ii) A vector c is a codeword iff Hcᵀ = Σcᵢhᵢ = 0. The nonzero positions of a codeword of weight w therefore index w linearly dependent columns of H, so the least number s of dependent columns satisfies s ≤ dmin. Conversely, take a minimal dependent set of s columns with Σαⱼhⱼ = 0 over that set; minimality makes every αⱼ nonzero. Put cⱼ = αⱼ on those positions and 0 elsewhere. This is a nonzero codeword of weight s, so dmin ≤ s. Hence dmin = s.

For a binary Hamming code (n = 2ᵐ−1, m ≥ 2), the columns of H are all the nonzero m-tuples, each once. No column is zero, so no single column is dependent. Over GF(2) two columns are dependent only if equal, and all are distinct, so no two are dependent. For any two columns a and b, a+b is nonzero and differs from both, so it is also a column; thus a, b and a+b are three dependent columns. Therefore s = 3 and dmin = 3.

(b)(i) Block diagram. The I/O device and the interface are joined by the I/O data bus and two handshake lines: STB (device to interface, active low) and IBF (interface to device, active high). The interface holds a data register and the IBF flag. The interface connects to the CPU through the data bus, the address-decode line and the I/O read (RD) control line; IBF can also reach the CPU as a status bit or interrupt request.

Diagram: Block diagram: CPU, interface and I/O device with STB/IBF handshake

(b)(ii) Timing diagram. The waveforms run in this order: data becomes valid on the I/O bus; STB falls low, and the low level loads the data into the interface register; IBF rises high soon after, showing that the item is accepted and the device must not send another; STB returns high and the device may remove the data; the CPU asserts RD, the register contents go to the CPU data bus; IBF falls low after the read, so the interface is ready for the next item.

Diagram: Timing diagram of the STB/IBF handshake input transfer

(b)(iii) Flowchart. Device to interface: the device waits until IBF = 0, places data on the bus and makes STB = 0. The interface loads its register and sets IBF = 1. The device sees IBF = 1, makes STB = 1 and removes the data. Interface to CPU: the CPU polls IBF (or takes an interrupt); if IBF = 1 it issues RD; the interface puts the register on the CPU bus; after the read it clears IBF = 0, and the cycle repeats.

Diagram: Sequence-of-events flowchart for the STB/IBF handshake

(c) Line current Iᵢⱼ = (Vᵢ−Vⱼ)/Zᵢⱼ; loss = |Iᵢⱼ|²Zᵢⱼ = Pᵢⱼ + jQᵢⱼ. Line shunt elements are neglected.

Line 1–2: V₁−V₂ = 0.0688 + j0.0522, |ΔV|² = 0.007458, |Z|² = 0.0020, |I|² = 3.7291. P = 3.7291×0.02 = 0.07458 pu; Q = 3.7291×0.04 = 0.14917 pu.

Line 1–3: V₁−V₃ = 0.051 + j0.0468, |ΔV|² = 0.004791, |Z|² = 0.0010, |I|² = 4.7912. P = 0.04791 pu; Q = 0.14374 pu.

Line 2–3: V₂−V₃ = −0.0178 − j0.0054, |ΔV|² = 0.000346, |Z|² = 0.00078125, |I|² = 0.44288. P = 0.005536 pu; Q = 0.011072 pu.

Total loss: P = 0.07458 + 0.04791 + 0.00554 = 0.1280 pu; Q = 0.14917 + 0.14374 + 0.01107 = 0.3040 pu. Total system loss = 0.1280 + j0.3040 pu.

How this answer will be evaluated

What earns full marks: All parts fully answered with correct derivations, diagrams, and calculations; no sign or formula errors.

Evaluation rubric

Each sub-part is marked on its own, against the marks and word limit printed on the paper.

  1. (a)(i) Prove the bound dmin ≤ 1+n−k for a linear (n,k) block code. 5 marks

    derive— given → assumptions → stepwise derivation → result → check

    Must cover

    • Parity-check matrix H has rank at most n−k
    • Any n−k+1 columns of H are linearly dependent
    • A dependency gives a nonzero codeword of weight ≤ n−k+1, so dmin ≤ 1+n−k

    Loses marks

    • Confusing dmin with code rate
    • Dropping the +1 in the bound

    Earns more

    • Name the Singleton bound
    • Use the rank of H or of the generator matrix

    Extra mark

    • Note that equality defines MDS codes
  2. (a)(ii) Show dmin equals the least number of dependent columns of H, then prove dmin = 3 for a Hamming code. 15 marks

    derive— given → assumptions → stepwise derivation → result → check

    Must cover

    • Codeword iff Σcᵢhᵢ = 0, so dmin = least number of dependent columns (both directions)
    • Hamming H has all distinct nonzero columns, so no one or two columns are dependent
    • a+b is itself a column, so three columns are dependent and dmin = 3

    Loses marks

    • Confusing generator matrix with parity-check matrix
    • Not proving that no two columns are dependent

    Earns more

    • Show explicitly that a minimal dependent set has all coefficients nonzero
    • Use the binary m-tuple representation of the columns

    Extra mark

    • Link dmin = 3 to single-error correction
  3. (b) Draw the block diagram, timing diagram and flowchart for the STB/IBF handshake transfer. 20 marks

    describe— define → structure or process in order → labelled diagram → significance

    Must cover

    • Block diagram with CPU, interface (data register) and I/O device, with STB, IBF, RD and the buses
    • Timing diagram: STB low loads data, IBF goes high, IBF falls after the CPU read
    • Flowchart of the device-to-interface and interface-to-CPU sequence

    Loses marks

    • Missing STB or IBF labels
    • Wrong signal polarity in the timing diagram

    Earns more

    • Show the data register inside the interface
    • Show correct polarity: STB active low, IBF active high

    Extra mark

    • Mention polling or interrupt for the CPU side
  4. (c) Find real and reactive power loss in each line and the total system loss. 10 marks

    calculate— given → formula → substitution → result with units → interpretation

    Must cover

    • I = (Vi−Vj)/Zij for each line
    • Pij = |I|²R and Qij = |I|²X for each line
    • Totals: P ≈ 0.1280 pu and Q ≈ 0.3040 pu

    Loses marks

    • Sign errors in complex subtraction
    • Not squaring the current magnitude

    Earns more

    • Per-unit working shown clearly
    • Complex voltage differences correct

    Extra mark

    • State that shunt elements are neglected
What "Prove" is asking you to do

Establish that the statement holds for every case it claims, not for one representative case. The argument must be closed: each line follows from a definition, a hypothesis, or a named theorem you are entitled to use.

Structure that answers it

Given and to prove, restated → theorem or construction to be used, named → the argument line by line → conclusion stated as proved

Where marks are lost

Testing one example, which illustrates but proves nothing. On an if and only if claim, proving one direction and stopping forfeits that half outright, and degenerate cases — zero, the empty set, the equality case — have to be disposed of rather than assumed away.

All UPSC directive words, compared →

Practice this exact question

Write your answer and it is marked point by point against the model answer above — what you covered, what you missed, what you got wrong.

Evaluate my answer →

More from Electrical Engineering 2021 Paper II

Write this answer and get it marked in about 20 seconds

Free account: 5 AI evaluations a month, marked against the rubric above.

Start free

Already have an account? Log in