A little hardware; a little software CS 139 – 08/29/07.

Slides:



Advertisements
Similar presentations
Chapter 5 Computing Components. 2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von Neumann.
Advertisements

Chapter 5 Computing Components.
Chapter 5 Computing Components. 5-2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
Problem Solving and Algorithm Design
Chapter 6 Problem Solving and Algorithm Design. 6-2 Chapter Goals Determine whether a problem is suitable for a computer solution Describe the computer.
Chapter 11 File Systems and Directories Nell Dale John Lewis.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
Chapter 5 Computing Components. The (META) BIG IDEA Cool, idea but maybe too big DATA – Must be stored somewhere in a storage device PROCESSING – Data.
Chapter 5 Computing Components Nell Dale John Lewis.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Chapter 5 Computing Components Nell Dale John Lewis.
Algorithms and Problem Solving
11/7/06 1 Hofstra University - CSC005 Chapter 11 File Systems and Directories.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
6-1 Problem Solving Problem solving is the act of finding a solution to a perplexing, distressing, vexing, or unsettled question.
Chapter 5 Computing Components. 2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von Neumann.
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
Chapter 5 Computing Components. 5-2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von.
® Microsoft Office 2010 Essential Computer Concepts.
Computer System Basics
Chapter 11 File Systems and Directories Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
UNIX Unbounded 5 th Edition Amir Afzal Chapter 1 First Things First.
Topics Introduction Hardware and Software How Computers Store Data
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
Invitation to Computer Science 5th Edition
Lesson 2 — How Does A Computer Process Data?
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
GCSE Information Technology Storing data Data storage devices can be divided into 2 main categories: Backing storage is used to store programs and data.
File Structures Foundations of Computer Science  Cengage Learning.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Chapter 5 Computing Components Nell Dale John Lewis.
5-1 Computer Components Consider the following ad.
Describe the purpose of files, file systems, and directories Distinguish between text and binary files Identify various file types by their extensions.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
IPC144 Introduction to Programming Using C Instructor: Travis Mander 1.
Computer Architecture
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
Computer Basic Vocabulary
CS 1308 Computer Literacy and the Internet File Systems and Directories.
CPS120: Introduction to Computer Science File Systems and Directories Nell Dale John Lewis.
CSCI-100 Introduction to Computing Hardware Part I.
1 COMS 161 Introduction to Computing Title: Computing Basics Date: September 15, 2004 Lecture Number: 10.
Chapter 5 Computing Components. 2 Computer Components Consider the following ad:
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.
Introduction to Computers and Terminology CS280 – 09/01/05.
Chapter 11 File Systems and Directories. 2 File Systems (Chapter 11.1) File: 1. A named collection of related data. 2.smallest amount of information that.
Memory The term memory is referred to computer’s main memory, or RAM (Random Access Memory). RAM is the location where data and programs are stored (temporarily),
SEPTEMBER 8, 2015 Computer Hardware 1-1. HARDWARE TERMS CPU — Central Processing Unit RAM — Random-Access Memory  “random-access” means the CPU can read.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 1 Looking Inside the Computer System.
Programming with Java. Chapter 1 Focuses on: –components of a computer –how those components interact –how computers store and manipulate information.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
Computer Architecture Adapted from CS10051 originally by Professor: Johnnie Baker Computer Science Department Kent State University von Neuman model.
Chapter 1: Introduction to Computers and Programming
Topics Introduction Hardware and Software How Computers Store Data
Overview of Computers and Programming Chapter 1
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Introduction to Computers
File Systems and Directories
Topics Introduction Hardware and Software How Computers Store Data
Week 1: File Systems and Directories
Algorithms File Systems Lab Environment.
Presentation transcript:

A little hardware; a little software CS 139 – 08/29/07

Algorithm Review In lab yesterday, we built algorithms. Which was the best algorithm? Why? Four characteristics of good algorithms Precise – no ambiguity Simple – each step does one discrete thing Complete – no steps are missing Correct – leads to the same correct result each time

Next week We will work more on making the language of algorithms more precise.

This session We want to explore some of the environment in which we will implement our algorithms….the computer. Parts of the computer Data storage OS File Systems

Flow of Information The parts are connected to one another by a collection of wires called a bus Figure 5.2 Data flow through a von Neumann architecture

