<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sangeeth Kariyapperuma on Medium]]></title>
        <description><![CDATA[Stories by Sangeeth Kariyapperuma on Medium]]></description>
        <link>https://medium.com/@nipunsgeeth?source=rss-844eaf515490------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EIKShI9Jt_5pGJBE</url>
            <title>Stories by Sangeeth Kariyapperuma on Medium</title>
            <link>https://medium.com/@nipunsgeeth?source=rss-844eaf515490------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:35:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nipunsgeeth/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cracking the Code: Deep Dive Behind The Secret Math Of UOM Index Numbers]]></title>
            <link>https://medium.com/@nipunsgeeth/cracking-the-code-deep-dive-behind-the-secret-math-of-uom-index-numbers-338a549d104e?source=rss-844eaf515490------2</link>
            <guid isPermaLink="false">https://medium.com/p/338a549d104e</guid>
            <category><![CDATA[university-life]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-integrity]]></category>
            <dc:creator><![CDATA[Sangeeth Kariyapperuma]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 17:30:54 GMT</pubDate>
            <atom:updated>2026-04-23T12:40:17.426Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yqua5W8IIyCjew4Hs4k54w.png" /></figure><p>If you’re a student at the <strong>University of Moratuwa (UOM)</strong>, your index number is practically second nature. You’ve written it on exam scripts, lab reports, forms, and countless login screens. It’s something you memorize early — and never forget.</p><p>But have you ever stopped to really <em>look</em> at it?</p><p>Numbers like 230317J or 230025L might seem ordinary. Yet that final letter at the end isn’t random. It isn’t sequential. It’s not assigned manually.</p><p>It’s the result of a carefully designed <strong>mathematical checksum</strong> — a hidden layer of engineering that quietly protects your academic identity from one of the most common and dangerous problems in any system: <strong>human error</strong>.</p><h3>The Problem: When Small Mistakes Become Big Issues</h3><p>Picture this: you’ve just finished a long, exhausting 3-hour exam. Your hand hurts, your focus is fading, and you quickly write down your index number:</p><p><strong>230025</strong></p><p>But in that moment of fatigue, something small goes wrong.</p><ul><li>You accidentally swap digits → <strong>320025</strong></li><li>Your “5” looks like a “6”</li><li>A digit is misread during data entry</li></ul><p>Without any validation mechanism, your paper could be assigned to the wrong student — or worse, no one at all. Fixing that afterward isn’t just inconvenient; it can turn into a bureaucratic nightmare.</p><p>This is exactly why systems like this rely on <strong>checksums</strong>.</p><h3>The Idea: A Mathematical Safety Net</h3><p>A checksum is a simple but powerful concept.</p><p>It takes your original data (in this case, your index number), runs it through a formula, and produces a <strong>verification value</strong> — here, a letter.</p><p>Whenever your index number is entered into a system, the same calculation is repeated. If the resulting letter doesn’t match the one provided, the system instantly flags it as invalid.</p><p>No ambiguity. No guesswork. Just math doing its job.</p><h3>The UOM Algorithm Explained</h3><p>The University of Moratuwa uses a <strong>Weighted Modulo Checksum</strong>. It sounds complex, but it’s actually elegant and efficient.</p><p>Let’s break it down.</p><h3>Step 1: Apply Descending Weights</h3><p>Each digit in your 6-digit index number is multiplied by a fixed weight:</p><p><strong>Weights:</strong> 8, 7, 6, 5, 4, 3</p><p>This ensures that the <em>position</em> of each digit matters.</p><p>Why is this important?</p><p>Because without weights, something like this would fail:</p><ul><li>230025 → 2+3+0+0+2+5 = 12</li><li>320025 → 3+2+0+0+2+5 = 12</li></ul><p>Same sum → error goes undetected</p><p>With weights, swapping digits produces a completely different result</p><h3>Step 2: Add the Results</h3><p>Example using 230025:</p><ul><li>2 × 8 = 16</li><li>3 × 7 = 21</li><li>0 × 6 = 0</li><li>0 × 5 = 0</li><li>2 × 4 = 8</li><li>5 × 3 = 15</li></ul><p><strong>Total = 60</strong></p><h3>Step 3: Modulo 19</h3><p>Now divide the total by <strong>19</strong> and take the remainder.</p><p>Why 19?</p><p>Because it’s a <strong>prime number</strong>, and prime moduli are widely used in computing for error detection. They help ensure that even small input changes produce different outputs.</p><p>For our example:</p><ul><li>60 ÷ 19 = 3 remainder <strong>3</strong></li></ul><h3>Step 4: Map to a Letter</h3><p>The remainder will always be between <strong>0 and 18</strong> — that’s 19 possible values.</p><p>So instead of using all 26 letters of the alphabet, UOM uses a <strong>carefully selected set of 19 letters</strong>.</p><h3>Removed Letters</h3><p>To avoid confusion in handwriting, these letters are excluded:</p><ul><li>I (looks like 1)</li><li>O, Q (look like 0)</li><li>S (looks like 5)</li><li>Z (looks like 2)</li><li>W, Y (less distinct in certain handwriting styles)</li></ul><p>This leaves exactly <strong>19 clear, unambiguous letters</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*dNDcV6bEV_pKo_YuKSI8qA.png" /></figure><h3>Worked Example 1: 230317J</h3><p><strong>Step 1:</strong><br>(2 × 8) + (3 × 7) + (0 × 6) + (3 × 5) + (1 × 4) + (7 × 3)</p><p>= 16 + 21 + 0 + 15 + 4 + 21<br>= <strong>77</strong></p><p><strong>Step 2:</strong><br>77 mod 19 = <strong>1</strong></p><p><strong>Step 3:</strong><br>1 → <strong>J</strong></p><p>Final index: <strong>230317J</strong></p><h3>Try It Yourself</h3><p>Want to check your own index number?</p><p>🔍 <strong>Instant checker:</strong><br><a href="https://cse23.org/uom-checksum-algorithm/">https://cse23.org/uom-checksum-algorithm/</a></p><p>💻 <strong>Explore the code &amp; logic:</strong><br><a href="https://github.com/cse23-mora/uom-checksum-algorithm">https://github.com/cse23-mora/uom-checksum-algorithm</a></p><h3>Why This Design Matters</h3><p>This system might look simple, but it’s incredibly effective.</p><p>It can detect:</p><ul><li>Single-digit errors</li><li>Digit swaps</li><li>Most handwriting misinterpretations</li></ul><p>And it does all of this instantly, with minimal computation.</p><p>This is the kind of quiet engineering that keeps large systems reliable without anyone noticing.</p><h3>PS: Updated Logic (Latest)</h3><p>The checker now uses batch-based mapping in both implementations:</p><ol><li>Read the first 6 digits.</li><li>Compute weighted sum using 8, 7, 6, 5, 4, 3.</li><li>Compute remainder = sum % 19.</li><li>Select mapping by batch year (first 2 digits):</li></ol><ul><li>Batch year &gt;= 20: use new mapping.</li><li>Batch year 10 to 19: use legacy mapping.</li><li>Batch year &lt;= 09: use original mapping.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*eDmxikYoLyGndsH7w7Rl_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*RsWxw3C4ZMwjqutBZb6ctQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=338a549d104e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Support for Students Affected by the Floods in Sri Lanka]]></title>
            <link>https://medium.com/@nipunsgeeth/support-for-students-affected-by-the-floods-in-sri-lanka-25d737f824fc?source=rss-844eaf515490------2</link>
            <guid isPermaLink="false">https://medium.com/p/25d737f824fc</guid>
            <dc:creator><![CDATA[Sangeeth Kariyapperuma]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 16:42:02 GMT</pubDate>
            <atom:updated>2025-12-09T16:42:02.717Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PXYB7xQrCLc1ww1pdw_mPg.avif" /></figure><p>After the recent hurricane, many students have been severely affected by the floods. Countless homes were destroyed, and with them, students’ books, notes, and study materials were lost.<br>But we must look toward the future by supporting one another. That is how life works, and all of us know it.</p><p>Over the past few days, I’ve seen teachers, university students, and many kind-hearted people sharing their notes to help affected students. Some teachers are offering free lessons, and many others are donating books and essential learning materials.</p><p>I also noticed that a lot of notes and recorded lessons are being shared through different Google Drive links and cloud storage. However, finding the right subjects, notes, or recordings through all these scattered links can be very difficult even for me.</p><p>The website <a href="https://edu.kuppihub.org/">https://edu.kuppihub.org</a> makes it easier for students to find their subjects, short notes, and lesson recordings (both live and recorded) in one place. This is a community-based platform, and anyone is welcome to contribute and share their knowledge.</p><p>Please share this with students who need support, as well as teachers and others who are willing to help.<br>This is completely free for everyone, and together, we can make a real difference.</p><p>Website Link: <a href="https://edu.kuppihub.org/">https://edu.kuppihub.org</a><br>How watch recording, download notes :-</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfSTnzOfSlcQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfSTnzOfSlcQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfSTnzOfSlcQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/58ba2cab3a7f0565b1cbf9b33dd640e6/href">https://medium.com/media/58ba2cab3a7f0565b1cbf9b33dd640e6/href</a></iframe><p>How add video, notes :-</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5L-pvRJbR3k%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5L-pvRJbR3k&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5L-pvRJbR3k%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/07236433495e22072140675639f73e51/href">https://medium.com/media/07236433495e22072140675639f73e51/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25d737f824fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>