Paudel Exam 2
Paudel Exam 2
Exam Details
Open Book
Allowed
Not allowed
• Search in Internet
• Using tools (e.g., ChatGPT)
Answers need to be wrriten on the provided paper. Handwriting should be clear enough to understand.
Decimal system
base = 10
digits = 0,1,2,3,4,5,6,7,8,9
𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟏𝟏 = ??
Index 2 1 0
Decimal system
base = 10
digits = 0,1,2,3,4,5,6,7,8,9,10
𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟏𝟏
Index 2 1 0
Octal system
base = 8
digits = 0,1,2,3,4,5,6,7
𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟖𝟖 = ??
Index 2 1 0
Decimal system
base = 8
digits = 0,1,2,3,4,5,6,7,8,9,10
𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟖𝟖
Index 2 1 0
a) 11010111012
b) 76388
c) 𝐹𝐹𝐹𝐹16
Base (b = 10)
55
+37
92
2) 1+5+3 = 9; 9<b
1 11
55 55
+37 +37
92 114
Base (b = 10)
-1
52
-35
17
2) -1+5-3 = 1; 1>0;
-1 -1
52 52
-35 -35
17 15
Convert 10 10
To base (b=2)
10/2 5 0
5/2 2 1
2/2 1 0
1/2 0 1
10 10 = 1010 2
2/2 1 0
1/2 0 1
10 10 = 12 8
10 10 = 1010 2
a) 55 base 2
b) 475 base 12
To base (b = 2)
3/2 1 1
1/2 0 1
475 10 = 337 12
55 10 = 110111 2
a) 4425 + 3135
b) 627 − 457
111 -1
442 62
+313 -45
1310 14
1) 2+3 = 5; 5 == 5;
2) 1+4+1 = 6; 6>5;
3) 1+4+3 = 8; 8>5;
To base (b = 16)
555/16 34 B (11)
34/16 2 2
2/16 0 2
55510 = 22𝐵𝐵 16
Subtraction base (b = 4)
-1-1
322
-123
133
3) -1+3-1 = 1>0
octal dual
101 111 010 011 0 000
1 001
101 = 5 2 010
3 011
111 = 7
4 100
010 = 2
5 101
011 = 3 6 110
7 111
101111010011 2 = 5723 8
𝐴𝐴 6 3 11
121 11 1
a) 22𝐵𝐵16
b) 1334
d) 1279
base 10
base 2
base 12
base 16
Convert 𝐴𝐴𝐴𝐴11
base 10
base 2
base 12
base 16
Question Calculate -28+12 as an 8-bit binary addition using one’s complement. Convert the result
back to the decimal system.
Question Calculate 31 + (-8) as an 8-bit binary addition using two’s complement. Convert the
result back to the decimal system.
1. 110 = 12
.710
0.7 × 2 = 1.4 → 1
2. 0.710 = 10112 0.4 × 2 = 0.8 → 0
0.8 × 2 = 1.6 → 1
3. 1.710 = 1.10112 0.6 × 2 = 1.2 → 1
10112
4. 1.1011
. 2×2
0
5. m = 1011; n = 0; calculate bias using alternate method; maximum number can be represented by 8 bits is 7; 7%2 = 3;
consider float number, bias (k) = 3; n+k = 0+3 = 011
6. Sign bit = 0
If you are storing a number in an 8-bit format using the signed magnitude
approach, how many different numbers can you store?
Question If you are storing a number in an 8-bit format using the signed
magnitude approach, how many different numbers can you store?
1. You have 7 bits available with which you can store 27=128 number
combinations.
2. Each of these numbers can be positive or negative (first bit being either 1
or 0), giving you in fact 128*2=256 combinations.
Consider given analog signal. Sampling rate of the anolog signal is 2 Hz (see red lines in the figure). Compute 4 bits
digitization of the signal and show digital representation of the signal.
Analog signal
3
Sampling
2
Amplitude
Digital
signal
1
0 1 2 3
Time(s)
WS 2023/24 - Introduction: Applied Informatics (IAI VO)
Exercise (Solution)
011110101011100011001000
More precise: Need to generate more data (i.e both sampling rate and bit depth are high)
Analog signal
3 Sampling
2.5 4-bit
2 digitization
Amplitude
1.5
1
0.5
0 1 Time(s) 2 3
0111 1010 1011 1000
WS 2023/24 - Introduction: Applied Informatics (IAI VO)
Exercise
You want to digitize a 15-seconds long piece of music with a sample rate of 44kHz and bit
depth of 16bit. How many bits will you produce as a result?
• Areas of Informatics
• The interpretation of the term "Informatics" has not yet been generally accepted and has
different definitions depending on where it is used
Theoretical disciplines (e.g., algorithms, theory of computation and information theory) to applied
disciplines (e.g., design and implementation of hardware & software).
• An overlap between Informatics and Computer Science (CS) but not exactly the same thing
• In the U.S. Informatics is linked with applied computing, or computing in the context of another domain
• Those terms (including the English version Informatics) combine two words:
• A discipline that solves problems through the application of computing or computation (so we
need "computers") in the context of the domain of the problem.
• The central notion is transformation of information which takes place not only through
computation but also via communication by organisms and artifacts (so it is not only about
"computers"!).
• Informatics is different from other sciences because it is built upon the concept of a universal
computing devices (a.k.a., computers or computing systems).
• Computers can do
3. Artificial Intelligence
6. Bioinformatics
7. Business informatics
Technical informatics: Deals with hardware, computing and
communication systems.
8. Computing equipment
• The EU Applied Informatics (US Informatics) examines the properties, laws, methods and
means of formation, transformation and dissemination of information in nature and society,
including by means of technical systems.
• Computing and computational thinking are no longer owned solely by computer science but
have embedded in all aspects of science, research, industry, government, and social interaction.
• Andrzej Yatsko and Walery Susłow, "Insight into Theoretical and Applied Informatics." Chapters
1.1 and 1.2
EL on 23.10.2024
2.1 Number system
Value of a number is included by both the symbols and the positions of the symbols.
Interpret the symbols having different values as they are in different positions. This notation is
called positional notation.
1 0 1 1 .1 0 𝑏𝑏
1 0 0 1 .0 1 𝑏𝑏
𝑏𝑏3 𝑏𝑏2 𝑏𝑏1 𝑏𝑏0 . 𝑏𝑏 −1 𝑏𝑏 −2
Decimal system
base = 10
digits = 0,1,2,3,4,5,6,7,8,9
Index 2 1 0
2 6 310 Base 𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟏𝟏 = ??
Position
Digits Radix
base = 8
digits = 0,1,2,3,4,5,6,7
𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟑𝟖𝟖 = ??
Index 2 1 0
Can the given numbers be converted to decimal numbers? If they can then what decimal value do
the following numbers have?
a) 11010111012
b) 76388
c) 𝐹𝐹𝐹𝐹16
Some numbers are difficult to write, because they are very large or very small.
𝑚𝑚 × 𝐵𝐵𝑛𝑛
𝑚𝑚 … mantissa; 1 ≤ 𝑚𝑚 < 𝐵𝐵
𝐵𝐵 … base
𝑛𝑛 … exponent;
Most common form is the normalised notation (standard form) with 𝐵𝐵 = 10.
𝑚𝑚 × 10𝑛𝑛
Base (b = 10)
55
+37
Exercise: Assume these
92
numbers are in Base 8 and do
1) 5+7 = 12; 12 > b; addition.
12/10 => quotient = 1, remainder = 2
2) 1+5+3 = 9; 9<b
Base (b = 10)
-1
52
Exercise: Assume these
-35 numbers are in Base 8 and
17 do subtraction.
2) -1+5-3 = 1; 1>0;
Convert 10 10
To base (b=2)
2/2 1 0
1/2 0 1
10 10 = 1010 2
a) 55 base 2
b) 475 base 12
a) 4425 + 3135
b) 627 − 457
Convert 148
base 10
base 2
base 12
base 16
base 10
base 2
base 12
base 16
WS 2024/25 - Introduction: Applied Informatics (IAI VO)
Introduction: Applied
Informatics (IAI VO)
Sarita Paudel
WS 2024/25
U2 Number System
.
2.1 Number Systems
• Analog vs digital
• Digitization: The conversion from analog information into a digital format (is the transition from
analog to digital).
• Examples
• Analogous data data that can be stored in an analogy to show how they occured in nature.
E.g., signal of music, sound, light etc. Therefore, analog data is a continuous representation,
analogous to the actual information it represents.
• Digital data a discrete representation, breaking the information up into separate elements.
Thus, digital information has a fixed number of states.
WS 2024/25 - Introduction: Applied Informatics (IAI VO)
Practical Examples
• Computers represent, store, process and communicate all information in digital form, so using
binary values.
• Binary values are the simplest form to represent information and the closest to how the
hardware (made of gates, signals, high/low voltage, etc.) work.
• Modern computers are based on storing information using physical means that can be in one of
two mutually exclusive logical states commonly represented as 0 and 1.
• Devices that store and manage binary data are more reliable and less expensive (they need to
represent one state only, the other is usually "absence") because digital signals do not fluctuate
continuously but "jump" sharply between two extremes (pulse-code modulation, PCM).
• No matter how they are physically realized, we call the physical (storage) units in computers
Binary digits, or bits.
• Since each bit can be either 0 or 1, it can represent only two states:
• on/off
• true/false
• yes/no.
• When we need to represent more complex information or systems (e.g., traffic light with three
lights), a single bit is not sufficient: we need multiple bits.
• 2 bits can represent 4 things; 3 bits can represent 8 things; 4 bits can represent 16 things; 5 bits
can represent 32 things; and so on.
• What's the underlying rule that links how much information we can represent with n bits?
• In practice, the number of bits used to store data is defined by the device we are using. In particular, we
may need to allocate more bits than necessary.
• The reason is that computers do not handle single bits, rather uses words.
• Words are groups of bits of a given size defined by the computer architecture, and their size is usually a
power of two (8-bits, 16-bits, 32-bits, 64-bits).
• The memory is divided into memory cells of uniform size (e.g., byte)
• The content of each memory cell can be read via this address
address
Memory*
n
hundred thousand
million, infinity
Decimal number system (widely used number system)
In an additive notation, each numeral (symbol) represents a certain number (value). The overall
value is calculated by adding the values of all present numerals.
𝑛𝑛
𝑉𝑉 𝑋𝑋 = � 𝑣𝑣(𝑥𝑥𝑖𝑖 )
𝑖𝑖=1
Lets suppose a quantity is represented by a number in one number system. We can represent the
same quantitiy in other number system (with another number).
Base of a number system is also called as radix. In a base (b) number system, we have b distinct
digits and digit starts from 0, incremental by 1 every time and ends at (b-1)
2) If we run out of symbols, then we combine the symbols to represent large numbers. In numbers,
different symbols have different values.
3) To represent numbers, we have to know which base we are using so that we can interpret the
numbers correctly.
• digits 𝑥𝑥 ∈ 0, … , 𝑏𝑏 − 1
digits are represented by single symbol
0 1 10 11 100 101
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Value of a number is included by both the symbols and the positions of the symbols.
Interpret the symbols having different values as they are in different positions. This notation is
called positional notation.
1 0 1 1 .1 0 𝑏𝑏
1 0 0 1 .0 1 𝑏𝑏
𝑏𝑏3 𝑏𝑏2 𝑏𝑏1 𝑏𝑏0 . 𝑏𝑏 −1 𝑏𝑏 −2
To the left of decimal increasingly greater weights and to the right decreasingly smaller weights
1 3 5 4 . 6 10
When we use binary numbers then each position is assigned a weight that is a power of 2 (base = 2).
radix
1 1 0 1 . 1 2
23 22 21 20 2 −1
8 4 2 1 1/2
When numbers are represented in bases the decimal point is called the radix point.
8+ 4+ 0+ 1 + ½ = 13.5
Some numbers are difficult to write, because they are very large or very small.
𝑚𝑚 × 𝐵𝐵𝑛𝑛
𝑚𝑚 … mantissa; 1 ≤ 𝑚𝑚 < 𝐵𝐵
𝐵𝐵 … base
𝑛𝑛 … exponent;
Most common form is the normalised notation (standard form) with 𝐵𝐵 = 10.
𝑚𝑚 × 10𝑛𝑛
• base 𝑏𝑏∈ℕ;
• digits 𝑥𝑥∈{0, …, 𝑏𝑏−1}
Positional notation
• Index, Position, Base/Radix, increasing weight (to the left) or decreasing weight (to the right)
…why using the positional notation makes addition and subtraction easier
Base (b = 10)
55
+37
92
2) 1+5+3 = 9; 9<b
Base (b = 10)
-1
52
-35
17
2) -1+5-3 = 1; 1>0;
no
no
Convert 10 10
To base (b=2)
10/2 5 0
5/2 2 1
2/2 1 0
1/2 0 1
10 10 = 1010 2
Dual Dual
Decimal
Decimal
Dual
Octal Hexadecimal
Decimal
Any number system to decimal system (use multiplication rule - using positional notation)
Any to any number system (use multiplication rule to convert to decimal then use division rule to
convert to any other system)
• Computer hardware is designed using numbers in base 2: a low-voltage signal is equated with 0
and a high-voltage signal is equated with 1. Thus, computers work with binary values stored as
bits (0,1).
• Numbers are written using positional notation, in which the digits are arranged in succession,
the position of each digit has a place value, and the number is equal to the sum of the products
of each digit by its place value.
• The place values are powers of the base of the number system. Thus, in the decimal number
system, the place values are powers of 10; in the binary number system, the place values are
powers of 2.
• Base 2, base 8, and base 16 are all related because the bases are powers of 2. This
relationship provides a quick way to convert between numbers in these bases.
• Nell Dale and John Lewis, "Compute Science Illuminated." Chapters 2 and 3.
• Andrzej Yatsko and Walery Susłow, "Insight into Theoretical and Applied Informatics." Chapter
1.3
Basic unit of information is the binary digit (or bit); data representation and operations within the
computer is in binary
Data types -> Numbers (e.g., signed integers, unsigned integers, floating point, etc), text (e.g.,
characters, strings), images (pixels, colors, shapes) etc.
The storable value of the integer depends on the available number of digits where signed and
unsigned integers are used.
Does not have any sign (negative or positive) in the front of an integer.
A collection of n bits represents 2𝑛𝑛 numbers (0 through 2𝑛𝑛 − 1). Example: 3 bits can store values
from 0 to 7 and 4 bits can store values from 0 to 15
Base 2 addition – like base 10 (add from right to left and propagate carry)
carry carry
1 1 11
10010 18 10010 10001
18 17
+01001 +9 +01011 +01011
+ 11 + 11
11011 27 11101 11100
29 28
Most significant bit (MSB) is used to present if the integer is positive or negative
Signed-magnitude
00101 = +5 10101 = - 5
If saving memory is limited to n bits then all numbers are saved using the n bits, by converting to
signed integers. Example: 3 bits, 4 bits, ……
Assign half to positive integers (0 through 2𝑛𝑛−1 ) and half to negative integers (- 2𝑛𝑛−1 through -0); In
arithmetic -0, +0 and 0 are identical
3 bits Num Signed Int 4 bits Num Signed Int 4 bits Num Signed Int
signed magnitude
One‘s complement
two‘s complement
two‘s complement
8 bits representation
4 bits representation
00000101 5 0101 5
00000101 +5 0 101 +5
10000101 -5 1 101 -5
Arithmetic operations 1 0 0 1 -1
1 0 0 0 -0
1 1 1 0 0 0 0 0
0101 5
0 0 0 1 1
+ 1101 -5 0 0 1 0 2
1 0010 2 0 0 1 1 3
0 1 0 0 4
0 1 0 1 5
0 1 1 0 6
WS 2024/25 - Introduction: Applied Informatics (IAI VO)
0 1 1 1 7
signed magnitude
one‘s complement
One‘s complement
two‘s complement
In a binary number system, one‘s complement is the value obtained by inverting all the bits in the
binary representation of the number.
The sign bit is also inverted while doing one‘s complement of signed integers.
One‘s complement
0 101 +5
1 010
one‘s complement
Signed integers
two‘s complement
one‘s complement
Signed integers
two‘s complement
use binary number with n positions to represent integers with n-1 digits
positive integers are represented as binary numbers (i.e. in the normal manner)
one‘s complement
Example (One‘s complement) 1 0 0 0 -7
two zero representations 1 0 0 1 -6 two‘s complement
11111111 -0 1 0 1 0 -5
00000000 +0 1 0 1 1 -4
0011 3 1 1 0 0 -3
0101 5
+ 1100 1 1 0 1 -2
-3
+ 1010 -5 1 1 1 0 -1
1111 -0 1 1 1 1 -0
1111 -0
-0+1 = 0 0 0 0 0 0
-0+1 = 0 0 0 0 1 1
1001 -6 0 0 1 0 2
0110 6
+ 1110 0 0 1 1 3
-1
+ 1100 -3 0 1 0 0 4
10111 7
0 1 0 1 5
10010 2
+1 0 1 1 0 6
2+1 = 3 1000
WS 2024/25 - Introduction: Applied Informatics (IAI VO)
-7 0 1 1 1 7
Exercise
-6 00110 6
11001 -6
+ -2 11001 -6 +11101 -2
-8
110110
00010 2
+1
11101 -2
10111 -8
01000 8
10111 -8
Invert all bits (one‘s complement) then add 1 to the least significant bit (LSB) of the result.
Two‘s complement
0101 1010
+1
1011
Usages:
1. representation of signed binary numbers
2. arithmetic operations for binary numbers (e.g., additions, subtractions)
one‘s complement
Signed integers (Two‘s complement)
two‘s complement
1 1 1 1 0 1 0 1 two‘s complement
one‘s complement
Signed integers
two‘s complement
use binary number with n positions to represent integers with n-1 digits
positive integers are represented as binary numbers (i.e. in the normal manner)
one‘s complement
Signed integers 1 0 0 0 -8
1 0 0 1 -7 two‘s complement
1 0 1 0 -6
1 0 1 1 -5
1 1 0 0 -4
0011 3 1 1 0 1 -3
0101 5
+ 1101 -3 1 1 1 0 -2
+ 1011 -5 1 1 1 1 -1
10000 0 0 0 0 0 0
10000 0
0 0 0 1 1
1010 -6
0 0 1 0 2 + 1110 -2
1010 -6 0 0 1 1 3 11000 -8
0110 6
+ 1111 0 1 0 0 4
-1
+ 1101 -3 0 1 0 1 5
11001 -7
10011 3 0 1 1 0 6
WS 2024/25 - Introduction: Applied Informatics (IAI VO)
0 1 1 1 7
Exercise
Some numbers are difficult to write, because they are very large or very small.
𝑚𝑚 × 𝐵𝐵𝑛𝑛
𝑚𝑚 … mantissa; 1 ≤ 𝑚𝑚 < 𝐵𝐵
𝐵𝐵 … base
𝑛𝑛 … exponent;
Most common form is the normalised notation (standard form) with 𝑏𝑏 = 10.
𝑚𝑚 × 10𝑛𝑛
210 .62510
2 ÷ 2 = 1 𝑅𝑅 0 → 0 0.625 × 2 = 1.25 → 1
1 ÷ 2 = 0 𝑅𝑅 1 → 1 0.25 × 2 = 0.5 → 0
102 0.5 × 2 = 1.0 → 1
1012
Note: keep numbers bottom to top
Note: keep numbers top to buttom
2. append × 𝟐𝟐𝟏𝟏
4. crop/fill the mantissa (omit the leading one of the mantissa and fill with 0s)
𝟏𝟏𝟏𝟏𝟏𝟏𝟏𝟏
0 positive
1 negative −𝟐𝟐. 𝟔𝟔𝟐𝟐𝟔𝟔
−𝟐𝟐. 𝟔𝟔𝟐𝟐𝟔𝟔
8 bit
𝟏𝟏
𝒔𝒔 𝟏𝟏𝟏𝟏𝟏𝟏
𝒌𝒌 − 𝒏𝒏 𝟏𝟏𝟏𝟏𝟏𝟏𝟏𝟏
𝒎𝒎
1 bit 3 bit 4 bit
−𝟐𝟐. 𝟔𝟔𝟐𝟐𝟔𝟔
8 bit
𝟏𝟏
𝒔𝒔 𝟏𝟏𝟏𝟏𝟏𝟏
𝒌𝒌 − 𝒏𝒏 𝟏𝟏𝟏𝟏𝟏𝟏𝟏𝟏
𝒎𝒎
1 bit 3 bit 4 bit
8 bit 𝟏𝟏 𝟑𝟑 𝟒𝟒
32 bit 𝟏𝟏 8 𝟐𝟐𝟑𝟑
A linear model of communication that provides a framework for analyzing how messages are sent
and received.
source destination
Information
signal
transmitter receiver
channel
(encoder) (decoder)
noise
Source (sender): Information source to send message to the receiver through channel. E.g., a person reading a newscast.
Encoder (transmitter): A device that converts signals into binary to be sent to the receiver. E.g., a telephone that converts voice into binary
(1s and 0s)
Channel: Infrastructure that gets information from sender to receiver through endoder and decoder. E.g., An email is sent using world
wide web (internet).
Noise: Noise interrupts a message on the way from sender to receiver. Internal noise (error) happens due to sender or receiver while
encoding or decoding messages. External noise happens in channel during transmission.
Decoder: Opposite to encoding. A device in the model decodes a message from binary digits or waves back to the format that the receiver
understands. E.g., computers that turn binary packets of 1s and 0s into pixels on a screen that make words.
Receiver (destination): End-point of the communication process. Final step where the messege is received. E.g., a person on other end of
telephone, a person reading an email you sent to them etc.
Scenario: we have some analogue phrases, sentences out of some letters and want to digitize this analogue information
• we use some sort of encoding called UTF-8 (8 bits - Unicode Transformation Format) which is based on ASCII (American
Standard Code for Information Interchange)
3 steps
• Sampling : taking samples from the analog waveform. Sampling rate is the number of samples taken per second and measured
in Hertz (Hz). For instance if I take 2 samples per second then sampling rate is 2 Hz.
• Quantization: data are measured based on levels. Levels depend on bit depth. The number of lines between minimum and
maximum value of amplitude depends on the bit depth. For n bits depth, number of levels are 𝟐𝟐𝒏𝒏. Collect the values at the
levels of each sampling point in the waveform.
Consider given analog signal. Sampling rate of the anolog signal is 2 Hz (see red lines in the figure). Compute 4 bits
digitization of the signal and show digital representation of the signal.
Analog signal
3
Sampling
2
Amplitude
Digital
signal
1
0 1 2 3
Time(s)
WS 2023/24 - Introduction: Applied Informatics (IAI VO)
Digitalization
Digitalization is about processes and roles where we use digital information to simplify specific
operation of a process.
Communication: Using whatsapp, facebook messenger, viber etc. to make communication easier.
We simplify processes or operations using those tools or technologies.
Banking: we can send money using online banking webpage; we do not have to go to bank any
more.
Driven by digital infrastructures e.g., networks and devices with their availability by digital
applications like mobile apps, web apps to exploid new business model which allows automated
communication between apps or tools from different manufactures (e.g., manufacture A with
manufacture B) using standard communication channel to get to you a better customer experience.
Digitalization of processes and roles about business process on the road of fourth revolution
Digitization is a process of converting an analog Information (e.g., words, signals) to a digital form
Analog information in the form of words can be digitized using ASCII, Unicode and/or UTF-8
An analog signal can be digitized in three steps; sampling, quantization and encoding
Total number of data points (n-bit representation) to be measured depends on sampling rate and a
bit depth.
You want to digitize a 15-seconds long piece of music with a sample rate of 44kHz and bit
depth of 16bit. How many bits will you produce as a result?
Scenario: we have some analogue phrases, sentences out of some letters and want to digitize this
analogue information
• we use some sort of encoding called UTF-8 (8 bits - Unicode Transformation Format) which is
based on ASCII (American Standard Code for Information Interchange)
3 steps
• Sampling
• Quantization
• Encoding
WS 2023/24 - Introduction: Applied Informatics (IAI VO)
UTF-8 (Unicode Transformation Format – 8 bits)
ASCII: standardized encoding (process of converting characters in human language into binary
sequence) system for text.
• Alphabets (upper-case and lower-case), digits (0 to 9), symbols(/, ?, !) and assigns a unique
three-digit code and a unique byte
Unicode: standard encoding system for all human languages including emojis. It solves the space
issue of ASCII. In a similar manner to ASCII, unicode assigns a unique code (called code point) to
each character.
UTF-8: translates unicode character to binary string and also translates the binary string back to
unicode character.
space
A D E 4 . 9
• Sampling
• Quantization
• Encoding
Analog signal
3
2 Digital
Amplitude
signal
0 1 Time(s) 2 3
WS 2023/24 - Introduction: Applied Informatics (IAI VO)
Digitization of a waveform/timesignal
Sampling: Taking samples from the analog waveform. Sampling rate is the number of samples
taken per second and measured in Hertz (Hz). For instance if I take 2 samples per second then
sampling rate is 2 Hz.
3 Analog signal
Sampling
2
Amplitude
0 1 2 3
Time(s)
0 2 3
WS 2023/24 - Introduction: Applied Informatics (IAI VO)
10 10 1 11 Time(s) 10 11 10
Digitization of a waveform/timesignal
3 Analog signal
2.5 Sampling
3-bit digitization
2
Amplitude
1.5
1
0.5
0 011 101 1 110 100 2 110 100 3
Communication:
Voting:
Banking: