CS100: Introduction to Computer Science



Similar documents
CS100: Introduction to Computer Science

Domain 1 - Describe Cisco VoIP Implementations

CHAPTER 3 DIGITAL CODING OF SIGNALS

Department of Computer Science, University of Otago

Domain 1: Designing a SQL Server Instance and a Database Solution

Modified Line Search Method for Global Optimization

How To Solve The Homewor Problem Beautifully

Measures of Spread and Boxplots Discrete Math, Section 9.4

The following example will help us understand The Sampling Distribution of the Mean. C1 C2 C3 C4 C5 50 miles 84 miles 38 miles 120 miles 48 miles

Chapter 8 Memory Units

Center, Spread, and Shape in Inference: Claims, Caveats, and Insights

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

G r a d e. 2 M a t h e M a t i c s. statistics and Probability

Your organization has a Class B IP address of Before you implement subnetting, the Network ID and Host ID are divided as follows:

CS100: Introduction to Computer Science

Chapter 10 Computer Design Basics

Listing terms of a finite sequence List all of the terms of each finite sequence. a) a n n 2 for 1 n 5 1 b) a n for 1 n 4 n 2

Basic Measurement Issues. Sampling Theory and Analog-to-Digital Conversion

Types Of Storage Device

Repeating Decimals are decimal numbers that have number(s) after the decimal point that repeat in a pattern.

Example 2 Find the square root of 0. The only square root of 0 is 0 (since 0 is not positive or negative, so those choices don t exist here).

Analyzing Longitudinal Data from Complex Surveys Using SUDAAN

Soving Recurrence Relations

WindWise Education. 2 nd. T ransforming the Energy of Wind into Powerful Minds. editi. A Curriculum for Grades 6 12

.04. This means $1000 is multiplied by 1.02 five times, once for each of the remaining sixmonth

THE ARITHMETIC OF INTEGERS. - multiplication, exponentiation, division, addition, and subtraction

I. Chi-squared Distributions

THE REGRESSION MODEL IN MATRIX FORM. For simple linear regression, meaning one predictor, the model is. for i = 1, 2, 3,, n

(VCP-310)

FOUNDATIONS OF MATHEMATICS AND PRE-CALCULUS GRADE 10

Quadrat Sampling in Population Ecology

In nite Sequences. Dr. Philippe B. Laval Kennesaw State University. October 9, 2008

5: Introduction to Estimation

Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

ODBC. Getting Started With Sage Timberline Office ODBC

Math C067 Sampling Distributions

How To Store Data On A Computer (For A Computer)

Floating Codes for Joint Information Storage in Write Asymmetric Memories

A Combined Continuous/Binary Genetic Algorithm for Microstrip Antenna Design

Basic Elements of Arithmetic Sequences and Series

Z-TEST / Z-STATISTIC: used to test hypotheses about. µ when the population standard deviation is unknown

Chapter 7 Types of Storage. Discovering Computers Your Interactive Guide to the Digital World

*The most important feature of MRP as compared with ordinary inventory control analysis is its time phasing feature.

Measuring Magneto Energy Output and Inductance Revision 1

