1 The Information School of the University of Washington Nov 8fit100-19-review © 2006 University of Washington Midterm 2 Review INFO/CSE 100, Fall 2006.

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

1 The Information School of the University of Washington Nov 1fit dom © 2006 University of Washington Document Object Model (DOM) INFO/CSE 100, Fall.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
1  1998 Morgan Kaufmann Publishers Lectures for 2nd Edition Note: these lectures are often supplemented with other materials and also problems from the.
1 The Information School of the University of Washington Nov 6fit more-digital © 2006 University of Washington Digital Information INFO/CSE 100,
1. By the end of this lecture you should be able … To describe in general terms how computers function To describe the fetch-execute cycle To explain.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Introduction to JavaScript Programming With XML and PHP Creating Interactive Web Pages Elizabeth Drake.
Unit 3: Hardware Components & Software Concepts
Computer Architecture and Organization
Chapter 1 CSF 2009 Computer Abstractions and Technology.
Fluency with Information Technology Katherine Deibel, Fluency in Information Technology 1 INFO100 and CSE100 Katherine Deibel.
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
© 2011 University of StirlingLecture Review/Slide 1CSC931 Computing Science I CSC931 Review.
Lesson 1b: Computer Systems and Program Development CPS118.
Introduction CSE 410, Spring 2008 Computer Systems
2.0 Computer System.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Computing and the Web Computer Hardware Components.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
1 Computer Basics How exactly does a computer work? © Lawrence Snyder, 2004.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Remember Back To The Lightbot.
Computer Organization and Design Computer Abstractions and Technology
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Computer Architecture
Computer Basic Vocabulary
COMPUTER ORGANISATION I HIGHER STILL Computing Computer Systems Higher Marr College Computing Department 2002.
Chapter 4 MARIE: An Introduction to a Simple Computer.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
CO1552 – Web Application Development Further JavaScript: Part 1: The Document Object Model Part 2: Functions and Events.
Lecture on Central Process Unit (CPU)
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
Chapter 1 An Overview of Computers and Programming Languages.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
SEPTEMBER 8, 2015 Computer Hardware 1-1. HARDWARE TERMS CPU — Central Processing Unit RAM — Random-Access Memory  “random-access” means the CPU can read.
Introduction CSE 410, Spring 2005 Computer Systems
Computer Architecture and Number Systems
Basic Computer Organization and Design
Document Object Model (DOM)
What Computers Can and Cannot Do
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
CSE 410, Spring 2006 Computer Systems
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
The Central Processing Unit
Introduction of microprocessor
Document Object Model (DOM)
Chapter 1: An Overview of Computers and Programming Languages
Document Object Model (DOM)
C++ Programming: From Problem Analysis to Program Design
Review As binary, what is /20/2018
Announcement Tomorrow’s office hr: CANCELLED! Show work!!
Computer Basics/Algorithms
Chapter 1: Introduction to Computers and Programming
Document Object Model (DOM)
Document Object Model (DOM)
Computer Basics/Algorithms
INFO/CSE 100, Spring 2005 Fluency in Information Technology
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Chapter 5: Computer Systems Organization
Announcement Function ppt: download again
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Chapter 4 The Von Neumann Model
Presentation transcript:

1 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Midterm 2 Review INFO/CSE 100, Fall 2006 Fluency in Information Technology

2 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Readings and References Reading »Fluency with Information Technology Chapters

3 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Overview During this quarter, we're looking at the actual workings of computer systems Organized as “layers of abstraction” »application programs »higher level languages: Javascript, SQL, … »operating system concepts »bits, bytes, assembly language »transistors, electrons, photons

4 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Layers of Abstraction At any level of abstraction, there are »elements at that level »the building blocks for those elements Abstraction »isolates a layer from changes in the layer below »improves developer productivity by reducing detail needed to accomplish a task »helps define a single architecture that can be implemented with more than one organization

5 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Architecture & Organization Architecture (the logical definition) »defines elements and interfaces between layers »Instruction Set Architecture instructions, registers, addressing Organization (the physical implementation) »components and connections »how instructions are implemented in hardware »many different organizations can implement a single architecture

6 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Computer Architecture Specification of how to program a specific computer family »what instructions are available? »how are the instructions formatted into bits? »how many registers and what is their function? »how is memory addressed? Some examples architectures »IBM 360, 370, … »PowerPC 601, 603, G5, … »Intel x86 286, 386, 486, Pentium, … »MIPS R2000, R3000, R4000, R5000,...

