Georgia Institute of Technology Speed part 6 Barb Ericson Georgia Institute of Technology May 2006.

Slides:



Advertisements
Similar presentations
The Central Processing Unit: What Goes on Inside the Computer.
Advertisements

Technology Component: Computer Hardware – Part 2 Basic Components Dr. V.T. Raja Oregon State University.
IT Systems Memory EN230-1 Justin Champion C208 –
Computer Systems Computer Performance.
M206 – Data Measurement. Introduction ‘Have you ever wondered how the computer interprets data?’ This is the language that the computer understands. This.
Cache Memory By Sean Hunter.
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.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006.
Chapter 2: CPU &Data Storage. CPU Each computer has at least one CPU Each computer has at least one CPU CPU execute instructions to carry out tasks –
Random access memory.
Computing hardware CPU.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
MEMORY More technically referred to as Primary Storage.
MAC OS – Unit A Page: 10-11, Investigating Data Processing Understanding Memory.
1 Growth of Functions CS 202 Epp, section ??? Aaron Bloomfield.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510.
Types of Computers Mainframe/Server Two Dual-Core Intel ® Xeon ® Processors 5140 Multi user access Large amount of RAM ( 48GB) and Backing Storage Desktop.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
1 Ethics of Computing MONT 113G, Spring 2012 Session 13 Limits of Computer Science.
Measuring System Performance The speed of a computer is often referred to as THROUGHPUT. This is very difficult to measure. It can be done with Measures.
The Central Processing Unit
Unsolvability and Infeasibility. Computability (Solvable) A problem is computable if it is possible to write a computer program to solve it. Can all problems.
IT253: Computer Organization
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Memory Systems How to make the most out of cheap storage.
Computer Basics Terminology - Take Notes. What is a computer? well, what is the technical definition A computer is a machine that changes information.
1 Buses and types of computer. Paul Strickland Liverpool John Moores University.
Chapter 17 Looking “Under the Hood”. 2Practical PC 5 th Edition Chapter 17 Getting Started In this Chapter, you will learn: − How does a computer work.
FIRST COURSE Essential Computer Concepts. XP New Perspectives on Microsoft Office 2007: Windows XP Edition2 What Is a Computer? A computer is an electronic.
Buying a Computer. Check the Ad’s A Computer is made up of: A Box A Box –LapTop –DeskTop.
Erdal Kose CC30.10 These slides are based of Prof. N. Yanofsky Lecture notes.
The Evolution Of Personal Home Computers 1980-Current TRS 80 Model 4P By Joshua Brutzkus.
ICT IGCSE Theory – Revision Presentation 1.2 The Main Components of Computer Systems Chapter 1: Types and components of computer systems
Lesson Objectives To understand the basic hardware of computers, and how they are made up To be able to compare performance of computers with price.
COMPUTER MEMORY & DATA STORAGE. ROM ROM is short for Read Only Memory. –I–It is permanent, long-term memory which cannot be erased or changed in any way;
SNU OOPSLA Lab. 1 Great Ideas of CS with Java Part 1 WWW & Computer programming in the language Java Ch 1: The World Wide Web Ch 2: Watch out: Here comes.
Limits to Computation How do you analyze a new algorithm? –Put it in the form of existing algorithms that you know the analysis. –For example, given 2.
Understanding Memory.
Georgia Institute of Technology Speed part 4 Barb Ericson Georgia Institute of Technology May 2006.
Complexity & Computability. Limitations of computer science  Major reasons useful calculations cannot be done:  execution time of program is too long.
Complexity © 2014 Project Lead The Way, Inc.Computer Science and Software Engineering.
Chapter VI What should I know about the sizes and speeds of computers?
Unit C-Hardware & Software1 GNVQ Foundation Unit C Bits & Bytes.
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),
Computer Hardware & Processing Inside the Box CSC September 16, 2010.
What is it and why do we need it? Chris Ward CS147 10/16/2008.
COMPUTER SYSTEM A computer system is define as combination of components designed to process data and store files. A computer system consists of four.
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
Computer Performance. Hard Drive - HDD Stores your files, programs, and information. If it gets full, you can’t save any more. Measured in bytes (KB,
Copyright © 2014 Curt Hill Algorithm Analysis How Do We Determine the Complexity of Algorithms.
MEMORY is part of the Central Processing Unit, or CPU, where data and information are stored. There are two main types of memory in a computer – RAM.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
GCSE Computer Science - Revision
Chapter 17 Looking “Under the Hood”
GCSE COMPUTER SCIENCE Computers 1.2 Memory, Storage and Binary.
Introduction to Programming Part 2
1.5 Intractable problems.
COMPUTER MEMORY & DATA STORAGE
Introduction to Computers
COMPUTER MEMORY & DATA STORAGE
Introduction to Computers
Types of Computers Mainframe/Server
Computer Hardware.
Introduction to Programming Part 2
Motherboard External Hard disk USB 1 DVD Drive RAM CPU (Main Memory)
The Study of Computer Science
Chapter 17 Looking “Under the Hood”
Announcements Jack group member by Thursday!! Quiz-8? HW10
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

Georgia Institute of Technology Speed part 6 Barb Ericson Georgia Institute of Technology May 2006

Georgia Institute of Technology Learning Goals Computing Concepts –Introducing a combinatorial problem –Introducing the categories of algorithms Class P Intractable Class NP –Understanding that there are algorithms that can't be written –Understanding how to compare computers to determine which would be faster

Georgia Institute of Technology Combining Parts What if we wanted to create a program that wrote songs –By combining musical parts –leave some out, put some in –Ignore differences in order (ab = ba) How many combinations with 3 parts? –a, b, c, ab, bc, ac, abc, and empty How many combinations with 4 parts? –a, b, c, d, ab, bc, cd, ac, ad, bd, etc Can you find more combinations?

Georgia Institute of Technology Processing Combinations For any n parts there are 2 n combinations –Ignoring order What if we had 60 musical bits? –That is 2 60 combinations –1, 152, 921, 504, 606, 846, 976 combinations Imagine we can create each combination in a single step –On a 1.5 GHz processor that is 768, 614, 336 seconds or 24 years to execute! Processing all combinations is O(2 n )

Georgia Institute of Technology Traveling Salesman Problem You have 30 clients to visit –You want to find the shortest path so that you visit each one time during a trip –The best known algorithm for finding the shortest path is O(n!) (n factorial) Factorial of 5 is 5 * 4 * 3 * 2 * 1 Factorial of 6 is 6 * 5 * 4 * 3 * 2 * 1 Factorial of n is n * (n – 1) * (n – 2) … to 1 For 30 cities 30! is 265, 252, 859, 812, 191, 058, 636, 308, 480, 000, 000 –Which wouldn't finish executing in your lifetime!

Georgia Institute of Technology Problem Classification Class P –Has polynomial running time Like linear or binary search Intractable –Problems that we can't solve in a reasonable time with reasonable data Like the combinations of sound parts problem Class NP –Problems that seem intractable, but maybe there is a solution in Class P that we haven't found yet Like the traveling salesman problem

Georgia Institute of Technology Unsolved Problem in Computer Science Is Class NP part of Class P? Or, are they completely separate? –If someone finds at least one algorithm to a Class NP problem that has polynomial running time That would prove NP is part of P –Or someone has to prove that there is no algorithm for a class NP problem that can have a polynomial running time

Georgia Institute of Technology An Algorithm that can't be Written Can a program read another program and the input to that program and predict if it will ever stop (halt)? –This is known as the Halting Problem –Alan Turing proved that a general algorithm couldn't be written to cover all possible input Using proof by absurdity in 1936 Before computers were being built! For particular programs and input you can write an algorithm that can tell if it will halt but there is no way to write a general algorithm that works on any program and input

Georgia Institute of Technology Comparing Computers How would you compare two computer advertisements? 2.53 GHz Intel Processor 2.7 GHz AMD Processor 256 MB SDRAM512 MB SDRAM 80GB Hard Drive100 GB Hard Drive 15 inch display17 inch display 16X CD/DVD48X CD/DVD

Georgia Institute of Technology Processor Speed 2.53 GHz is about 2.53 billion clock pulses per second –This doesn't mean that you can execute 2.53 instructions per second Many instructions take more than one clock cycle In general, a faster clock pulse means faster computation –Especially if the processor type is the same How fast do you need? –It depends on the type of work you are doing Word processing can be done on a slow machine 3D Game playing improves on a faster processor

Georgia Institute of Technology Storage Fastest and most expensive is cache memory Next fastest and next most expensive is RAM or SDRAM memory –256MB is 256 million bytes –Programs and data must be in RAM during execution This memory clears when the computer is off –Often the best investment is to increase the RAM This will make your programs run faster The hard drive is the slowest and cheapest memory –80GB is 80 billion bytes –All files are stored on the hard disk –Getting a bigger hard disk can leave more room for virtual memory Needed when RAM is full (swaps data in and out as needed)

Georgia Institute of Technology Exercise Find the details on at least two different kinds of computers in use at your school –Make suggestions for how to improve the speed of the computers Compare at least two computer ads –Decide which would be best for you to use for school work –Decide which would be best for you for running computer games

Georgia Institute of Technology Summary There are three categories of algorithms –Class P Like binary or linear search Can be solved in polynomial time –Intractable Problems that can't be solved in reasonable time with medium to large amounts of data Like combinatorial problems –Class NP Problems that seem intractable but maybe we haven't found the best algorithm yet Like the traveling salesman problem Machine speed is based on –The processor speed –The amount of each type of memory (cache, RAM, disk) Adding RAM is often the cheapest way to improve application speed