Data Representation.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
Module 4.2 File management 1. Contents Introduction The file manager Files – the basic unit of storage The need to organise Glossary 2.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Data Representation in Computers
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Bits and Bytes.
Representing Information in Binary (Continued)
COMPUTER FUNDAMENTALS David Samuel Bhatti
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Chapter 5 Data representation.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Computer Systems Week 10: File Organisation Alma Whitfield.
Data vs. Information OUTPUTOUTPUT Information Data PROCESSPROCESS INPUTINPUT There are 10 types of people in this world those who read binary and those.
Lecture 5.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Chapter 2 Computer Hardware
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Introduction to Digital Media. What is it? Digital media is what computers use to; Store, transmit, receive and manipulate data Raw data are numbers,
Data Representation, Number Systems and Base Conversions
Data as the computer sees it 1.  Number systems Number systems  Data storage Data storage  Glossary Glossary 2.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
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.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
1 Problem Solving using Computers “Data....Representation, and Storage.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Layer 6 Presentation Layer. Overview Now that you have learned about Layer 5 of the OSI model, it is time to look at Layer 6, the presentation layer.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
1.4 Representation of data in computer systems Character.
DATA REPRESENTATION - TEXT
Binary Representation in Text
Binary Representation in Text
Computer Science 210 Computer Organization
Binary and Decimal Numbers
3.3 Fundamentals of data representation
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
NUMBER SYSTEMS.
Lec 3: Data Representation
Binary 1 Basic conversions.
Level 3 Extended Diploma Unit 19 Computer Systems Architecture
Level 3 Extended Diploma Unit 19 Computer Systems Architecture
Binary Numbers and ASCII and EDCDIC
3.1 Denary, Binary and Hexadecimal Number Systems
TOPICS Information Representation Characters and Images
Folders out, planners out…
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
Representing Characters
Ch2: Data Representation
Summer Term Year 10 Slides
Computer Science 210 Computer Organization
Information Representation
Fundamentals of Data Representation
Learning Intention I will learn how computers store text.
Option: Data Representation
Option: Data Representation
C Programming Language
Networks & I/O Devices July 10, 2019.
Chapter 3 - Binary Numbering System
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
ASCII and Unicode.
Presentation transcript:

Data Representation

Data representation Encoding Analogue v. digital Sampling File systems (drives, folders, naming)

Data representation Humans work with Computers use Text Plain Formatted Numbers Integers Fractions Big & small Graphics Video Sound Computers use 1 or 0 How do we resolve this mismatch?

Data encoding What does this say? How do we know? ●●● — — — ●●● How do we know? Information has been encoded

Encoding Finding a way to represent data in a way that can be handled by computers Many different encoding methods e.g. Text – ASCII, Unicode etc. Numbers – Integers, Fixed point, floating point Pictures – 2 bit, 8 bit, 16 bit, 24 bit colour & different file formats Sound – WAV, MP3, OGG etc. Video – AVI, MPG, MOV etc.

Encoding examples - ASCII American Standard Code for Information Interchange Represents English language characters using numbers Originally 7 bits per character -> 128 options Alphanumeric & control characters (e.g. BS=Back Space) 8th bit used for parity checking Extended ASCII uses 8 bits = 256 options

ASCII code (7 bit)

Encoding examples - Unicode ASCII just one of many encoding schemes ASCII only supports basic Latin alphabet Other encoding schemes required to support different alphabets, accented letters, mathematical symbols etc. Problems of incompatibility etc. Unicode aims to replace all “legacy” character sets

Encoding examples - Unicode provides a unique number for every character, no matter what the platform no matter what the program no matter what the language Uses 8, 16 or 32 bits for each character Currently at version 8.0 Full details available at Unicode website www.unicode.org

Unicode 8.0 code charts

Unicode 8.0 code charts (continued)

Unicode 8.0 code charts (continued)

Numbers Numbers fundamental part of life Many different forms 1,2,3,4,5 … £17.99 47% Earth to Sun 149.6×109 m ½ , ¾ √2 Negative numbers

Numbers Computers can only use 0 or 1 => binary (Base 2) Encoding schemes needed to represent all other types of number in binary Next week we will look at Binary Base 2 Decimal Base 10 Hexadecimal Base 16

Analogue A continuously varying signal Varying in terms of frequency, amplitude, or both A signal that is constantly changing Analogue can represent many values Accurate BUT vulnerable to noise

Digital A signal with discrete value changes Signal levels are either on or off Often thought of as either 1 or 0, especially in computers, but digital can represent many different values using discrete levels Due to limited possible values, digital signals less vulnerable to noise

Analogue to digital conversion Most things we deal with are analogue e.g. Colours Sounds Time Weights Lengths etc. Computers are digital ...

Sampling

Sampling Most common way to convert analogue data in digital form Take measurements at set intervals (time or space) Measure value of analogue source to a defined degree of accuracy => resolution Higher resolution gives more accurate result but increases storage Store digitised values

Resolution Two aspects to resolution Sampling rate examples No. of possible values per data point Sampling rate examples Dots per inch -> pictures Sampling frequency -> sounds Values per data point examples 16bit, 24bit, 32bit colour -> graphics Bit rate -> MP3 files

End result? All these forms of information end up as 1s and 0s… which have to be stored or transmitted…

File systems Each operating system has facilities to manage files in various ways e.g. Create Move Copy Delete Rename Open Execute

File systems - Windows Each drive has a letter e.g. C: Files are organised in folders (used to be called directories) Top level of each drive is the root folder e.g. C:\ File names are not case sensitive MyFile.txt = myfile.txt Some characters are not allowed as they have special meanings \ / ? : * “ > < |

File systems - Windows Files generally have an extension which tells Windows what type of file it is e.g. myfile.txt = plain text file myfile.doc = Word document Windows maintains a database of file extensions and the program that opens each type

File systems - Windows File names must be unique in a folder but can be duplicated if in different folders Full name of a file includes the path to find it Starts with drive letter Folders divided up by \ character D:\documents\college work\Year 1\CS\PC hardware.pptx Note: spaces are allowed but can cause problems…

File systems – Linux / Android Based on Filesystem Hierarchy Standard (FHS) No drive letters Everything including physical drives appears in directories (folders) under the root directory (/) Levels in file paths divided by / (where else have you seen this?) Case sensitive

Ubuntu Drives show as folders under /dev or /mnt e.g. sda is first SATA drive

Android Android is a version of Linux Same file system (ish) Often has sdcard/ as symbolic link to /mnt/sdcard

Apple iOS “To keep the system simple, users of iOS devices do not have direct access to the file system and apps are expected to follow this convention.” (iOS Developer Library) Each app runs in its own “sandbox” “an app is generally prohibited from accessing or creating files outside its containers” Must use operating system to access “things such as the user’s contacts or music”