7 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Computer Organization Processor »Data path (ALU) manipulate the bits »The control controls the manipulation Memory »cache memory - smaller, higher speed »main memory - larger, slower speed Input / Output »interface to the rest of the world

8 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington MemoryOutput ALUControlInput Mouse Keyboard Scanner Hard Disk Floppy Disk Monitor Printer Speakers Anatomy of a Computer Processor

9 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Fetch/Execute Cycle Instruction Fetch (IF) Instruction Decode (ID) Data Fetch (DF) Instruction Execution (EX) Result Return (RR) Computer = instruction execution engine »The fetch/execute cycle is the process that executes instructions

10 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington 0 G 1 o 2 D 3 a 4 w 5 g 6 s 7 ! 8 ! byte=8 bits memory addresses Memory locations memory contents Memory... Programs and the data they operate on must be in the memory while they are running

11 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Input/Output Input units bring data to memory from outside world; output units send data to outside world from memory »Most peripheral devices are “dumb”, meaning that the processor assists in their operation

12 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Clock rate is not a good indicator of speed anymore, because several things are happening every clock cycle Clocks Run The Engine The rate that a computer “spins around” the Fetch/Execute cycle is controlled by its clock »Current clocks run 2-3 GHz »The computer tries do at least one instruction per cycle, depending on the instruction and the availability of memory contents »Modern processors often try to do more than one instruction per cycle

13 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Algorithm »a precise, systematic method to produce a desired result How to make a PB&J sandwich »Get out Peanut Butter If PB has screw on cap Twist counter clockwise until cap comes off If there is paper covering PB Remove paper Open drawers search for knife Until knife found ……

14 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Properties of an Algorithm For an algorithm to be well specified it must have … »Inputs specified The range of possible inputs is well defined »Outputs specified The desired output is well defined »Definiteness The steps to take are definite and understandable »Effectiveness The steps must be possible to accomplish »Finiteness A processor that follows the algorithm will eventually finish

15 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington What the heck is the DOM? Document Object Model »Your web browser builds a model of the web page (the document) that includes all the objects in the page (tags, text, etc) »All of the properties, methods, and events available to the web developer for manipulating and creating web pages are organized into objects »Those objects are accessible via scripting languages in modern web browsers

Sample DOM Document An HTML Document This is a simple document. This is what the browser reads (sampleDOM.html). This is what the browser displays on screen.

Document "Sample DOM Document" "An HTML Document" "This is a" "simple" "document" This is a drawing of the model that the browser is working with for the page.

18 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington document.getElementById("radioLC").checked Reference to several nodes in the model of the page that the browser constructed document »The root of the tree is an object of type HTMLDocument »Using the global variable document, we can access all the nodes in the tree, as well as useful functions and other global information title, referrer, domain, URL, body, images, links, forms,... open, write, close, getElementById,...

19 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington document.getElementById("radioLC").checked getElementById("radioLC") »This is a predefined function that makes use of the id that can be defined for any element in the page »An id must be unique in the page, so only one element is ever returned by this function »The argument to getElementById specifies which element is being requested

20 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington document.getElementById("radioLC").checked checked »This is a particular property of the node we are looking at, in this case, a radio button »Each type of node has its own set of properties for radio button: checked, name,... refer to the HTML DOM for specifics for each element type »Some properties can be both read and set

21 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Representing Data as Symbols 24 Greek Letters And we decide to use 2 symbols, binary, to represent the data. How many bits do we need?!? »24 total possibilities »2x2x2x2x2 = 2 5 = 32 We get 6 extra!

22 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington Info Representation Adult humans have 32 teeth »sometimes a tooth or two is missing! How can we represent a set of teeth? »How many different items of information? 2 items - tooth or no tooth »How many "digits" or positions to use? 32 positions - one per tooth socket »Choose a set of symbols no tooth: 0tooth: 1

23 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington What's your tooth number? incisors canines pre-molarsmolars no teeth  no molars  How many possible combinations? 2×2×2×2×...×2 = 2 32  4 Billion

24 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington How many positions should we use? 0 1 one position It depends: how many numbers do we need? two numbers 0 1 two positions four numbers three positions eight numbers

25 The Information School of the University of Washington Nov 8fit review © 2006 University of Washington How to do well on Midterm2 Do your reading Know the material on the review sheet: rces/Midterm2/ rces/Midterm2/ Be able to walk through the inclass handout: work/assets/handout1.html work/assets/handout1.html