Stored-Program Concept Figure 5.1 The von Neumann architecture

The Fetch-Execute Cycle Fetch the next instruction Decode the instruction Get data if needed Execute the instruction

Memory Memory is a collection of cells, each with a unique physical address Page 122

RAM and ROM RAM stands for Random Access Memory Inherent in the idea of being able to access each location is the ability to change the contents of each location ROM stands for Read Only Memory The contents in locations in ROM cannot be changed RAM is volatile, ROM is not This means that RAM does not retain its bit configuration when the power is turned off, but ROM does

Secondary Storage Devices Because most of main memory is volatile and limited, it is essential that there be other types of storage devices where programs and data can be stored when they are no longer being processed Secondary storage devices can be installed within the computer box at the factory or added later as needed

Magnetic Disks A read/write head travels across a spinning magnetic disk, retrieving or recording data Figure 5.5 The organization of a magnetic disk

Compact Disks A CD drive uses a laser to read information stored optically on a plastic disk CD-ROM is Read-Only Memory DVD stands for Digital Versatile Disk

Sizes in Perspective Page 119

File Systems A file is a named collection of related data A file system is the logical view that an operating system provides so that users can manage information as a collection of files A file system is often organized by grouping files into directories

Directory Trees Figure 11.4 A Windows directory tree

Directory Trees A directory of files can be contained within another directory The directory containing another is usually called the parent directory, and the one inside is called a subdirectory A file system is often viewed as a directory tree The directory at the highest level is called the root directory

Figure 11.5 A Unix Directory Tree

Directory Trees At any point in time, you can be thought of as working in a particular location (that is, a particular subdirectory) This subdirectory is referred to as the current working directory

Path Names To indicate a particular file using text, we specify that file’s path, which is the series of directories through which you must go to find the file An absolute path name begins at the root and specifies each step down the tree until it reaches the desired file or directory A relative path name begins from the current working directory

Path Names Examples of absolute path C:\Program Files\MS Office\WinWord.exe C:\My Documents\letters\applications\vaTech.doc C:\Windows\System\QuickTime Suppose the current working directory is C:\My Documents\letters Then the following relative path names could be used cancelMag.doc applications\calState.doc

Demo

Text and Binary Files In a text file the bytes of data are organized as characters from the ASCII or Unicode character sets A binary file requires a specific interpretation of the bits based on the information in the file

Text and Binary Files The terms text file and binary file are somewhat misleading They seem to imply that the information in a text file is not stored as binary data Ultimately, all information on a computer is stored as binary digits These terms refer to how those bits are formatted: as chunks of 8 or 16 bits, interpreted as characters, or in some other special format

File Types Most files, whether they are in text or binary format, contain a specific type of information For example, a file may contain a Java program, a JPEG image, or an MP3 audio clip The kind of information contained in a document is called the file type Most operating systems recognize a list of specific file types

File Types File names are often separated, usually by a period, into two parts Main name File extension The file extension indicates the type of the file Figure 11.1 Some common file types and their extensions

File Protection In multiuser systems, file protection is of primary importance We don’t want one user to be able to access another user’s files unless the access is specifically allowed A file protection mechanism determines who can use a file and for what general purpose

File Protection A file’s protection settings in the Unix operating system is divided into three categories Owner Group World Page 356

Algorithms

Problem Solving Problem solving is the act of finding a solution to a perplexing, distressing, vexing, or unsettled question

Ask Questions... …to understand the problem What do I know about the problem? What is the information that I have to process in order the find the solution? What does the solution look like? What sort of special cases exist? How will I recognize that I have found the solution?

Algorithms An algorithm is set of instructions for solving a problem or subproblem in a finite amount of time using a finite amount of data The instructions are unambiguous

Computer Problem-Solving Figure 6.2 The computer problem-solving process

Figure 6.3: The Interactions Between Problem-Solving Phases

Following an Algorithm Preparing a Hollandaise sauce Figure 6.4

Following an Algorithm (cont.) Preparing a Hollandaise sauce Page 150

A Computer Example Problem Create an address list that includes each person’s name, address, telephone number, and address This list should then be printed in alphabetical order The names to be included in the list are on scraps of paper and business cards

A Computer Example Page 156

A Computer Example Page 157

A Computer Example Page 158

A Computer Example Page 159