Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.

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.
Computer Systems Nat 4/5 Data Representation Lesson 4: Storing Graphics.
The Binary Numbering Systems
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
An Introduction to Scanning and Storing Photographs and Graphics Bryn Jones Aug 2002
Chapter 5 Data representation.
Higher Computing Data Representation.
Lecture 5.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Computing Higher - Unit 1… Computer Systems 1 Higher Computing Unit 1 – Topic 1 Data Representation.
Bits & Bytes: How Computers Represent Data
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 1. Data Representation Data Representation – Why do we use binary? simplicity,
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
CS Topic 1 - Data Representation v2 1 Data representation considers how a computer uses numbers to represent data inside the computer. Three types of data.
Shawlands Academy Higher Computing Data Representation.
Computer Structure & Architecture 7c - Data Representation.
AS LEVEL ICT2 Processing Different Types of Information.
Data Representation The method of data representation in a computer system depends upon the type of data which is being used. Three types of data are considered.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Image formats. Basic terminologies… Pixels: Pixels are the building blocks of every digital image. a pixel is a single point in a graphic image. Resolutions:
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Data Representation Robin Burke IT 130. Outline Data Representation Binary Numbers Image types.
Int 2/ Higher - Data Representation - 1 Why use Binary? It is a two state system (on/off) which makes it simple to operate Even if degradation of current.
Data Representation The storage of Text Numbers Graphics.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Representing and Storing Graphics EXTENSION.
Digital Images are represented by manipulating this…
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Graphics in a computers memory How a picture (i.e. a graphic) is stored in a computers memory A computer screen is made up of little dots, called PICture.
Data Representation.
Representation of Data in Computer Systems
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.
National 4 and National 5 Computer Science. National 4 Computing Science 2 units: Software Design and Development Information System Design and Development.
Text and Images Key Revision Points.
Computer Systems Nat 5 Computing Science Data Representation
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
Data Representation.
Digital imaging.
Computer Systems Nat 4/5 Data Representation Lesson 4:
3.1 Denary, Binary and Hexadecimal Number Systems
Computer Science Higher
Pixel, Resolution, Image Size
Chapter 2: How are data represented?
Bits & Bytes How Computers Represent Data
BTEC NCF Dip in Comp - Unit 02 Fundamentals of Computer Systems Lesson 10 - Text & Image Representation Mr C Johnston.
Intermediate 2 Computing
2.01 Investigate graphic image design.
A computer display is made up of small squares, called pixels.
Learning Intention I will learn how a computer stores graphics.
An Introduction to Scanning and Storing Photographs and Graphics
Representing Images 2.6 – Data Representation.
Web Design and Development
Summer Term Year 10 Slides
Computer Systems – Unit 1
2.01 Investigate graphic image design.
Why use Binary? It is a two state system (on/off) which makes it simple to operate Even if degradation of current occurs (ie a slight drop in voltage)
Storing Negative Integers
Computer Systems.
Computer Systems Nat 4.5 Computing Science Data Representation
Option: Data Representation
Computer Systems Nat 4/5 Data Representation Lesson 4:
2.01 Investigate graphic image design.
LO1 – Understand Computer Hardware
Option: Data Representation
2.01 Investigate graphic image design.
Presentation transcript:

Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours

Marr CollegeHigher ComputingSlide 2 Data Representation Positive 8-bit binary numbers Convert binary to decimal 1.Write place headings 2.Write binary number 3.Total headings where 1 present (ignore 0s) => = 93 Binary is Decimal 93 Place headings Binary number INT 2

Marr CollegeHigher ComputingSlide 3 Data Representation Advantages of Binary Advantages 1 Binary 0 and 1 can be simply used to represent OFF or ON 2 A “degraded” signal can still be detected as representing 1 3 Binary has only 5 rules for addition making calculations simpler. INT 2

Marr CollegeHigher ComputingSlide 4 Data Representation Range up to and including 32-bits The range of positive integer numbers in binary up to 32 bits are detailed in the table below: UnitRange 1 Bit0 to 2 1 – 1 (0 to 1) 8 bits (1 Byte)0 to 2 8 – 1 (0 to 255) 16 bits (2 bytes)0 to 2 16 – 1 (0 to 65,535) 24 bits (3 bytes)0 to 2 24 – 1 (0 to 16, 777, 215) 32 bits (4 bytes)0 to 2 32 – 1 (0 to 4,294,967,295) These measurements are used to determine the lower and upper limits of the range numbers possible with a given amount of bits or bytes.

Marr CollegeHigher ComputingSlide 5 Data Representation Negative numbers and two’s complement Two’s complement 1 State the positive binary number 2 Invert 0s and 1s 3 Add => (-128 ) = - 9 Rules of Binary Addition = = 0 carry = = 1 carry = 1 Example: Represent -9 using two’s complement method. = +9 = Inversion = Add binary 1 = Answer! Indicates sign 0 = +, 1 = -

Marr CollegeHigher ComputingSlide 6 Data Representation Floating point representation Here is a fractional binary number… Rule: Move the point in front of the digits. Binary point So the same number could be written as x MantissaExponent INT 2

Marr CollegeHigher ComputingSlide 7 Data Representation Floating point representation And the same number would be stored in memory as… Byte 1 Byte 2Byte Therefore… The mantissa stores the actual digits of the number. Increasing the number of bits increases the precision (accuracy) of the number. The exponent stores the number of places the point has been moved. Increasing the number of bits increases the range of numbers that can be stored. MantissaExponent

