Information in Computers. Remember Computers Execute algorithms Need to be told what to do And to whom to do it.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

The Binary Numbering Systems
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
Representing Concepts Part 2--
Bits are Not just for Numbers or Characters Computers store characters as bits or binary digits. Characters from the English-language keyboard can be represented.
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
Connecting with Computer Science, 2e
1 February How Computers Work. Buying Bugs A 21st Century Entrepreneurship How do you find bugs in your software? Offer a bounty! How do malicious hackers.
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Management Information Systems Lection 06 Archiving information CLARK UNIVERSITY College of Professional and Continuing Education (COPACE)
CS110: Computers and the Internet Color and Image Representation.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Digital Information Technology
Primaries: magenta, yellow, and cyan This color system is called subtractive because: each primary color absorbs (subtracts) a certain part of the color.
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,
Chapter 1 Data Storage(2) Yonsei University 1 st Semester, 2014 Sanghyun Park.
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Adding some light to computing ….
Too much information running through my brain.. We live in the information age. Knowledge comes from careful investigation of information. Information.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Chapter 2 Computer Hardware
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
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.
3-1 Data and Computers Computers are multimedia devices, dealing with a vast array of information categories. Computers store, present, and help us modify.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
25.2 The human eye The eye is the sensory organ used for vision.
 Komodo Edit Project › Helping you find your folder  Laptop › Delete what you don’t need › Keep class “doodles” in a single “sandbox” folder  Isis.
UNIT EIGHT: Waves Chapter 24 Waves and Sound Chapter 25 Light and Optics.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
CSC Computing with Images
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Chapter 16 Light and Color  16.1 Properties and Sources of Light  16.2 Color and Vision  16.3 Photons and Atoms.
1 COMS 161 Introduction to Computing Title: The Digital Domain Date: September 6, 2004 Lecture Number: 6.
Data Representation Robin Burke IT 130. Outline Data Representation Binary Numbers Image types.
Data Representation The storage of Text Numbers Graphics.
CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Colors of Pigment The primary colors of pigment are magenta, cyan, and yellow. [
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.
Computer Science I Storing data. Binary numbers. Classwork/homework: Catch up. Do analysis of image types.
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,
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Chapter 3: Data Representation Chapter 3 Data Representation Page 17 Computers use bits to represent all types of data, including text, numerical values,
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Videos and resources Double Rainbow Guy: Phet color addition:
Data Representation.
Lec 3: Data Representation
Binary Representation in Audio and Images
Introduction to Computers
Data Formats.
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
Colors.
Information in Computers
Ch2: Data Representation
Colour Theories.
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 2 Data Representation.
Binary CSCE 101.
Presentation transcript:

Information in Computers

Remember Computers Execute algorithms Need to be told what to do And to whom to do it

Question How does the computer know what to act on?

Answer We tell it WHERE NOT WHAT

Implications Doesn’t know what it is acting on So, it doesn’t care if it is adding 3 to 5 or 7 million to 10 billion: Just an add! [That’s how a calculator works!]

Computer trusts you! Told it that there was a number there And you put a string there: It will treat it as a NUMBER You may not like the result [one of the ways that people hack computers!]

What can be stored in a computer? Instructions Numbers Text Pictures Audio Video

How is it stored? 1s and 0s “bits is bits” The same series of 0s and 1s can mean different things! Question of interpretation!

Numbers

Storing an integer Computer only has 2 values it can use: 0, 1 How many do we have? 0-9 So how do we represent the tenth value? Place-value system

Binary Numbers With one “bit”, I can represent just two values With two bits: 0 or 1 “twos” 0 or 1 “ones” Total of four values

Binary Numbers for People All those 0s and 1s are hard to read Group them in 4s (like credit card numbers) Then write them in decimal But WAIT! Goes to 15 Use letters A-F

Storing numbers should be easy, right? How big is a number? How do you indicate a negative number? How do you represent a fraction? Remember scientific notation? Id there an equivalence for computers? Does any of this matter to you?

How to represent fractions How to represent 1/3? Representation can change the result! What is easy in decimal, may not be easy in binary! [embezzlers can take advantage of rounding issues!]

Text

Storing Characters Also need to be converted to 0s and 1s Numerous encodings ASCII, ANSI, ISO support a single language UTF-8 (Unicode) supports all languages Examples: A B a b [Can you guess why some alphabetizing puts ALL capitals before lowercase?]

Storing Strings When do they end? Known length Give length Signal end Signaling the end is the most common way

Images

Black and White Pictures

Pictures are stored as pixels Monochrome: BLACK or WHITE

What is needed? Different levels of black and white Shades of gray Percentage of black

ASCII Images (picascii.com)picascii.com Instead of pixels, use characters

Color PicturesColor Pictures

Color????? But all I can store is 1s and 0s! Let’s see how we can represent colors!

Colors

Colors – Paint (Subtractive Color Model) Primaries: magenta, yellow, and cyan This color system is called subtractive because: each primary color absorbs (subtracts) a certain part of the color spectrum. every time a color is added, less light is reflected. When you mix all three primaries together, the entire spectrum of color is absorbed, and we’re left with black.

Colors - Lights (Additive Color System) Primaries: Red, Blue, Green Additive color systems start without light (black). Light sources combine to make a color. As colors are added, the resulting color is brighter.

Colors (colorpicker.com)colorpicker.com We’ll be working with the additive color system Mix various amounts of red, green, and blue to create a color. Colors can be represented by rgb (red#, green#, blue#) Each color is indicated by a number from (0,0,0) = black (255,255,255) = white

Color Pictures

What is a Color Pixel? Red Green and Blue Each has a value from 0 to 255

Formats

Many Formats jpeg or jpg, png, tif, gif, … Different encodings, different sizes Actually different ways to COMPRESS them Why compression? 1000 red pixels in a row… That’s why they are different sizes

Video

The picture part What is film? Series of pictures taken (and shown) close enough together to fool the eye Known as the frame rate Sampling the reality

Audio

Sampling Like video, sample it fast enough and we can fool the ear But what is that is sampled?

Digital Sound (with apologies to physics majors) Sound waves cause the air to vibrate Vibrations have frequencies (how fast they move) A specific sound can be represented by how much of each frequency it has (just like a pixel is how much of each color it has)

Homework

Filezilla We will be using these tools on Tuesday 130 people can NOT download Just download Filezilla DO NOT TRY TO SET IT UP Will discuss on Tuesday

AnyConnect If you live off campus or will be traveling, you will need AnyConnect You can only download it on campus Can NOT use it on campus We will provide instructions

Chrome Everything we do should work on all browsers BUT it works differently We therefore REQUIRE that you use Chrome

AFS access AFS is the system that the university uses to manage files You don’t need to know anything about it You DO need to have it enabled for your onyen Enabling is not instantaneous