Data Representation and Networking

Similar documents
NUMBERS AND DATA REPRESENTATION. Introduction to Computer Engineering 2015 Spring by Euiseong Seo

Introduction to Computer Science (I1100) Data Storage

3 Data Storage 3.1. Foundations of Computer Science Cengage Learning

Homework 1 graded and returned in class today. Solutions posted online. Request regrades by next class period. Question 10 treated as extra credit

CSE COMPUTER USE: Fundamentals Test 1 Version D

Chapter 15 Networks. Chapter Goals. Networking. Chapter Goals. Networking. Networking. Computer network. Node (host) Any device on a network

Objectives. Connecting with Computer Science 2

Chapter 1. Data Storage Pearson Addison-Wesley. All rights reserved

Chapter 2 Bits, Data Types, and Operations

networks List various types of networks and their

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1

Bits and Bit Patterns

Digital Fundamentals

CS101 Lecture 04: Binary Arithmetic

Lecture #25: Networks and Communications. Communication and Networks. What will we learn?

Data Representation. Types of data: Numbers Text Audio Images & Graphics Video

Introduction to Computers and Programming. Numeric Values

Digital Fundamentals

Signed Multiplication Multiply the positives Negate result if signs of operand are different

Edexcel GCSE in Computer Science Microsoft IT Academy Mapping

Data Representation 1

LANs do not normally operate in isolation. They are connected to one another or to the Internet. To connect LANs, connecting devices are needed.

Number System. Introduction. Decimal Numbers

Lecture C1 Data Representation. Computing and Art : Nature, Power, and Limits CC 3.12: Fall 2007

Data Storage. Slides derived from those available on the web site of the book: Computer Science: An Overview, 11 th Edition, by J.

Data Communication. Introduction of Communication. Data Communication. Elements of Data Communication (Communication Model)

Jianhui Zhang, Ph.D., Associate Prof. College of Computer Science and Technology, Hangzhou Dianzi Univ.

M1 Computers and Data

Digital Data. 10/11/2011 Prepared by: Khuzaima Jallad

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

CHW 261: Logic Design

Number Systems Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. Indian Institute of Technology Kharagpur Number Representation

Image coding and compression

CPSC 301: Computing in the Life Sciences Lecture Notes 16: Data Representation

Elementary Computing CSC 100. M. Cheng, Computer Science

UNIT 7A Data Representation: Numbers and Text. Digital Data

Objectives. Learn how computers are connected. Become familiar with different types of transmission media

Part A: Multiple Choice Choose the option with the best fit. [20 Marks]

1. Which of the following Boolean operations produces the output 1 for the fewest number of input patterns?

"Digital Media Primer" Yue- Ling Wong, Copyright (c)2011 by Pearson EducaDon, Inc. All rights reserved.

a- As a special case, if there is only one symbol, no bits are required to specify it.

Chapter 3: Arithmetic for Computers

Chapter 2 Bits, Data Types, and Operations

Standard File Formats

COMP2611: Computer Organization. Data Representation

Chapter 6 Addressing the Network- IPv4

SE311: Design of Digital Systems

Digital Fundamentals

CS101 Lecture 12: Image Compression. What You ll Learn Today

CMSC 1513 Lecture 1.2

Chapter 03: Computer Arithmetic. Lesson 09: Arithmetic using floating point numbers

The type of all data used in a C (or C++) program must be specified

2nd Paragraph should make a point (could be an advantage or disadvantage) and explain the point fully giving an example where necessary.

Source coding and compression

BROADBAND AND HIGH SPEED NETWORKS

World Inside a Computer is Binary

CMPSCI 145 MIDTERM #2 SOLUTION KEY SPRING 2016 March 30, 2016 Professor William T. Verts

Chapter 2 Lecture 5 Computer Systems Organization

TYPES OF COMPUTER NETWORKS

Course Schedule. CS 221 Computer Architecture. Week 3: Plan. I. Hexadecimals and Character Representations. Hexadecimal Representation

Multimedia applications

ELECT 4240 Communication Networks Summer Semester 1435/ /2015 CHAPTER 1

Floating Point. The World is Not Just Integers. Programming languages support numbers with fraction

2012 Fall CS HW#7 True/False Multiple Choices

Binary representation and data

Chapter 3. Underlying Technology. TCP/IP Protocol Suite 1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Lecture Information Multimedia Video Coding & Architectures

The Basics of Computer Networking. David Phenix Computing in the Modern World 1 st Period

Floating-point Arithmetic. where you sum up the integer to the left of the decimal point and the fraction to the right.

ECE 333: Introduction to Communication Networks Fall Lecture 1: Introduction

Switching to AQA from Edexcel

MULTIMEDIA AND CODING

TOPIC 5: COMMUNICATION AND INTERNET

Chapter 2 Bits, Data Types, and Operations

Digital Logic. The Binary System is a way of writing numbers using only the digits 0 and 1. This is the method used by the (digital) computer.

Wireless Communication

INTRODUCTION TO ICT.

Numbers and Computers. Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras

What is multimedia? Multimedia. Continuous media. Most common media types. Continuous media processing. Interactivity. What is multimedia?

Compression; Error detection & correction

Networks University of Stirling CSCU9B1 Essential Skills for the Information Age. Content

Announcement. (CSC-3501) Lecture 3 (22 Jan 2008) Today, 1 st homework will be uploaded at our class website. Seung-Jong Park (Jay)

CS 335 Graphics and Multimedia. Image Compression

Unicode. Standard Alphanumeric Formats. Unicode Version 2.1 BCD ASCII EBCDIC

