Faculty of Cybernetics, Statistics and Economic Informatics –

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
Advanced Topics Object-Oriented Programming Using C++ Second Edition 13.
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Data Representation in Computers
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
IT-101 Section 001 Lecture #4 Introduction to Information Technology.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Bits and Bytes.
COMPUTER FUNDAMENTALS David Samuel Bhatti
Chapter 3 Data Representation Text Characters. 2 Representing Text To represent a text document in digital form, we need to be able to represent every.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Chapter 4: Representation of data in computer systems: Characters OCR Computing for GCSE © Hodder Education 2011.
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
Binary Arithmetic & Data representation
The Digital Codes.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Number Systems Spring Semester 2013Programming and Data Structure1.
1 Problem Solving using computers Data.. Representation & storage Representation of Numeric data The Binary System.
Introduction to Computer Design CMPT 150 Section: D Ch. 1 Digital Computers and Information CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 1.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Representing Characters in a computer Pressing a key on the computer a code is generated that the computer can convert into a symbol for displaying or.
Data Representation, Number Systems and Base Conversions
Agenda Character representation Numerical Conversions ASCII EBCDIC
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The necessity and advantages of coding  The variety of coding systems You will learn: 2.
DATA REPRESENTATION 4 Y. Colette Lemard February 2009.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
CHAPTER 3 BINARY NUMBER SYSTEM. Computers are electronic machines which operate using binary logic. These devices use two different values to represent.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
1.4 Representation of data in computer systems Character.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
Data Representation COE 308 Computer Architecture
Binary Representation in Text
Binary Representation in Text
Programming and Data Structure
Chapter 3 Data Representation Text Characters
Lesson Objectives Aims You should be able to:
Binary 1 Basic conversions.
Digital Logic and Computer Organization
Number Representation
3.1 Denary, Binary and Hexadecimal Number Systems
CSCI 198: Lecture 4: Data Representation
Data Transfer ASCII FILES.
CSCI 161: Lecture 4: Data Representation
TOPICS Information Representation Characters and Images
Lecture 3 ISE101: Computing Fundamentals
Representing Characters
Ch2: Data Representation
Computer Data Types Basics of Computing.
Information Representation
COMS 161 Introduction to Computing
ECB2212-Digital Electronics Codes
2. Data Formats Chapt. 3.
Faculty of Cybernetics, Statistics and Economic Informatics –
COMS 161 Introduction to Computing
ECE 331 – Digital System Design
FIGURE 1-1 Examples of Voltage Ranges and Waveforms for Binary Signals
ASCII and Unicode.
Data Representation COE 308 Computer Architecture
Presentation transcript:

Faculty of Cybernetics, Statistics and Economic Informatics – 12/4/2018 IT Basics 4 Faculty of Cybernetics, Statistics and Economic Informatics – BUES Prof. Răzvan ZOTA, Ph.D. zota@ase.ro http://zota.ase.ro/itb 4-Dec-18

Information coding in computers Let’s have: With these symbols we may construct n code words: C ={c1,c2,…,cn} The code words are finite sequences of symbols from set A. Coding represents the operation of stating a bi-univocal correspondence between the symbols xiX and ciC. The set of words ci (i=1..k ) are making a code. Two type of words: Words with sense Words without sense 4-Dec-18

Alphanumeric codes Examples: 12/4/2018 Alphanumeric codes Examples: EBCDIC (Extended Binary Coded Decimal Information Interchange) ASCII (American Standard Code for Information Interchange) Unicode – supports electronic data exchanges, text processing and displaying in several international languages. It has been adopted by great international companies, like: Apple, HP, IBM, Microsoft, Oracle, Sun, Unisys, etc. Last version – 2016 – v9.0 (support for > 128.000 characters) For more info see: www.unicode.org In Version 8.0, the standard grew by 7,716 characters. This version continues the Unicode Consortium’s long-standing commitment to support the full diversity of languages around the world by adding new scripts and other characters that support additional languages of Africa and India, such as Ik, Kulango, and Tai Ahom. The text of the latest version also documents the newly adopted Georgian lari currency symbol.

12/4/2018

Alphanumeric codes (cont.) http://www.jimprice.com/jim-asc.shtml http://tronweb.super-nova.co.jp/characcodehist.html 4-Dec-18

Alphanumeric codes (cont.) 4-Dec-18

Numeric codes Weighted Non-weighted Weighted codes (zi are the binary digits from 0 to 9) have the following characteristic: each digit has its associated weight and the value of the decimal number is computed by multiplying the code digit with the (associated) weight and summing the values: 4-Dec-18

Weighted codes Decimal digit 8421 code 2421 code (Aiken) Code 50 43210 0000 01 00001 1 0001 0111 01 00010 2 0010 0110 01 00100 3 0011 0101 01 01000 4 0100 01 10000 5 1011 10 00001 6 1100 1010 10 00010 7 1101 1001 10 00100 8 1000 1110 10 01000 9 1111 10 10000 4-Dec-18

Weighted codes (cont.) Decimal digit 4221 code 5421 code 7421 code 6421 0000 1 0001 0011 2 0010 3 0101 4 0110 0100 5 1001 1000 0111 6 1100 7 1101 1010 1011 8 1110 9 1111 4-Dec-18

Weighted codes (cont.) 8421 code  Binary-decimal natural code, with weights powers of 2 2421 code (Aiken) – auto-complementary code 8421 code – the last two weights are negative, auto-complementary code (50 43210) code – sequences of 7 binary symbols divided into two groups 4-Dec-18

Non-weighted codes Decimal digit Excess 3 code Gray code 2 of 5 (74 210) 0011 0000 11 000 1 0100 0001 00 011 2 0101 00 101 3 0110 0010 00 110 4 0111 01 001 5 1000 01 010 6 1001 01 100 7 1010 10 001 8 1011 1100 10 010 9 1101 10 100 4-Dec-18

Non-weighted codes Exces 3 code – auto-complementary Gray code – two consecutive code sequences differ by only one binary position 2 of 5 code – pseudo-weighted code; the code sequences for decimal digits 19 have the associated weights 74210 except digit 0. Only 2 from the 5 binary digits are significant (have the value of 1). 4-Dec-18

Barcodes – an example Barcode 2 of 5 (ITF, from Interleaved Two of Five) – two lines are wide and three are narrow. The print rate between wide line/narrow line is 2:1 or 3:1. The spaces do not contain information (the interleaved 2 of 5 code the information density is bigger because the spaces are containing information also) 4-Dec-18

Barcodes - example 4-Dec-18

Barcodes - example Example: number 10 representation with 2 of 5 barcode START 1 STOP 4-Dec-18

QR (Quick Response) code Represents a matrix (bi-dimensional) barcode Example: 4-Dec-18