Introduction to Computer Science - Lecture 2

Slides:



Advertisements
Similar presentations
Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
Advertisements

Data Representation COE 202 Digital Logic Design Dr. Aiman El-Maleh
The Binary Numbering Systems
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
Comp 1001: IT & Architecture - Joe Carthy 1 Review Floating point numbers are represented in scientific notation In binary: ± m x 2 exp There are different.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
Data Representation COE 205
Connecting with Computer Science, 2e
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Image Formation and Digital Video
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.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
Lecture 5.
Chapter 2, Exploring the Digital Domain
Computing Higher - Unit 1… Computer Systems 1 Higher Computing Unit 1 – Topic 1 Data Representation.
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Copyright 1998, S.D. Personick. All Rights Reserved1 Telecommunications Networking I Lectures 2 & 3 Representing Information as a Signal.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Data Representation CS280 – 09/13/05. Binary (from a Hacker’s dictionary) A base-2 numbering system with only two digits, 0 and 1, which is perfectly.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
1 Multimedia Information Representation. 2 Analog Signals  Fourier transform and analysis Analog signal and frequency components Signal bandwidth and.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
Chapter 2 : Business Information Business Data Communications, 6e.
CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp
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.
Digital Video Digital video is basically a sequence of digital images  Processing of digital video has much in common with digital image processing First.
1 Information Representation in Computer Lecture Nine.
CSCI-100 Introduction to Computing Hardware Part II.
The Digital Revolution Changing information. What is Digital?  Discrete values used for  Input  Processing  Transmission  Storage  Display  Derived.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
CO5023 Introduction to Digital Circuits. What do we know so far? How to represent numbers (integers and floating point) in binary How to convert between.
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,
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
OCR Computing OGAT Data Types. What OCR need you to know… Data Types a) Primitive data types, integer, real/floating point, character,
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.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
1 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Fundamental concepts in video
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
Data Representation.
Lec 3: Data Representation
Binary Notation and Intro to Computer Graphics
Level 3 Extended Diploma Unit 19 Computer Systems Architecture
Understanding Analogue and Digital Video Lesson 1
Digital Logic and Computer Organization
Introduction To Computer Science
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Intermediate 2 Computing
Multimedia Systems and Applications
Chapter I Digital Imaging Fundamentals
Overview What is Multimedia? Characteristics of multimedia
Ch2: Data Representation
Summer Term Year 10 Slides
Signals and Systems Networks and Communication Department Chapter (1)
Chapter 2 Data Representation.
Representing Sound 2.6 – Data Representation.
How Computers Store Data
COMS 161 Introduction to Computing
Option: Data Representation
Option: Data Representation
WJEC GCSE Computer Science
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Faculty of Science Information Technology Safeen Hasan Assist Lecturer
Presentation transcript:

Introduction to Computer Science - Lecture 2 Representation of information

Binary negative numbers In order to represent binary positive and negative numbers, one has to assign the first bit for the sign. (0 1011)2=(11)10 (1 1011)2=(-11)10

Representation of real numbers Real numbers can be written in the fixed point notation: (1100,11)2=1*23+1*22+0*21+0*20+1*2-1+1*2-2=12,75

Representation of real numbers Computers use floating point notation It consists of: s - sign (0 - positive, 1 - negative) m - mantissa c - exponent The value of the number in this notation equals: (-1)s (m)2 2c

Representation of real numbers Caution! Mantissa is normalized, i.e. its values are from the set [1,2) As every number in this set can be written as 1,xxxxx, the starting 1 is omitted. As a result, the mantissa 101 is really (1,101)2=(1,625)10 Caution (one more time)! The first bit of the exponent is for the sign. Exponents can be negative.

Representation of real numbers Example: let’s compute the decimal value of x, written with: sign=0, mantissa=1011, exponent=11 x = (-1)0 * (1,1011)2 * (2-1)10 =(1,6875*0.5)10=(0,84375)10

