CS100: Introduction to Computer Science



Similar documents
CS100: Introduction to Computer Science

Static revisited. Odds and ends. Static methods. Static methods 5/2/16. Some features of Java we haven t discussed

Multiplexers and Demultiplexers

Chapter 10 Computer Design Basics

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

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

Overview on S-Box Design Principles

(VCP-310)

Analyzing Longitudinal Data from Complex Surveys Using SUDAAN

Confidence Intervals for One Mean

Modified Line Search Method for Global Optimization

CHAPTER 3 DIGITAL CODING OF SIGNALS

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

Domain 1: Configuring Domain Name System (DNS) for Active Directory

ODBC. Getting Started With Sage Timberline Office ODBC

CS100: Introduction to Computer Science

5 Boolean Decision Trees (February 11)

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

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

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

Evaluating Model for B2C E- commerce Enterprise Development Based on DEA

Department of Computer Science, University of Otago

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

Desktop Management. Desktop Management Tools

How To Solve The Homewor Problem Beautifully

CCH Accountants Starter Pack

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

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

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

Now here is the important step

1 Computing the Standard Deviation of Sample Means

Lecture 16: Address decoding

A Combined Continuous/Binary Genetic Algorithm for Microstrip Antenna Design

Non-life insurance mathematics. Nils F. Haavardsson, University of Oslo and DNB Skadeforsikring

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

INVESTMENT PERFORMANCE COUNCIL (IPC) Guidance Statement on Calculation Methodology

Baan Service Master Data Management

Project Deliverables. CS 361, Lecture 28. Outline. Project Deliverables. Administrative. Project Comments

iprox sensors iprox inductive sensors iprox programming tools ProxView programming software iprox the world s most versatile proximity sensor

Vladimir N. Burkov, Dmitri A. Novikov MODELS AND METHODS OF MULTIPROJECTS MANAGEMENT

Soving Recurrence Relations

PUBLIC RELATIONS PROJECT 2016

How to read A Mutual Fund shareholder report

5: Introduction to Estimation

Exam 3. Instructor: Cynthia Rudin TA: Dimitrios Bisias. November 22, 2011

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

Floating Codes for Joint Information Storage in Write Asymmetric Memories

Measures of Spread and Boxplots Discrete Math, Section 9.4

Lesson 17 Pearson s Correlation Coefficient

Flood Emergency Response Plan

Lecture 2: Karger s Min Cut Algorithm

Concept: Types of algorithms

Math C067 Sampling Distributions

Domain 1 - Describe Cisco VoIP Implementations

BaanERP. BaanERP Windows Client Installation Guide

Making training work for your business

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

CS103X: Discrete Structures Homework 4 Solutions

HCL Dynamic Spiking Protocol

1. Introduction. Scheduling Theory

CHAPTER 3 THE TIME VALUE OF MONEY

I. Why is there a time value to money (TVM)?

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

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

hp calculators HP 12C Statistics - average and standard deviation Average and standard deviation concepts HP12C average and standard deviation

QUADRO tech. FSA Migrator 2.6. File Server Migrations - Made Easy

Effective Data Deduplication Implementation

The Big Picture: An Introduction to Data Warehousing

One Goal. 18-Months. Unlimited Opportunities.

BaanERP 5.0c. EDI User Guide

Output Analysis (2, Chapters 10 &11 Law)

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

Chapter 5 Unit 1. IET 350 Engineering Economics. Learning Objectives Chapter 5. Learning Objectives Unit 1. Annual Amount and Gradient Functions

Solving equations. Pre-test. Warm-up

Chair for Network Architectures and Services Institute of Informatics TU München Prof. Carle. Network Security. Chapter 2 Basics

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

INDEPENDENT BUSINESS PLAN EVENT 2016

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

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

Domain 1 Components of the Cisco Unified Communications Architecture

Page 1. Real Options for Engineering Systems. What are we up to? Today s agenda. J1: Real Options for Engineering Systems. Richard de Neufville

Universal coding for classes of sources

Review: Classification Outline

Conversion Instructions:

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

Incremental calculation of weighted mean and variance

Solving Logarithms and Exponential Equations

INVESTMENT PERFORMANCE COUNCIL (IPC)

6.0 LEVEL 3 BINNED PRODUCT

A Guide to the Pricing Conventions of SFE Interest Rate Products

Laws of Exponents Learning Strategies

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).

Home Shield. Summary IN IRELAND

Neolane Reporting. Neolane v6.1

Properties of MLE: consistency, asymptotic normality. Fisher information.

GCSE STATISTICS. 4) How to calculate the range: The difference between the biggest number and the smallest number.

PUBLIC RELATIONS PROJECT 2015

Transcription:

Review: History of Computers CS100: Itroductio to Computer Sciece Maiframes Miicomputers Lecture 2: Data Storage -- Bits, their storage ad mai memory Persoal Computers & Workstatios Review: The Role of Algorithms How are data stored iside computers? Algorithm: Program: Programmig: 1.1 Bits ad Their Storage 1.2 Mai Memory Software: Hardware: Bits ad Bit Patters Bit: Biary Digit (0 or 1) Bit Patters (strigs of 0 ad 1s) are used to represet iformatio. Numbers Text characters Images Soud Ad others Bits ad Boolea Operatios Boolea Operatio: A operatio that maipulates oe or more true/false values Specific operatios AND OR XOR (exclusive or) NOT 1

Bits ad Boolea Operatios Boolea operatios AND Based o compoud statemet of the form P AND Q 1 AND 1 =1, 1 represets the value true, 0 represets false OR P OR Q, The output is true whe at lease oe of them is true XOR (exclusive or) The output is true whe its iputs are differet NOT: the output is the opposite of the iput Figure 1.1 The Boolea operatios AND, OR, ad XOR (exclusive or) Gates Gate: A device that computes a Boolea operatio implemeted as (small) electroic circuits iside today s computes Other techologies to implemet gates Gears, relays, optic devices. Provide the buildig blocks from which computers are costructed Figure 1.2 A pictorial represetatio of AND, OR, XOR, ad NOT gates as well as their iput ad output values Flip-flops Figure 1.3 A simple flip-flop circuit Flip-flop: A circuit built from gates that ca store oe bit. Has a iput lie which sets its stored value to 1 Has a iput lie which sets its stored value to 0 While both iput lies are 0, the most recetly stored value is preserved 2

Figure 1.4 Settig the output of a flip-flop to 1 Figure 1.4 Settig the output of a flip-flop to 1 (cotiued) Figure 1.4 Settig the output of a flip-flop to 1 (cotiued) Figure 1.5 Aother way of costructig a flip-flop What happes if 1 is placed o the lower iput? How does this flip-flop work? Flip-flops The flip-flop is oe meas of storig a bit withi a computer. Ca have the output value of either 1 or 0 Other circuit ca adjust the output value (write) Other circuit ca respod to the stored value (read) Flip-flops show how devices ca be costructed from gates. Exercise: What iput bit patters will cause the followig circuit to produce a output of 1? Iputs Output 3

Mai Memory Mai Memory Cells A collectio of itegrated circuits to store data (such as flip-flops) Needs to have electrical power i order to maitai its iformatio Computer ca maipulate oly data that i mai memory Copy programs ito mai memory from a storage device to execute Copy files ito mai memory to access The amout of mai memory is crucial How may programs ca be executed How much data ca be readily available to a program? Cell: A uit of mai memory (typically 8 bits which is oe byte) Most sigificat bit: the bit at the left (high-order) ed of the coceptual row of bits i a memory cell Least sigificat bit: the bit at the right (loworder) ed of the coceptual row of bits i a memory cell Figure 1.7 The orgaizatio of a byte-size memory cell Mai Memory Addresses Address: A ame that uiuely idetifies oe cell i the computer s mai memory The ames are actually umbers. These umbers are assiged cosecutively startig at zero. Numberig the cells i this maer associates a order with the memory cells. Figure 1.8 Memory cells arraged by address Measurig Memory Capacity Kilobyte: 2 10 bytes = 1024 bytes Example: 3 KB = 3 1024 bytes Sometimes kibi rather tha kilo Megabyte: 2 20 bytes = 1,048,576 bytes Example: 3 MB = 3 1,048,576 bytes Sometimes megi rather tha mega Gigabyte: 2 30 bytes = 1,073,741,824 bytes Example: 3 GB = 3 1,073,741,824 bytes Sometimes gigi rather tha giga 4

Questios: Questios: If the memory cell whose address is 5 cotais the value 8, what is the differece betwee writig the value 5 ito cell umber 6 ad movig the cotets of cell umber 5 ito cell umber 6? Suppose we wat to iterchage the values stored i memory cells 2 ad 3. Does the followig algorithm perform the task correctly? Step1: Move the cotets of cell umber 2 to cell umber 3. Step 2: Move the cotets of cell umber 3 to cell umber 2. Questios: Mai Memory Techologies How may bits would be i the memory of a computer with 4KB memory What is the amout of mai memory iside your computer? RAM (Radom Access Memory) Allow the stored data to be accessed i ay order No physical movemet of the storage medium or a physical readig head Ay piece of data ca be retured uickly ad i a costat time Moder computers use other techologies to improve the performace of mai memory (size, respod time) DRAM (Dyamic RAM) SDRAM (Sychroous DRAM) DDR-SDRAM (Double Data Rate-SDRAM ) (doubled stadard SDRAM efficiecy) Summarizatio Next Lecture: Boolea operatios Gates Flip-flops (store a sigle bit) Mai memory (RAM) Cell, Byte, Address Mass (or secodary) storage & represetig iformatio Readig assigmets: Chapter 1.3, 1.4 5