A beginner-friendly explanation of how computers process information — from binary and bytes to how text, images, videos, and audio are represented and stored.
So to solve the problems of compter, we need to know the language computer understands, and tell the computer in that language some certain instructions to follow. So it solves the problem. But how does it work?
So Generally Computer takes some input, performs the instructions and gives the output. For that we need to give it instructions in binary language as it supports the binary language.
Wait whats binary language? So binary is the language of 0’s and 1’s we represent it with only 0’s and 1’s.
Wait how can we decide how many 0’s and 1’s to take and what it indicates?
So what can we represent with it? Like numbers, images, audios? How?
Now as per how computer Stores the text information?
We have ASCII code if you somewhat heard about it, then yes ASCII code is used to represent characters and each character is assigned a unique ascii value for it to be uniquely represented.
Wait how do i know which code is what?
We can also understand its working by binary digits.
For ex- A=65 ? How do you represent it in binary
So you understand that after 64 each increase represent the Capital A & similary from 97 small a. and before and after of each of them there are also other letters that are described with the numbers.
Now this is how computers works inside we dont generally need to know this but we are comp eng. We must know thiss.
So for word “BA” = 01000010 01000001, internally written in byte stream. Fascinating isnt it?
For images we represent each pixel with RGB, and for each RGB we take 3 bytes 1 byte value for RED, 1 Byte value for Green and 1 Byte value got the Blue.
And the image is made up of the pixels where each pixel represent these 3 bytes.
So for uncompressed image, where the image is raw, if the 3 megaBytes Image is taken than we can say that 1 megabytes Pixels are there, as each pixel is of 3 bytes.
So 3 mb from each 3 bytes of 1 pixel we have 1 mb pixels.
Each Video is generated of these images, so we can say lets say 30 frames per seconds is nothing but 30 images per second and images are represented as above.
That’s it folks.
Here's a quick overview of the topics we covered in this post:
• How to solve Problems in Computer?
• So how does binary number works?
• Next question is how do we represent this bits in a compact manner?
• Image, video & audios.
@albidotwt