<?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 kiran ch on Medium]]></title>
        <description><![CDATA[Stories by kiran ch on Medium]]></description>
        <link>https://medium.com/@kiranchikkala20?source=rss-36e52a16ed07------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sJTKv8Z8Oa9tpUk-0ZqIAQ.jpeg</url>
            <title>Stories by kiran ch on Medium</title>
            <link>https://medium.com/@kiranchikkala20?source=rss-36e52a16ed07------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:39:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kiranchikkala20/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[Why Do Computers Use 0s and 1s?]]></title>
            <link>https://medium.com/@kiranchikkala20/why-do-computers-use-0s-and-1s-fa48acdd1a68?source=rss-36e52a16ed07------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa48acdd1a68</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[how-computers-work]]></category>
            <category><![CDATA[binary]]></category>
            <category><![CDATA[digital-electronics]]></category>
            <dc:creator><![CDATA[kiran ch]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 17:40:22 GMT</pubDate>
            <atom:updated>2026-11-11T17:40:22.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iysXdmqAEbIuj0Al" /><figcaption>Photo by <a href="https://unsplash.com/@eva_gorobets_?utm_source=medium&amp;utm_medium=referral">Eva Gorobets</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s understand why computers use binary (0s and 1s).</p><p>We use computers every day to store information, watch videos, browse the internet, and run applications. But have you ever wondered how a computer actually understands and stores all this information?</p><p>Unlike humans, who use numbers, letters, and symbols to communicate, computers use a different way to represent information.</p><p>So, how does a computer do this?</p><p>Let’s start from the basics and gradually understand how computers use electricity to represent information through binary, bits, and bytes.</p><h3>First, understand the actual problem</h3><p>Let’s break it down from first principles. The real question is: why do computers use only 0s and 1s? Why not use the numbers we normally use?</p><p>Think about the last time you booked a movie ticket using an app like BookMyShow. You selected a movie, picked a seat, chose a show time, made the payment, and received a QR code.</p><p>Have you ever wondered how the computer stores all this information?</p><p>Your seat number, ticket price, show time, booking details, and even the QR code are all represented using binary (0s and 1s) inside the computer.</p><p>But why binary specifically? How does an electronic machine represent all these different types of information using just two values?</p><p>Let’s break this down step by step.</p><h3>Why is representing information a problem?</h3><p>A computer uses electrical signals to represent information.</p><p>Ideally, if one electronic component sends a signal of 3 volts to another component, the receiving component should receive exactly 3 volts.</p><p>However, in the real world, electrical signals are not always perfect.</p><p>For example, the sender transmits 3 volts, but the receiver might receive 2.9 volts, 2.8 volts, or even 3.1 volts.</p><p>Why does this happen?</p><p>Because the physical world is imperfect.Because the physical world is not perfect. Electrical signals can be affected by several factors:</p><ol><li><strong>Resistance:</strong> Wires and circuits affect how electrical signals travel.</li><li><strong>Noise:</strong> Nearby electronic devices can introduce unwanted interference.</li><li><strong>Heat:</strong> Temperature changes can affect electronic components.</li><li><strong>Manufacturing variations:</strong> Electronic components may behave slightly differently even when manufactured to the same specifications.</li></ol><p>As a result, the received signal may differ from the transmitted signal. This is known as <strong>signal noise or signal degradation</strong>, depending on the cause and effect.</p><h3>Why not represent information using 10 voltage levels?</h3><p>Humans normally use the decimal number system, which contains ten digits:</p><p>0, 1, 2, 3, 4, 5, 6, 7, 8, 9.</p><p>Suppose we want to represent these ten digits using electrical voltage.</p><p>We could design the system like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTInC0XZ0LWrrUdY2WantQ.png" /><figcaption>Figure 1: Voltage levels with 0.5 V intervals</figcaption></figure><p>This means a single wire can represent ten different values.</p><p>Sounds efficient, right?</p><p>But let’s introduce noise.</p><p>Suppose we send 2.5 volts, which represents 5.</p><p>Because of noise, the receiving component gets 2.7 volts.</p><p>Now, should the computer interpret 2.7 volts as:</p><ul><li>5, because we intended 2.5 volts?</li><li>6, because 2.7 is closer to 3.0 volts?</li></ul><p>This is an <strong>ambiguity</strong>.</p><p>The computer cannot confidently identify the original value because the voltage has changed.</p><p>The fundamental problem is that when voltage levels are close to each other, even a small amount of noise can make one value look like another.</p><p>This leads us to our next concept.</p><h3><strong>Understanding Noise Margin</strong></h3><p>To understand noise margin, imagine two people standing very close to each other in a crowded room.</p><p>If someone looks at them from a distance, it might be difficult to distinguish between them.</p><p>Now imagine those same two people standing far apart.</p><p>It becomes much easier to identify each person.</p><p>The same principle applies to electrical signals.</p><p>When two voltage levels are very close, small electrical disturbances can create confusion.</p><p>When two voltage levels are sufficiently far apart, the receiver can distinguish them more reliably.</p><p>This ability to tolerate unwanted voltage variations is called<strong> noise margin.</strong></p><p>In simple words:</p><p>Noise margin is the amount of unwanted electrical variation a signal can tolerate without being interpreted incorrectly.</p><p>Now you might ask:</p><p>If closely spaced voltage levels create a problem, why don’t we simply increase the distance between them? Let’s try increasing the voltage difference between each level and see if that solves the problem.</p><h3>Why not simply increase the voltage levels?</h3><p>If the problem is that voltage levels are too close, why don’t we increase the distance between them?</p><p>Now the difference between adjacent levels is 1 volt instead of 0.5 volts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PKxO3wN0QwE9rH18WYn0OQ.png" /><figcaption>Figure 2: Voltage levels with larger intervals</figcaption></figure><p>Now the difference between adjacent levels is 1 volt instead of 0.5 volts.</p><p>This gives us more room for noise.</p><p>But there is another problem.</p><h3>Problem A: Power consumption</h3><p>Modern processors contain billions of transistors.</p><p>If we need larger voltage differences to represent information, the hardware may need higher supply voltages and more demanding circuitry.</p><p>Higher operating voltages generally increase power consumption and heat.</p><h3>Problem B: Heat creates additional problems</h3><p>More power consumption produces more heat.</p><p>More heat can affect transistor behavior.</p><p>This can make it harder to maintain reliable signals.</p><p>We end up creating another problem while trying to solve the first one.</p><h3>Problem C: Signal degradation across multiple gates</h3><p>This is particularly important.</p><p>A signal does not simply travel from one wire to another.</p><p>It passes through multiple logic gates. The signal has gradually changed.</p><p>This is why representing ten different values becomes difficult when signals pass through many electronic components.</p><p>The problem becomes particularly serious when billions of transistors are switching billions of times.</p><p>We need a more reliable approach.</p><h3><strong>The solution: Use only two voltage ranges</strong></h3><p>Instead of representing ten different values, computers use two logical states.</p><ul><li>0</li><li>1</li></ul><p>This is called the <strong>binary number system.</strong></p><p>At the hardware level, we can represent these two states using two voltage ranges.</p><p>For example:</p><ul><li>0.2 V means 0.</li><li>0.4 V means 0.</li><li>0.6 V means 0.</li><li>2.2 V means 1.</li><li>2.5 V means 1.</li><li>3.0 V means 1.</li></ul><p>This is much more reliable.</p><p>Even if the electrical signal changes slightly because of noise, the receiving component can still identify whether the signal represents 0 or 1.</p><p>This is the main reason computers use binary.</p><p>Binary makes it easier to distinguish two logical states reliably because there is a larger noise margin between them.</p><p>But there is another important question.</p><p>If electrical signals can still change, how does a computer prevent these changes from accumulating?</p><p>This brings us to one of the most important concepts in digital electronics</p><h3><strong>The most important concept: Signal regeneration</strong></h3><p>Imagine that a logic gate receives an input voltage of 0.2 volts.</p><p>The gate identifies that this voltage belongs to the logical zero range.</p><p>Instead of simply passing the same 0.2 volts to the next component, it produces a fresh output voltage close to the intended zero level.</p><p>Similarly, when it receives an input belonging to the logical one range, it generates a fresh output close to the intended high voltage.</p><p>This process is called <strong>signal regeneration.</strong></p><p>Let’s compare the two situations.</p><p>Without regeneration:</p><pre>3.0 V → 2.8 V → 2.6 V → 2.4 V</pre><p>The signal can progressively degrade.</p><p>With regeneration:</p><pre>Noisy input → Logic gate → Clean output</pre><p>For example:</p><pre>0.2 V → Logic gate → 0 V<br>2.2 V → Logic gate → 3 V</pre><p>These values are illustrative.</p><p>The important point is that the logic gate identifies the logical state and generates a new output signal.</p><p>Why is this easier with binary?</p><p>Because the logic gate only needs to distinguish between two possibilities:</p><p>Is the input 0 or 1?</p><p>It does not need to identify ten closely spaced voltage levels.</p><p>This makes digital circuits easier to design and operate reliably.</p><p>Now that we understand why computers use two states, we can finally understand the basic unit of information used by computers.</p><h3>What exactly is a bit?</h3><p>We have established that computers use two logical states: 0 and 1.</p><p>But what do we call one individual binary value?</p><p>It is called a <strong>bit</strong>.</p><p>Bit stands for binary digit.</p><p>A bit is the smallest unit of binary information and can hold one of two possible values:</p><pre>0<br>1</pre><p>For example, a single bit can represent two different possibilities.</p><p>However, one bit cannot represent many different values.</p><p>So, what happens when we combine multiple bits?</p><p>We get more possible combinations. A group of eight bits is called a <strong>byte</strong>.</p><h3>How can binary represent different types of information?</h3><p>This is where the concept of abstraction becomes important.</p><p>Imagine we have the following byte:</p><pre>01000001</pre><p>At the hardware level, the computer only stores and processes eight binary bits.</p><p>It does not automatically know whether those bits represent:</p><ul><li>A number.</li><li>A character.</li><li>A colour.</li><li>A pixel in an image.</li><li>Part of a QR code.</li></ul><p>The meaning depends on how software interprets those bits.</p><p>For example, under ASCII encoding:</p><pre>01000001 = 65 = A</pre><p>The same binary sequence can represent the decimal number 65 or the character A, depending on the interpretation.</p><p>Let’s take another example.</p><p>Suppose we use one byte to represent a grayscale pixel.</p><pre>00000000 = 0   = Black<br>11111111 = 255 = White</pre><p>The values between 0 and 255 represent different shades of grey.</p><p>This demonstrates an important principle.</p><p>The hardware stores binary information, while software decides what that information means.</p><p>This separation between the physical representation of information and its meaning is called <strong>abstraction</strong>.</p><p>Now we understand how binary can represent different types of information.</p><h3>Conclusion</h3><p>So, what did computers gain and sacrifice by using binary? By using just two states, computers gained simpler electronic circuits and more reliable information processing. The trade-off is that more bits are needed to represent information compared to using multiple states.</p><p>In the end, computers choose reliability over packing more information into a single signal. That’s what makes binary a practical foundation for modern computing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa48acdd1a68" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>