Representation of real numbers Example: let’s convert (3,125)10 to a floating point binary number Step 1: convert the number to binary in floating point notation (3,125)10 = (11,001)2 Step 2: this can be interpreted as s=0, m=11,001, c=0. Now let’s normalize the mantissa: (11,001)2 = 1,1001 * 21 Which yields: s=0 m=1001 c=01

Representation of numbers There is a limited number of numbers to be stored on a fixed number of bits (in the fixed point and floating point notations). Let’s consider, what is the largest number to be stored on 11 bits in the fixed point and floating point notations. In floating point notation, more bits equal better accuracy.

Text representation The simplest method of text encoding: let’s assign a number to each character. Standard implementation of the above idea: ASCII (http://www.asciitable.com/)

Text representation What about diacritics? - code pages. Polish diacritics are encoded with: latin2 (ISO-8859-2) or Win 1250 (CP1250) Nowadays, the Unicode is commonly used. It is implemented in encodings UTF- 8 and UTF-16.

Picture representation - color models In computer graphics it is crucial to represent a color with numbers. Various color models are used, e.g.: RGB CMYK

RGB Colors are mixed according to the additive rule of color mixing.

RGB Three numbers: R (red), G (green), B (blue) denote the share of each base color in the encoded color. The numbers are written in the hexadecimal system.

CMYK Colors are mixed according to the subtractive rule of color mixing.

CMYK

Sound Acoustic waves (also known as sound waves) are a type of longitudinal waves that propagate by means of adiabatic compression and decompression. Sound - auditory sensation, caused by some soundwaves. There are 4 main properties of sound: Frequency Volume Duration Tone color (timbre)

Sound Sound frequency is the frequency of the acoustic wave. Frequency is measured in Herz (Hz = 1/s) Musical scale is exponential.

Sound Auditory spectrum for humans is 16 Hz – 20 000 Hz (=20 kHz) Dogs have: 15 Hz – 30 000 Hz Lower sounds - infrasounds, higher - ultrasounds Frequencies > 10 GHz – hypersounds

Sound conversion

Sampling During conversion of the sound wave to digital data, the signal is sampled. Sampling - process of creating a discrete signal representing the continuous signal with a sequence of values called samples. Samples are taken in regular intervals.

Sampling

Sampling Sampling interval Ts – time between taking each of the samples Sampling rate – inverted sampling interval. How to choose the sampling rate? Sampling theorem Nyquist-Kotielnikov-Shannon: If a function x(t) contains no frequencies higher than B hertz, it is completely determined by giving its ordinates at a series of points spaced 1/(2B) seconds apart.

Sampling - aliasing

Sampling In typical scenarios the sampling frequency of 44100 Hz is used.

Films Digitalized films are defined by a series of parameters. Each of the parameters is standarized.

FPS Frames Per Second The amount of still frames displayed in one second of the film. FPS varied between 6-8 in early cameras to 120 in modern, professional equipment.

Interlacing/progressive scan Interlacing is a technique used to boost FPS It consists in showing frames cut in narrow horizontal lines. In one frame, every even numbered line is not shown, while in another frame - every odd numbered line is blacked out. Interlacing was a standard in television broadcast (PAL, SECAM, NTSC)

Aspect ratio

Screen resolution Resolution is a number of single pixels in each dimension. The higher resolution, the better image quality. Television broadcast standards contain the information on resolution.

Screen resolution - television standards Standard-definition television (SDTV): 480i (with interlace; standard NTSC uses 486i) 576i (PAL, 720 × 576 with interlace 2 times 288 lines) Enhanced-definition television (EDTV): 480p (720 × 480 progressive scan) 576p (720 × 576 progressive scan) High-definition television (HDTV): 720p (1280 × 720 progressive scan) 1080i (1920 × 1080 with interlace 2 times 540 linii) 1080p (1920 × 1080 progressive scan)

Thank you for your attention!