Marr CollegeHigher ComputingSlide 8 Data Representation Storage Capacity Memory is organised into groups of bytes and large files sizes are represented as powers of 2. UnitBytes 1 Bit0,1 1 Byte8 bits 1 Kilobyte (Kb)2 10 = 1024 bytes 1 Megabyte (Mb)2 20 = 1,048,576 bytes (1024 Kb) 1 Gigabyte (Gb)2 30 = 1,073,741,824 bytes (1024 Mb) 1 Terabyte (Tb)2 40 = 1,099,511,627,776 bytes (1024 Gb) These measurements are used in memory (e.g. RAM) and backing storage (e.g. hard disc, DVD etc.) INT 2

Marr CollegeHigher ComputingSlide 9 Data Representation ASCII - American Standard Code for Information Interchange To represent text a unique 7 or 8 bit binary code is used for each character on the keyboard. CharacterASCII codeDecimal A B Z a Beep & Examples of Standard ASCII Note the leftmost bit is always 0, hence only 7-bits used in Standard ASCII. The ‘eighth bit’ increases the range of possible characters to 256 and gives Extended ASCII. A character set is the complete set of characters that are on the keyboard e.g , a b c, ! ” £, and control characters. A control character is non-printable e.g. RETURN, TAB, ESCAPE, SPACE etc. They are the first 32 characters in ASCII. ASCII enables the transfer data from one computer or software package to another e.g. . It is the simplest form of text with no formatting. INT 2

Marr CollegeHigher ComputingSlide 10 Data Representation Unicode Unicode is a 16-bit code (2 bytes) that supports 65,536 characters Snapshot of German keyboard Advantages A code for every character based alphabet in the world Has codes for Chinese, Arabic etc. Covers all punctuation marks and control characters

Marr CollegeHigher ComputingSlide 11 Data Representation Bitmapped graphics Any graphic is made up from a series of pixels (picture elements). Each pixel is an individual dot on the screen. The BIT MAP of the imagePixel pattern using 8 x 8 grid In a monochrome graphic, each pixel is represented by either 0 - white OR 1 - black INT 2

Marr CollegeHigher ComputingSlide 12 Data Representation Resolution The quality of the image depends on the number of pixels More pixels means higher resolution and clearer, sharper image. Pixel pattern using 8 x 8 gridPixel pattern using 16 x 16 grid High resolution = many small pixels, larger file size Low resolution = larger pixels, smaller file size INT 2

Marr CollegeHigher ComputingSlide 13 Data Representation Storage Each pixel requires 1 bit of storage. So, the more pixels used, the larger the file size. 8 x 8 = 64 bits 64 bits / 8 = 8 bytes File size of this graphic is 8 bytes Example 1 16 x 16 = 256 bits 256 bits / 8 = 32 bytes File size of this graphic is 32 bytes Example 2 INT 2

Marr CollegeHigher ComputingSlide 14 Data Representation Bit-depth and no. of colours up to 24-bits (true colour) Bitmap graphics are made up of pixels (dots) and each dot is stored as bits or bytes in memory. Bit-depth is the number of bits used to represent shades of colours of a pixel. ColoursBitsBytes 21 1/81/ /21/ , , 777, The more bits per pixel the more colours can be used - but file size will increase.

Marr CollegeHigher ComputingSlide 15 Data Representation Dots per inch (dpi) Dpi is a measure of how many pixels (dots) are in an square inch. Printers and scanners state resolution in dpi. Example The dimensions of an image are 4” x 6”, the resolution is 300 dpi and it is black and white. Calculate the file size. Formula: Pixels / bits = length x breadth x dpi 2 4 x 6 x 300 x 300 = 2,160,000 bits => / 8 = 270,000 bytes => 270,000 = kilobytes File size of this graphic is bytes

Marr CollegeHigher ComputingSlide 16 Data Representation Bitmapped graphics Advantages Individual pixels can be edited Complexity of image does not affect file size Can be compressed to JPEG, GIF or TIFF to reduce file size Disadvantages ×Large file size e.g. 3 bytes per pixel ×Individual objects cannot be edited ×Resolution dependent: low resolution = low quality ×Image ‘pixellated’ when resized bigger Pixellated bitmap

Marr CollegeHigher ComputingSlide 17 Data Representation Need for compression of bitmaps Bitmapped graphics often have a large file size. So... A 1024 x bit colour graphic has a file size of 2.25 Megabytes. An image of this size would be slow to transmit across a network or slow to download from the Internet.... Bitmaps can be compressed using compression algorithms into JPEG or GIF to reduce file size and enable faster transfer / download across networks.

Marr CollegeHigher ComputingSlide 18 Data Representation Need for compression of bitmaps JPEG (Joint Photographics Expert Group) Lossy compression algorithm where some pixel data is removed, but retains 24-bit colour and minimal loss of quality to human eye – ideal for photographs.

Marr CollegeHigher ComputingSlide 19 Data Representation Need for compression of bitmaps GIF (Graphics Interchange Format) Lossless compression algorithm where colour depth is reduced to 8-bit resulting in 256 colours – ideal for clip art etc but not for photographs.

Marr CollegeHigher ComputingSlide 20 Data Representation Vectored graphics Vectors are stored as a description of the objects that make up the graphic e.g. start x, start y, line thickness, fill colour etc. Advantages Individual objects can be edited Objects can be grouped and manipulated as one Are resolution independent i.e. same quality regardless of resolution Do not lose quality when resized Small file size as values not stored for every pixel Disadvantages ×Cannot be edited at pixel level ×File size can be large if many objects / layers