The Study of Computer Science

Slides:



Advertisements
Similar presentations
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
Advertisements

 The central processing unit (CPU) interprets and executes instructions.  The “brains” of the computer.  The speed of the processor is how fast it.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
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.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
1 8/28/06CS150 Introduction to Computer Science 1 Professor: Chadd Williams
1 CS150 Introduction to Computer Science 1 Professor: Chadd Williams
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
CPU Describe the purpose of the CPU
Introduction to Computers and Programming
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
How Computers Work. A computer is a machine f or the storage and processing of information. Computers consist of hardware (what you can touch) and software.
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
INTRODUCTION TO COMPUTER PROGRAMMING itc-314 LECTURE 01.
UNIX Unbounded 5 th Edition Amir Afzal Chapter 1 First Things First.
Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
1 Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510.
Computers Inside and Out
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Introduction to Programming Using C Introduction to Computer Programming.
Computer Parts. Two Basic Parts Hardware & Software.
Intro to Computers Computer Apps 1.
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
IT Groundwork ICS3UC - Unit 1 Hardware. Overview of Computer System.
BAT3O / BTX4C. Definition: A computer is an electronic machine that 1) takes in data and instructions (input) 2) works with the data (processing) 3) puts.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
CS 1428 Foundations of Computer Science I. Two Main Components  Hardware  Physical media that uses electrical current to process instructions.  Software.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
Hardware Information Created by Nasih 1. Hardware  The physical components of a computer system, including any peripheral equipment such as printers,
Computer Systems Objectives: To gain an understanding of the types of computer systems. Be able to identify the main components. Understand the difference.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
Computer Architecture and Number Systems
The Study of Computer Science Chapter 0
Introduction to Programming Part 2
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
The Central Processing Unit
Introduction to Computer Architecture
The Study of Computer Science Chapter 0
David Kauchak CS 52 – Spring 2016
Introduction to Computers
Machine Architecture and Number Systems
UNIV 103 CS Majors Seminar Dr. Blaise W. Liffick Fall 2017.
CS190/295 Programming in Python for Life Sciences: Lecture 1
Computer Science I CSC 135.
Introduction to Computers
Introduction to Computer Architecture
Machine Architecture and Number Systems
Chapter 2: Computer Hardware
Introduction to Programming Part 2
The Study of Computer Science
Machine Architecture and Number Systems
Machine Architecture and Number Systems
IST346: Operating Systems / Command Line Interfaces
Notes from Last Class Office Hours: GL Accounts?
Basic Computer Organization
Professor: Shereen Khoja
The Study of Computer Science Chapter 0
Machine Architecture and Number Systems
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

The Study of Computer Science Intro to Computer Science CS1510

Questions Syllabus? Textbook? The website? The readings?

Syllabus Review What is the minimum percentage that you need to earn in order to move on to the next class? How many exams will you have this semester? When are programming assignments typically due?

What is Computer Science? Computer science is a discipline that involves the understanding and design of computers and computational processes.

A Well-Educated Computer Scientist Should be Able to... Apply the fundamental concepts and techniques of computation, algorithms, and computer design …to a specific problem

Our Goals While a primary goal of this course is to learn to program (in Python), our goals include: increase our problem solving skills design good solutions to problems test (somehow) how well they are indeed solutions to the problem provide the solution as a readable document

But this is HARD! I cannot precisely explain why it is hard, only that it is indeed hard. Your textbook uses an interesting analogy

An Analogy Let us say that you have signed up to study French poetry in the original language. You have two problems: You don’t speak French You don’t know much about poetry

How Does this Apply? You have two related problems: the “syntax” of French is something you have to learn the “semantics” of poetry is something you have to learn You have two problems you have to solve at the same time.

Programming, Syntax and Semantics You have to learn the “syntax” of a particular programming language many details about the language, how to debug and use it You have to learn about “problem solving” and how to put it down on “computer.” There probably is no better way. It’s hard!