Confidence Intervals. CI for a population mean (σ is known and n > 30 or the variable is normally distributed in the.

Chapter 8. Secondary Storage. McGraw-Hill/Irwin. Copyright 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

Chapter 7: Confidence Interval and Sample Size

Convention Paper 6764

5 Boolean Decision Trees (February 11)

BaanERP 5.0c. EDI User Guide

Elementary Theory of Russian Roulette

Definition. A variable X that takes on values X 1, X 2, X 3,...X k with respective frequencies f 1, f 2, f 3,...f k has mean

Confidence Intervals for One Mean

Professional Networking

Research Method (I) --Knowledge on Sampling (Simple Random Sampling)

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 13

Overview on S-Box Design Principles

1 The Gaussian channel

McGraw-Hill Technology Education McGraw-Hill Technology Education

Bio-Plex Manager Software

Hypergeometric Distributions

Chapter 6: Variance, the law of large numbers and the Monte-Carlo method

This document contains a collection of formulas and constants useful for SPC chart construction. It assumes you are already familiar with SPC.

Multiple Representations for Pattern Exploration with the Graphing Calculator and Manipulatives

Week 3 Conditional probabilities, Bayes formula, WEEK 3 page 1 Expected value of a random variable

Multiplexers and Demultiplexers

5.4 Amortization. Question 1: How do you find the present value of an annuity? Question 2: How is a loan amortized?

Discovering Computers Chapter 7 Storage

Primary Memory. Input Units CPU (Central Processing Unit)

Desktop Management. Desktop Management Tools

Escola Federal de Engenharia de Itajubá

Asymptotic Growth of Functions

CCH Accountants Starter Pack

Overview. Learning Objectives. Point Estimate. Estimation. Estimating the Value of a Parameter Using Confidence Intervals

CS103X: Discrete Structures Homework 4 Solutions

Taking DCOP to the Real World: Efficient Complete Solutions for Distributed Multi-Event Scheduling

Part - I. Mathematics

Lesson 17 Pearson s Correlation Coefficient

INVESTMENT PERFORMANCE COUNCIL (IPC)

CHAPTER 3 THE TIME VALUE OF MONEY

Running Time ( 3.1) Analysis of Algorithms. Experimental Studies ( 3.1.1) Limitations of Experiments. Pseudocode ( 3.1.2) Theoretical Analysis

Determining the sample size

HCL Dynamic Spiking Protocol

Conversion Instructions:

Biology 171L Environment and Ecology Lab Lab 2: Descriptive Statistics, Presenting Data and Graphing Relationships

DAME - Microsoft Excel add-in for solving multicriteria decision problems with scenarios Radomir Perzina 1, Jaroslav Ramik 2

7.1 Finding Rational Solutions of Polynomial Equations

Trigonometric Form of a Complex Number. The Complex Plane. axis. ( 2, 1) or 2 i FIGURE The absolute value of the complex number z a bi is

Case Study. Normal and t Distributions. Density Plot. Normal Distributions

Baan Service Master Data Management

How to read A Mutual Fund shareholder report

PUBLIC RELATIONS PROJECT 2016

CHAPTER 7: Central Limit Theorem: CLT for Averages (Means)

Normal Distribution.

STUDENTS PARTICIPATION IN ONLINE LEARNING IN BUSINESS COURSES AT UNIVERSITAS TERBUKA, INDONESIA. Maya Maria, Universitas Terbuka, Indonesia

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 5 Storage Devices

Research Article Sign Data Derivative Recovery

Transcription:

I-class Exercise: CS100: Itroductio to Computer Sciece What is a flip-flop? What are the properties of flip-flops? Draw a simple flip-flop circuit? Lecture 3: Data Storage -- Mass storage & represetig iformatio Review: bits, their storage ad mai memory Mass Storage or Secodary Storage Bits Boolea operatios Gates Flip-flops (store a sigle bit) Mai memory (RAM) Cell, Byte, Address Magetic disks CDs DVDs Magetic tapes Flash drives Mass Storage or Secodary Storage Mass Storage Systems O-lie versus off-lie Olie - coected ad readily available to the machie Offlie - huma itervetio reuired Typically larger tha mai memory Typically less volatile tha mai memory Typically slower tha mai memory Magetic Systems Hard Disk Floppy Disk Tape Optical Systems CD DVD Flash Drives 1

Figure 1.9 A magetic disk storage system Magetic Disks Floppy disk Low capacity 3.5 ich diskettes 1.44MB A sigle plastic disk Hard Disk system High capacity systems Multiple disks mouted o a spidle, multiple read/write heads move i uiso Cylider: a set of tracks Platter : a flat circular disk Heads do ot tough the surface of disks Measurig the Performace of Hard Disk Systems (1) seek time The time to move heads from oe track to aother (2) rotatio delay Half the time reuired for the disk to make a complete rotatio (3) access time Seek time + rotatio delay (4) trasfer rate The rate at which data ca be trasferred to or from the disk Capacity of Hard Disk Systems 5MB (1956 by IBM) 20MB (1980s) 1 GB (1990s) 20 GB 768 GB (3/4) (2006) the lowest-capacity - the highest-capacity desktop O 4 platters 1 TB (2007) 5 platters Figure 1.10 Magetic tape storage Magetic Tapes High capacity May GBs A big disadvatage Very time-cosumig, much loger data access times Good for archival storage High capacity Reliability Cost efficiecy 2

Figure 1.11 CD storage- Optical Systems Compact Disks A spiral approach: oe log track that spirals aroud a CD from iside out. Capacity i the rages of 600-700 MB Good for log cotiuous strigs of data music DVDs (Digital Versatile Disks) or (Digital Video Disks) Same size as CDs (5 iches i diameter) Ecoded i i a differet format at a much higher desity Multiple layers High capacity of several GBs Good for legthy multimedia presetatios, movies with high video ad soud uality Flash Drives Flash memory techology Bits are stored by sedig electroic sigals directly to the storage medium where they cause electros to be trapped i tiy chambers of silico dioxide. Capacity of up to a few GB Portable, small size, easy to coect to a computer Flash Drives Storig ad retrievig data faster tha optical ad magetic systems Digital cameras, cellular telephoes, hadheld PDAs Vulerable, repeated erasig slowly damages the chambers Not suitable for geeral mai memory applicatios Not good for log term applicatios Questios: 1. Whe recordig data o a multiple-disk storage system, should we fill a complete disk surface before startig o aother surface, or should we first fill a etire cylider before startig o aother cylider? Why should the data i a reservatio system that is costatly beig updated be stored o a magetic disk istead of a CD or DVD? What advatage do flash drives have over the other mass storage systems? 3

Files Files File: A uit of data stored i mass storage system A complete text documets A photograph A program A music recordig A collectio of data about the studets i a college Logical records Correspod to atural divisios with data Physical Records Correspod to the size of a sector Buffer: A memory area used for the temporary storage of data (usually as a step i trasferrig the data) Figure 1.12 Logical records versus physical records o a disk Represetig Iformatio as bit Patters Represetig text Represetig umeric values Represetig Images Represetig souds Represetig Text Each character (letter, puctuatio, etc.) is assiged a uiue bit patter. Figure 1.13 The message Hello. i ASCII ASCII: Uses patters of 7-bits to represet most symbols used i writte Eglish text Uicode: Uses patters of 16-bits to represet the major symbols used i laguages world side ISO stadard: Uses patters of 32-bits to represet most symbols used i laguages world wide Fid the meaig of the followig text which is ecoded i ASCII: 01000011 01101111 01101101 01110000 01110101 01110100 01100101 01110010 4

Represetig Numeric Values Biary otatio: Uses bits to represet a umber i base two Hexadecimal otatio: Uses bits to represet a umber i base 16 Hexadecimal Notatio Hexadecimal otatio: A shorthad otatio for log bit patters Divides a patter ito groups of four bits each Represets each group by a sigle symbol Example: 10100011 becomes A3 Figure 1.6 The hexadecimal codig system Represetig Numeric Values Biary otatio: Uses bits to represet a umber i base two Hexadecimal otatio: Uses bits to represet a umber i base 16 Limitatios of computer represetatios of umeric values Overflow happes whe a value is too big to be represeted Trucatio happes whe a value is betwee two represetable values Questio: Represetig Images 1. What is the largest umeric value that could be represeted with three bytes if each digit were ecoded usig oe ASCII patter per byte? What if biary otatio were used? What if hexadecimal otatio were used? Covert biary represetatios to its euivalet base te form 0101 10011 Bit map techiues Pixel: short for picture elemet 1 bit for 1 pixel A black ad white image is ecoded as a log strig of bits represetig rows of pixels i the image. The bit is 1 if the correspodig pixel is black, 0 otherwise. 8 bit for 1 pixel For white ad black photos, allows a variety of shades of grayess to be represeted. 3 bytes for 1 pixel For color images. RGB ecodig, 1 byte for the itesity of each color Other approach: Lumiace ad chromiace 5

Represetig Images Represetig Soud Bit map techiues Vector techiues Scalable Word processig systems use vector techiues to provide flexibility i character size. PostScript Also popular i Computer-aided desig systems Samplig techiues Sample the amplitude of the soud waves at regular itervals ad record the series of values obtais. 8000 samples per secod used i log-distace telephoe commuicatio 44,100 samples per secod for high uality recordigs (each sample represeted i 16 or 32 bits) a millio bits for a secod of music Figure 1.14 The soud wave represeted by the seuece 0, 1.5, 2.0, 1.5, 2.0, 3.0, 4.0, 3.0, 0 Represetig Soud Samplig techiues MIDI Used i music sythesizers i electroic keyboards Cotais idividual istructios for playig each idividual ote of each idividual istrumet. Ecodig directios for producig music o a sythesizer rather tha ecodig the soud itself. Homework Assigmet1: (Due i-class ext Moday) Page 71, 1b, 2b, 3b Page 72, 5, 6, 9,11, 12, 19 Next Lecture: The biary system, storig itegers ad fractios Readig assigmets: Chapter 1.5, 1.6,1.7 6