Week 2a - Information Processing in Humans and Machines
Week 2a - Information Processing in Humans and Machines
Security Fundamentals
Week 2: Information Processing in Humans and
Machines
Dr. Huseyin Hisil and Dr. Xueqiao Liu
0110 6 1010 -6
00000110 6 11111010 -6
● Overflow
• If operands are too big, the sum cannot be represented as an n-bit 2’s comp
number.
01000 (8) 11000 (-8)
+ 01001 (9) + 10111 (-9)
10001 (-15) 01111 (+15)
• signs of both operands are the same, and sign of sum is different.
Operations: Logical
00101000.101 (40.625)
+ 11111110.111 (-1.125)
00100111.100 (39.5)
Other Data Types
● Floating Point
• Represent very large and very small numbers with a lower precision
• As large as 6.023 x 1023 (79 bits) and as small as 6.626 x 10-34 (110 bits)
• Use scientific notation”: (-1)s x 1.m x 2e-127
• Separately represent m (fraction/mantissa), e (exponent), and s (sign).
• IEEE 754 Floating-Point Standard (32-bits/Single Precision):