But we are getting a bit ahead of ourselves… We have been talking about programming quite a bit What is programming? The act of translating a sequence of general actions to a sequence of specific actions, in a specific language, and often for a specific computer. BUT, before we can get too far with programming we have to talk briefly about the computer…

What is a Computer? Kind of obvious, but a computer is something that does computation. A device that performs (high-speed) mathematical and/or logical operations or that assembles, stores, correlates, or otherwise processes information.

What is a Computer? What were the first computers?

What is a Computer? The first computers were people who performed difficult calculations by hand, for things like ballistic tables.

What is a Computer? Where was the first digital computer built?

What is a Computer? The first modern digital computer was invented where?

Modern Computer Systems Consist of two components: Hardware: physical devices required to execute algorithms Software: The instructions that tells the computer what to do Represented as programs in particular programming languages Heard these terms a lot. This is what I mean specifically. Hardware – the actual laptop or phone.

Modern Computer Systems Those parts of the system that you can hit with a hammer are called hardware; those program instructions that you can only curse at are called software. - Anonymous

Hardware Most computers consist of: central processing unit (CPU) storage/memory input/output (I/O) devices

CPU – Brain of the Computer Coordinates all computer operations Control Unit Reads instructions from memory and decodes and executes them using the ALU Arithmetic/Logic Unit (ALU) Does math and logic calculations on numbers in registers 345 Add register A to register B 263 608 Store the value in register C into memory location 320843202 Example: add two numbers and store them in working memory. ALU does not store things for long

Storage/Memory “Comes with 4 GB of RAM”

Visualizing Memory X 75.62 … STO 005 ADD 003 RTV 001 H -26 0.005 354 -27.2 Memory is an ordered sequence of storage locations (memory cells) Each memory cell has a unique address Millions of these cells Every memory cell has some contents although the contents may not be meaningful. 999 998 … 7 6 5 4 3 2 1

Storage/Memory The smallest unit of memory is a bit (Binary digIT) A bit can be off (no voltage) or on (has voltage) which we interpret to be 0 or 1 Memory is organized into 8 bit contiguous groups called bytes. A megabyte is 1 million bytes. A gigabyte is 1 billion bytes. See http://computer.howstuffworks.com/bytes1.htm.

It’s All About the Switch The basic component of most digital circuitry is nothing more complicated than a simple switch. A switch’s function is pretty obvious, said in a number of different ways On or Off True or False 1 or 0

Electronic Switch Early computers used vacuum tubes as switches Later, transistors were used as substitutes

Visualizing Memory X 75.62 … STO 005 ADD 003 RTV 001 H -26 0.005 354 -27.2 Thus, while we might visualize the computer with all sorts of data in the memory slots… 999 998 … 7 6 5 4 3 2 1

Visualizing Memory … It really consists of an arrangement of 1s and 0s

Why are there so many types of memory? The faster memory is the more it costs So we reduce the cost by using small amounts of expensive memory (registers, cache, and RAM) and large amounts of cheaper memory (disks) Why do we need cache? Processors are very fast and need quick access to lots of data Cache provides quick access to data from RAM

Types of Memory Registers Cache Very high speed temporary storage areas for use in the CPU Used for calculations and comparisons Cache High speed temporary storage for use with the CPU Main Memory – Random-access Memory (RAM) High speed temporary storage Contains programs and data currently being used Often described in low numbers of Gigabytes (GB) Secondary Memory - Disks Contains programs and data not currently being used Often described in Gigabytes (GB) or even Terabytes (TB)

Input/Output Devices Allow for human/computer interaction Input devices include keyboard and mouse Output devices include monitor and printer

Important Announcements For Tomorrow Meets in Wright 112 (know your section and time!) Make sure you know your CatID credentials If you think you have used them but can’t remember them, get them reset downstairs in room 36 (you will need a photo ID) Have a way to save your files Google, Dropbox, USB drive, others? Sign up for the zyBook!