CSC 170 Fall 2017 Dr. R. M. Siegfried. Study Guide for Final Exam

Introduction to Networks

Data Communication. Chapter # 1: Introduction. By: William Stalling

Lecture Information. Mod 01 Part 1: The Need for Compression. Why Digital Signal Coding? (1)

Experimental Methods I

Internet Architecture

Digital Image Representation Image Compression

Session 3 Networks I

Multimedia. What is multimedia? Media types. Interchange formats. + Text +Graphics +Audio +Image +Video. Petri Vuorimaa 1

Introduction to Network Technologies & Layered Architecture BUPT/QMUL

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

Introduction to Computer Networks INTRODUCTION TO COMPUTER NETWORKS

Data Communications. Course Design Data Communications. Pre/Post Test (80 Questions/80 Points) Upon Request None No No No

Numerical Representations On The Computer: Negative And Rational Numbers

Lecture Outline. Lecture 2. OSI model and networking. The OSI model and networking. The OSI model and networking. The OSI model and networking

Transcription:

Data Representation and Networking Instructor: Dmitri A. Gusev Spring 2007 CSC 120.02: Introduction to Computer Science Lecture 3, January 30, 2007

Data Representation Topics Covered in Lecture 2 (recap+) Bits, Bytes, Words Analog (continuous) vs. Digital (discrete); extra term: Pulse-code modulation (PCM) Representing Images (pixels, RGB, indexed color / palette); Color depth, HiColor (16-bit), TrueColor (24-bit) Representing Sound (digitizing, sampling, quantization, CD) We will discuss image and sound representation some more, after we consider

Data Compression Save storage space; speed up transmission. Bandwidth: Bits (bytes) per second Compression ratio: Lossless vs. lossy compression Keyword encoding: Replace a popular word with a shorter code ( with w/, without w/o ) Run-length encoding: AAAAAA A6 Can combine the two. size _ of _ the _ compressed _ data size _ of _ the _ uncompressed _ data

Huffman Encoding 0 1 00 - A 01 - E 10 11 100 - L 110 - O 101 - R 111 1110 - B 1111 - D

Why would anyone accept lossy compression? Audio formats: WAV, MP3 Video codecs (compressors / decompressors): MPEG-2, MPEG-4, DiVX Temporal compression and spatial compression Raster image formats: JPEG, JPEG2000, GIF, PCX, BMP, RAW Vector graphics: Images are described in terms of lines and geometric shapes

Signed-Magnitude Representation of Negative Numbers Add an extra bit on the left to represent the sign. Use 0 for the + sign, 1 for the - sign. Example (3 bits allocated for the magnitude, 1 bit for the sign): 0101=5 10, 1101=-5 10. Problems with the signed-magnitude representation: Two representations of 0: 0000 and 1000; Special logic is required to perform addition, subtraction, multiplication and division.

Ten s Complement Representation of Negative Numbers Limit the maximum number of decimal digits by k. Interpret the first half of numbers (0,1,,(10 k /2)-1) as natural numbers. Interpret the other numbers as Negative( m) 10 k m Example, k=3: 123+(-455)=123+(1000-455)=668 10c =-332 10

Two s Complement Representation Representing of Negative Numbers Negative ( m) 2 k m, where k is the number of bits used. Example: k=8, -125 10000011 (256-125=131=1+2+128) + + 3 00000011-122 10000110 134 =Negative(122)) Overflow will occur if the result of addition exceeds 127: 128 (10000000) now serves as (-128)!

Representing Real Numbers Scientific notation:.00508259 = 5.08259*10-3 5.08259E-3 The decimal point is kept to the right of the most significant (non-zero) digit. Floating point: A real value in Base 10 r = sign*mantissa*10 exponent The # of digits is fixed, but the point floats. In other bases, the analog of the decimal point is called a radix point.

Representing Real Numbers in Binary r = sign*mantissa*2 exponent How to convert the fractional part from decimal to binary? Keep multiplying by the base and reading off the digits. Example: 17.875 10 = 10001.111 2 17/2=8.5, 0.5*2=1; 8/2=4; 4/2=2;2/2=1;.875*2=1.75; 0.75*2=1.5; 0.5*2=1.

Representing Text Encoding characters vs. formatting (fonts, margins, tables, color, etc.) A character set is a list of characters and the codes used to represent them. How many characters do we need?.. ASCII (American Standard Code for Information Interchange): Originally allowed 128 unique characters. The eighth bit was a check bit. Latin-1 Extended ASCII character set: 256 characters.

The Unicode Character Set 16 bits per character. 2 16 =65536 unique characters can be represented. The first 256 characters in the Unicode set correspond to those of the extended ASCII character set. ( Backward compatibility.)

Networking Connections: cable / wireless A node, or host is any device on the network Data transfer rate / bandwidth A protocol is a set of rules that defines how data is formatted and processed on a network The client/server model File servers and web servers

Types of Networks Local-area network (LAN) Ring topology (a LAN configuration) Star topology (another LAN configuration) Bus topology (yet another LAN configuration): Ethernet (the industry standard) A special node on a LAN may serve as a gateway Wide-area network (WAN) Metropolitan-area network (MAN) The Internet

Internet Connections The Internet backbone An Internet service provider (ISP) Connection via a cable modem A digital subscriber line (DSL) A dial-up connection via a phone modem The word modem stands for modulator/demodulator. Download / upload Broadband

Packet Switching Divide a message into packets, send them separately, have them collected and reassembled at their destination. Routers direct packets between networks. Repeaters strengthen and propagate signals along communication lines.