Presentation is loading. Please wait.

Presentation is loading. Please wait.

Information Technology Department

Similar presentations


Presentation on theme: "Information Technology Department"— Presentation transcript:

1 Information Technology Department
Introduction to IT-I Ishik University Faculty of Science Information Technology Department By Payam Wali

2 Data Representation in Computers

3 Binary Did you know that all of the information that travels through your computer is based on two commands? The only data that a computer can understand is on and off. But, the millions of combinations of those two commands given in series are what make a computer work.

4 What is a bit? The term bit is an acronym for the expression Binary Digit. By definition, it is “a single digit in a binary numbering scheme”, meaning it can take on one of two values: 0 and 1 (a binary condition). Well, nothing really, except that it provides with a convenient analogy for describing the way in which a computer processes data. The computer has no idea what a 1 or a 0 is. It is, after all, nothing more than an electronic device with voltage running through it. As with all devices requiring electricity, such as a light bulb, we could describe them as either being on or off. In other words, they exist in a binary state. Binary schemes are perhaps the oldest coding systems known to man and the easiest to understand. By Payam Wali.

5 Student Rating Signal System Example
Since our rating scheme only consisted of nine messages, we didn’t use up all combinations of light switches. In fact, we could have developed 7 additional ratings (1010, 1011, 1100, 1101, 1110, and 1111). If we now the pattern we have developed, we notice a simple progression: consider By Payam Wali.

6 Can we predict how many bits we need?
Given that each bit has two possible states, for any number (n) of bits, the amount of information conveyed (I) is: 2 n = I By Payam Wali.

7 Can we predict how many bits we need?
By Payam Wali.

8 Bits Remember the power supply that is inside your computer and how it sends electricity to all of the components? That electricity is what creates an on signal. The memory chips inside your computer are divided into thousands of tiny compartments called bits.

9 Bits and binary Computer programs are sets of instructions. Each instruction is translated into machine code - simple binary codes that activate the CPU. Programmers write computer code and this is converted by a translator into binary instructions that the processor can execute. All software, music, documents, and any other information that is processed by a computer, is also stored using binary.

10 Bits and binary

11 Gates: Opened and Closed
Each bit has an electronic switch or gate. On means the gate is open and letting electricity go through. The computer reads on or open switches as a number 1. Closed gates are off because the electricity is blocked and cannot get through. The computer reads off bits as 0.

12 Gates: Opened and Closed

13 Bits and Bytes It is by grouping these bits together to form a series of 1/0 commands, that data is formed. Eight bits are grouped together to form a byte. In this group of eight, there are 256 possible combinations of 1/0.

14 KB, MB, and GB You may have seen these abbreviations many times before. Do you know what they mean? Kilobyte, KB, about 1 thousand bytes Megabyte, MB, about 1 million bytes Gigabyte, GB, about 1 billion bytes Terabyte, TB, about 1 trillion bytes (rare) As you can see, these abbreviations stand for a specific number of bytes. And each byte holds 8 bits capable of forming 256 combinations of 1/0.

15 A Different Perspective
There is another way to look at these three amounts KB = kilobyte = about 1,000 bytes, MB = megabyte = about 1,000 kilobytes, GB= gigabyte = about 1,000 megabytes This concept is important to understand because it can help us convert from one size to the other when we want to compare different sizes.

16 A Conversion Example Let’s say we can purchase one of two hard drives, one drive is 1,746 MB and the other is 1.5 GB. Which drive should we choose? KB = kilobyte = about 1,000 bytes, MB = megabyte = about 1,000 kilobytes, GB= gigabyte = about 1,000 megabytes Since the first drive is in MB (1,746 MB), we can convert the second drive from GB to MB by multiplying 1.5 GB x MB/GB = 1,500 MB or taking GB -> MB move the decimal point 3 places to the right 1.5 becomes MB

17 A Conversion Example (continued)
Now we can compare the two drives. One drive is 1,746 MB and the other is 1,500 MB. Clearly the first drive (1,746 MB) is larger. Could we compare the two drives in GB? Absolutely! To convert the first drive, 1,746 MB to GB we take 1,746 MB/1000 MB/GB=1.746 GB or taking MB -> GB move the decimal 3 places to the left from to GB NOTE: Notice the pattern of moving 3 decimal places each level we move up MB->GB or down GB->MB

18 Check for Understanding
Convert the following: 856 MB to GB 7.84 GB to MB 1,546,000 KB to GB (hint: move 3 decimal places to take KB -> MB & move 3 decimal places to take MB -> GB) 1,746 MB to KB 1.5 GB to KB (Remember our PATTERN of moving 3 decimal places at each level)

19 Answer .865 GB 7,840 MB 1.546 GB 1,746,000 KB 1,500,000 KB By Payam Wali.

20 What Exactly is a Gig? To get an idea of how much on/off data a computer can store, just imagine pressing one key one billion times! How long would it take? If you pressed the key 5 times per second, it would take you over 6 years of continuously typing to reach 1 billion keystrokes equal to 1GB of memory! RAM, on the other hand, is more like a journal - you can write information into the journal. But if you change your mind, you can erase and write in new information.

21 RAM Memory The number that comes before one of these abbreviations represents the computer's memory capacity. For example, if a computer has 64MB of RAM that means that the computer can handle 64,000,000 (64 million) bytes of random access memory (that's 64,000,000 microscopic 8-bit panels).

22 Hard Drive Size Hard disk space is also measured in bytes. So, a 15 GB hard drive has 15,000,000,000 (15 billion) bytes for storage or 15,000 MB. How many kilobytes would that be? 15,000,000 KB

23 Put it into Perspective
Many computers today can store over 500 GB of storage on their hard disks! Incredible! So, the next time your computer is taking a long time to load a web page, think of how fast it really is going!

24 Binary Coding Representing text characters, such as letters, as binary numbers is called Binary Coding.

25 How it All Works! The numerical value of the uppercase letter A is 65. That number 65 is represented in one byte - a combination of 1 and 0 or on and off switches. The computer cannot understand letters, so it translates them into binary numbers that are represented by patterns of on and off.

26 How it All Works! Look at your keyboard. Each character key is represented by a number that is held in a single byte. Remember how the letter A is sent to the CPU to be translated into binary code?


Download ppt "Information Technology Department"

Similar presentations


Ads by Google