The document discusses number systems and binary codes. It describes how numbers are represented in computers using binary digits and how different number systems like decimal, binary, octal and hexadecimal work. It explains how to convert between decimal and other bases as well as how to perform arithmetic operations like addition, subtraction and multiplication in binary. Various coding schemes for encoding numbers and characters are also summarized.
Number systems - Efficiency of number system, Decimal, Binary, Octal, Hexadecimalconversion
from one to another- Binary addition, subtraction, multiplication and division,
representation of signed numbers, addition and subtraction using 2’s complement and I’s
complement.
Binary codes - BCD code, Excess 3 code, Gray code, Alphanumeric code, Error detection
codes, Error correcting code.Deepak john,SJCET-Pala
Logic Circuits Design - "Chapter 1: Digital Systems and Information"Ra'Fat Al-Msie'deen
Logic Circuits Design: This material is based on chapter 1 of “Logic and Computer Design Fundamentals” by M. Morris Mano, Charles R. Kime and Tom Martin
Number systems - Efficiency of number system, Decimal, Binary, Octal, Hexadecimalconversion
from one to another- Binary addition, subtraction, multiplication and division,
representation of signed numbers, addition and subtraction using 2’s complement and I’s
complement.
Binary codes - BCD code, Excess 3 code, Gray code, Alphanumeric code, Error detection
codes, Error correcting code.Deepak john,SJCET-Pala
Logic Circuits Design - "Chapter 1: Digital Systems and Information"Ra'Fat Al-Msie'deen
Logic Circuits Design: This material is based on chapter 1 of “Logic and Computer Design Fundamentals” by M. Morris Mano, Charles R. Kime and Tom Martin
Introduction to Information Technology Lecture 2MikeCrea
Number Systems
Types of number systems
Number bases
Range of possible numbers
Conversion between number bases
Common powers
Arithmetic in different number bases
Shifting a number
quantitative aptitude, maths
applicable to
Common Aptitude Test (CAT)
Bank Competitive Exam
UPSC Competitive Exams
SSC Competitive Exams
Defence Competitive Exams
L.I.C/ G. I.C Competitive Exams
Railway Competitive Exam
University Grants Commission (UGC)
Career Aptitude Test (IT Companies) and etc.
Introduction to Information Technology Lecture 2MikeCrea
Number Systems
Types of number systems
Number bases
Range of possible numbers
Conversion between number bases
Common powers
Arithmetic in different number bases
Shifting a number
quantitative aptitude, maths
applicable to
Common Aptitude Test (CAT)
Bank Competitive Exam
UPSC Competitive Exams
SSC Competitive Exams
Defence Competitive Exams
L.I.C/ G. I.C Competitive Exams
Railway Competitive Exam
University Grants Commission (UGC)
Career Aptitude Test (IT Companies) and etc.
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...Arti Parab Academics
Number System:
Analog System, digital system, numbering system, binary number
system, octal number system, hexadecimal number system, conversion
from one number system to another, floating point numbers, weighted
codes binary coded decimal, non-weighted codes Excess – 3 code, Gray
code, Alphanumeric codes – ASCII Code, EBCDIC, ISCII Code,
Hollerith Code, Morse Code, Teletypewriter (TTY), Error detection
and correction, Universal Product Code, Code conversion.
we have made this like computer application course material which is so functionable and any one can use it to develop your technological concept skill.
We Belete And Tadelech
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
1. Computer & Network Technology
Chamila Fernando
02/03/14
Information Representation
BSc(Eng) Hons,MBA,MIEEE
1
2. Lecture 2: Number Systems & Codes
Number Systems
Information Representations
Positional Notations
Decimal (base 10) Number System
Other Number Systems & Base-R to Decimal Conversion
Decimal-to-Binary Conversion
Sum-of-Weights Method
Repeated Division-by-2 Method (for whole numbers)
Repeated Multiplication-by-2 Method (for fractions)
02/03/14
Information Representation
2
3. Lecture 2: Number Systems & Codes
Conversion between Decimal and other Bases
Conversion between Bases
Binary-Octal/Hexadecimal Conversion
Binary Arithmetic Operations
Negative Numbers Representation
Sign-and-magtitude
1s Complement
2s Complement
Comparison of Sign-and-Magnitude and Complements
02/03/14
Information Representation
3
4. Lecture 2: Number Systems & Codes
Complements
Diminished-Radix Complements
Radix Complements
02/03/14
2s Complement Addition and Subtraction
1s Complement Addition and Subtraction
Overflow
Fixed-Point Numbers
Floating-Point Numbers
Arithmetics with Floating-Point Numbers
Information Representation
4
5. Lecture 2: Number Systems & Codes
Codes
Binary Coded Decimal (BCD)
Gray Code
Binary-to-Gray Conversion
Gray-to-Binary Conversion
02/03/14
Other Decimal Codes
Self-Complementing Codes
Alphanumeric Codes
Error Detection Codes
Information Representation
5
6. Information Representation
Numbers are important to computers
represent information precisely
can be processed
For example:
to represent yes or no: use 0 for no and 1 for yes
to represent 4 seasons: 0 (autumn), 1 (winter), 2(spring) and 3
(summer)
02/03/14
Information Representation
6
7. Information Representation
Elementary storage units inside computer are electronic
switches. Each switch holds one of two states: on (1) or off
switches
(0).
ON
OFF
We use a bit (binary digit), 0 or 1, to represent the state.
bi
02/03/14
Information Representation
7
8. Information Representation
Storage units can be grouped together to cater for larger
range of numbers. Example: 2 switches to represent 4
values.
0 (00)
1 (01)
2 (10)
3 (11)
02/03/14
Information Representation
8
9. Information Representation
In general, N bits can represent 2N different values.
For M values,
log 2 Mbits are needed.
1 bit → represents up to 2 values (0 or 1)
2 bits → rep. up to 4 values (00, 01, 10 or 11)
3 bits → rep. up to 8 values (000, 001, 010. …, 110, 111)
4 bits → rep. up to 16 values (0000, 0001, 0010, …, 1111)
32 values
→ requires 5 bits
64 values → requires 6 bits
1024 values → requires 10 bits
40 values → requires 6 bits
100 values → requires 7 bits
02/03/14
Information Representation
9
10. Positional Notations
Position-independent notation
each symbol denotes a value independent of its position: Egyptian
number system
Relative-position notation
Roman numerals symbols with different values: I (1), V (5), X (10), C
(50), M (100)
Examples: I, II, III, IV, VI, VI, VII, VIII, IX
Relative position important: IV = 4 but VI = 6
Computations are difficult with the above two notations
02/03/14
Information Representation
10
11. Positional Notations
Weighted-positional notation
Decimal number system, symbols = { 0, 1, 2, 3, …, 9 }
Position is important
Example:(7594)10 = (7x103) + (5x102) + (9x101) + (4x100)
The value of each symbol is dependent on its type and its position in
the number
In general, (anan-1… a0)10 = (an x 10n) + (an-1 x 10n-1) + … + (a0 x 100)
02/03/14
Information Representation
11
12. Positional Notations
Fractions are written in decimal numbers after the decimal
point.
2 3 4 = (2.75)10 = (2 x 100) + (7 x 10-1) + (5 x 10-2)
In general, (anan-1… a0 . f1f2 … fm)10 = (an x 10n) + (an-1x10n-1) + … + (a0 x 100) +
(f1 x 10-1) + (f2 x 10-2) + … + (fm x 10-m)
The radix (or base) of the number system is the total
base
number of digits allowed in the system.
02/03/14
Information Representation
12
13. Decimal (base 10) Number System
Weighting factors (or weights) are in powers-of-10:
… 103 102 101 100.10-1 10-2 10-3 10-4 …
To evaluate the decimal number 593.68, the digit in each
position is multiplied by the corresponding weight:
5×102 + 9×101 + 3×100 + 6×10-1 + 8×10-2
(593.68)10
02/03/14
Information Representation
=
13
14. Other Number Systems &
Base-R to Decimal Conversion
Binary (base 2): weights in powers-of-2.
– Binary digits (bits): 0,1.
Octal (base 8): weights in powers-of-8.
– Octal digits: 0,1,2,3,4,5,6,7.
Hexadecimal (base 16): weights in powers-of-16.
– Hexadecimal digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
Base R: weights in powers-of-R.
02/03/14
Information Representation
14
18. Sum-of-Weights Method
Determine the set of binary weights whose sum is equal
to the decimal number.
(9)10 = 8 + 1 = 23 + 20 = (1001)2
(18)10 = 16 + 2 = 24 + 21 = (10010)2
(58)10 = 32 + 16 + 8 + 2 = 25 + 24 + 23 + 21 = (111010)2
(0.625)10 = 0.5 + 0.125 = 2-1 + 2-3 = (0.101)2
02/03/14
Information Representation
19
19. Repeated Division-by-2 Method
To convert a whole number to binary, use successive
division by 2 until the quotient is 0. The remainders form
the answer, with the first remainder as the least
significant bit (LSB) and the last as the most significant bit
(MSB).
(43)10 = (101011)2
02/03/14
2
2
2
2
2
2
43
21
10
5
2
1
0
Information Representation
rem 1 LSB
rem 1
rem 0
rem 1
rem 0
rem 1 MSB
20
20. Repeated Multiplication-by-2 Method
To convert decimal fractions to binary, repeated
multiplication by 2 is used, until the fractional product is 0
(or until the desired number of decimal places). The
carried digits, or carries, produce the answer, with the
first carry as the MSB, and the last as the LSB.
(0.3125)10 = (.0101)2
0.3125×
2=0.625
0.625×
2=1.25
0.25×
2=0.50
0.5×
2=1.00
02/03/14
Information Representation
Carry
0
1
0
1
MSB
LSB
21
21. Conversion between Decimal and other
Bases
Base-R to decimal: multiply digits with their corresponding
decimal
weights.
Decimal to binary (base 2)
whole numbers: repeated division-by-2
fractions: repeated multiplication-by-2
Decimal to base-R
whole numbers: repeated division-by-R
fractions: repeated multiplication-by-R
02/03/14
Information Representation
22
22. Conversion between Bases
In general, conversion between bases can be done via
decimal:
Base-2
Base-3
Base-4
…
Base-R
Decimal
Base-2
Base-3
Base-4
….
Base-R
Shortcuts for conversion between bases 2, 4, 8, 16.
02/03/14
Information Representation
24
24. Binary Arithmetic Operations
ADDITION
Like decimal numbers, two numbers can be added by
adding each pair of digits together with carry propagation.
(11011)2
+ (10011)2
(101110)2
02/03/14
Information Representation
(647)10
+ (537)10
(1184)10
27
26. Binary Arithmetic Operations
SUBTRACTION
Two numbers can be subtracted by subtracting each pair of
digits together with borrowing, where needed.
(11001)2
- (10011)2
(00110)2
02/03/14
Information Representation
(627)10
- (537)10
(090)10
29
28. Binary Arithmetic Operations
MULTIPLICATION
To multiply two numbers, take each digit of the multiplier
and multiply it with the multiplicand. This produces a
multiplicand
number of partial products which are then added.
(11001)2
x (10101)2
(11001)2
(11001)2
+(11001)2
(1000001101)2
02/03/14
(214)10
x (152)10
(428)10
(1070)10
+(214)10
(32528)10
Information Representation
Multiplicand
Multiplier
Partial
products
Result
31
29. Binary Arithmetic Operations
Digit multiplication table:
BINARY
DECIMAL
0X0=0
0 X 0= 0
0 X 1= 0
0 X 1= 0
1X0=0
…
1 X 1= 1
1X8=8
1 X 9= 9
…
9 X 8 = 72
9 X 9 = 81
DIVISION – can you figure out how this is done?
Think of the division technique (shift & subtract) used for
decimal numbers and apply it to binary numbers.
02/03/14
Information Representation
32