SlideShare a Scribd company logo
FOUNDATIONS OF COMPUTER SCIENCE 主讲:李艳 From Data Manipulation to Theory of Computation 云南农业大学
Book organization Computers and Data Computer Hardware Computer Software Data Organization Advanced Topics Chapter 1: Introduction Chapter 2: Data Representation Chapter 3: Number Representation Chapter 4: Operations on Bits Chapter 5: Computer Organization Chapter 6: Computer Network Chapter 7: Operating  Systems Chapter 8: Algorithms Chapter 9: Programming Languages Chapter 10: Software Engineering Chapter 11: Data Structures Chapter 12: Abstract Data Types Chapter 13: File Structures Chapter 14: Databases Chapter 15: Data compression Chapter 16: Security Chapter 17: Theory of Computation
Introduction Chapter 1
1.1 THE COMPUTER AS A BLACK BOX DATA PROCESSOR You can think of a computer as a data processor. Using this definition, a computer acts as a black box that accepts input data, processes the data, and creates output data.  Although this model can define the functionality of a computer today, it is too general.  It is not clear how many types or sets of operations a machine based on this model can perform.
PROGRAMMABLE DATA PROCESSOR This model adds one extra element to the computer: the program. A program is a set of instructions written in a computer language that tells the computer what to do with data.  In the new model, the output data depend on the combination of two factors: the input data and the program.
Same program, different input data
Same input  data,  different  programs
1.2 VON NEUMANN MODEL  Every computer today is based on the von Neumann model. It is based on three ideas. FOUR SUBSYSTEMS The model defines a computer as four subsystems: memory, arithmetic logic unit, control unit, and input/output.
Memory Memory is the storage area. It is where programs and data are stored during processing.  Arithmetic Logic Unit (ALU)   The ALU is where calculation and logical operations take place.  Control Unit The control unit controls the operations of the memory, ALU, and the input/output subsystem. Input/Output The input subsystem accepts input data and the program from outside the computer; the output subsystem sends the result of processing to the outside.
STORED PROGRAM CONCEPT The von Neumann model states that the program must be stored in memory. This is totally different from the architecture of early computers in which only the data were stored in memory.  Both the data and programs should have the same format because they are stored in memory. They are, in fact, stored as binary patterns (a sequence of 0s and 1s ) in memory. SEQUENTIAL EXECUTION OF INSTRUCTIONS A program in the von Neumann model is made of a finite number of instructions. In this model, the control unit fetches one instruction from memory, interprets it, and then executes it.
1.5 COMPUTER  SOFTWARE PROGRAMS MUST BE STORED  A SQUENCE OF INSTRUCTIONS Another requirement of the model is that the program must be a sequence of instructions. Each instruction operates on one or more data items.
ALGORITHMS The step-by-step solution is called an algorithm.  LANGUAGES   A computer language has a more limited number of symbols and also a limited of words .  SOFTWARE ENGINEERING Software engineering is the design and writing of structured programs. Today, it is not acceptable just to write a program that does a task; the program must follow strict principles and rules. OPERATING SYSTEMS An operating system originally worked as a manager to facilitate access of the computer components for a program. Today, operating systems do much more.
1.6 HISTORY MECHANICAL MACHINES (BEFORE 1930) BIRTH OF ELECTRONIC COMPUTERS (1930-1950) Early Electronic Computers   The early computers of this period did not store the program in memory; all were programmed externally.  The first general-purpose, totally electronic computer was made by John Mauchly and J.Presper Ecke r t and was called ENIAC (Electronic Numerical Integrator and Calculator). It was completed in 1946. Computers  Based  on the von  Neumann Model The first computer based on von Neumann’s idea was made in 1950 at the University of Pennsylvania and was called EDVAC  (Electronic Discrete  V ariable Automatic Computer) .
COMPUTER GENERATIONS (1950-PRESENT) Computer built after 1950 are following, more or less, the von Neumann model. The computers has become faster, smaller, and cheaper, but the principle is almost the same. Each generation witnesses some major change in hardware or software (but not the model). The first generation is characterized by the emergence of commercial computers. Computers were bulky and used vacuum tubes as electric switches.  First Generation (roughly 1950-1959)
The invention of integrated circuit (transistors, wiring, and other components on a single chip) reduced the cost and size of computers even further. Minicomputers appeared on the market. Software industry was born. Third Generation (roughly 1965 -1975 ) Second-generation computers used transistors   instead of vacuum tubes. This reduced the size of computers as well as their cost. Two high-level programming languages, FORTRAN and COBOL , were invented and made programming  easier. Second Generation (roughly 1959-1965)
The fourth generation saw the appearance of microcomputers. Advances in the electronics industry allowed whole computer subsystems to fit on a single circuit board. This generation also saw the emergence of computer networks. Fourth Generation (approximately 1975-1985)   The fifth generation witnessed the appearance of laptop and palmtop computers, improvements in secondary storage media (CD-ROM, DVD, etc.), the use of multimedia, and the phenomenon of virtual reality. Fifth Generation (approximately 1985-NOW)
SUMMARY  Computer science, in this text, means issues related to a computer. A computer is a programmable data processor that accepts input data and programs and outputs data. A program is a set of instructions executed sequentially that tells the computer what to do with data. Every computer today is based on the von Neumann model.
SUMMARY  (continued) The von Neumann model specifies a memory subsystem, an arithmetic logic unit subsystem, a control unit subsystem, and an input/output subsystem. Data and programs are stored in computer memory.  A step-by-step solution to a problem is called an algorithm. A program is written in a computer language. Software engineering is the design and writing of programs in a structured form.
Thanks !

More Related Content

PPT
Operating System
PPTX
Von Neumann Architecture
PPTX
Introduction to computer science ch1
PPTX
OS Types And A Bit Of History Of OSs
PPTX
Computer science
PDF
Computer system architecture
PDF
Von Neumann Architecture
PPTX
chapter 1 peter norton introduction to computers
Operating System
Von Neumann Architecture
Introduction to computer science ch1
OS Types And A Bit Of History Of OSs
Computer science
Computer system architecture
Von Neumann Architecture
chapter 1 peter norton introduction to computers

What's hot (19)

PPTX
Introduction to computer_lec_01_fall_2018
PPTX
Von neumann Architecture | Computer Science
PPTX
Lecture 1
PPTX
introduction to Computer system
PPTX
Peter Norton - Introduction to computers Part 1
PPT
Introduction to Computer
PPTX
Basic Computer
PPTX
Components of digital computer
PPTX
CHAPTER 1= Introduction to Computer
PPTX
Introduction to computers
PPTX
Harvard Architecture | Computer Science
PDF
SPL 1 | Introduction to Structured programming language
PPTX
Fundamentals of computers & information system
PPTX
Basic of computer pptx
PPT
Lecture 9
PDF
Computer Fundamentals & Intro to C Programming module i
PPT
History of computer development
PPTX
Exercise 4
Introduction to computer_lec_01_fall_2018
Von neumann Architecture | Computer Science
Lecture 1
introduction to Computer system
Peter Norton - Introduction to computers Part 1
Introduction to Computer
Basic Computer
Components of digital computer
CHAPTER 1= Introduction to Computer
Introduction to computers
Harvard Architecture | Computer Science
SPL 1 | Introduction to Structured programming language
Fundamentals of computers & information system
Basic of computer pptx
Lecture 9
Computer Fundamentals & Intro to C Programming module i
History of computer development
Exercise 4
Ad

Viewers also liked (20)

PDF
Nhungbaihoccuocsong
PDF
Requesting Informational Interviews & Meetings
PPTX
Research proposal m macri
PPT
21019056
PPTX
Don’t worry be happy
PPS
XML - What is XML?
PPT
Evidence of implementation
PDF
Midterm presentation 2.27.2010 small
PPTX
Swug apr 2010 - BPOS by Desmond and Andrew
PPT
Gücün merkezindeki 20 kadin
PPT
Presentacio mediambient 2010
PPTX
Birthday 4
PPTX
National Standards
PPTX
wellington religion field trip hm
PPTX
19 Luglio 2013 - Il futuro della TV - Marco Cantamessa - I3P
PDF
Mane Station
PPT
Shonkoff
PPT
Using smart phones as part
PDF
Seminario ict agricoltura
PPT
Transfer vidhi
Nhungbaihoccuocsong
Requesting Informational Interviews & Meetings
Research proposal m macri
21019056
Don’t worry be happy
XML - What is XML?
Evidence of implementation
Midterm presentation 2.27.2010 small
Swug apr 2010 - BPOS by Desmond and Andrew
Gücün merkezindeki 20 kadin
Presentacio mediambient 2010
Birthday 4
National Standards
wellington religion field trip hm
19 Luglio 2013 - Il futuro della TV - Marco Cantamessa - I3P
Mane Station
Shonkoff
Using smart phones as part
Seminario ict agricoltura
Transfer vidhi
Ad

Similar to Computer basics (20)

PPT
Forouzan Chapter 1 - introduction-foundations-of-computer.ppt
PPT
Forouzan Chapter 1 - introduction-foundations-of-computer.ppt
PPT
Chap01_1473751047_598099.ppt
PPT
Computer generations (1950–present)
PPTX
scb2013--_owasptop10-2013-131028002253-phpapp02_(1)-10082017104949
PPTX
0.0 Introduction to a computer programming.pptx
PPTX
DSE LECTURE 1 -LRW_ Introduction_to_Computer.pptx
PPTX
digital principles and computer organization
PDF
C++ 1.pdf
PPT
Stored program concept
PPTX
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
PPTX
Ch01.pptxcomputer organization and architecture schools
PPTX
UNIT-1.pptx
PDF
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
PDF
Introduction to Computer.pdf
PDF
Week 01.pdf
PDF
Computer Fundamentals notes of mca 1st sem
PPT
IS 139 Lecture 2 - 2015
PPT
IS 139 Lecture 2
PPTX
CSC116-Topic1 .pptx
Forouzan Chapter 1 - introduction-foundations-of-computer.ppt
Forouzan Chapter 1 - introduction-foundations-of-computer.ppt
Chap01_1473751047_598099.ppt
Computer generations (1950–present)
scb2013--_owasptop10-2013-131028002253-phpapp02_(1)-10082017104949
0.0 Introduction to a computer programming.pptx
DSE LECTURE 1 -LRW_ Introduction_to_Computer.pptx
digital principles and computer organization
C++ 1.pdf
Stored program concept
Ch01.pptxxxxxxxxxcxcxcxxccxxxxxxxxxxxcccccc
Ch01.pptxcomputer organization and architecture schools
UNIT-1.pptx
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
Introduction to Computer.pdf
Week 01.pdf
Computer Fundamentals notes of mca 1st sem
IS 139 Lecture 2 - 2015
IS 139 Lecture 2
CSC116-Topic1 .pptx

More from kitturashmikittu (20)

DOC
Airtel project report
DOC
Karvy project report
DOC
Anil raythour
DOC
Airtel ranjeet
DOC
Airtel distribution expansion in rural areas
DOC
Airtel distribution expansion & market services in rural areas
DOC
Sanjay sharma01
PPT
PPT
System software-loaders
PPT
Sourcefinance
PPT
Semiconductor memories
PPT
Selection
PPT
Segmentation
PPT
Scientific method
PPT
Scientific method
PPT
Research methodology concept
PPT
Research design
PPT
Recruitment
PPT
Promotion
PPT
Production & operation mgt
Airtel project report
Karvy project report
Anil raythour
Airtel ranjeet
Airtel distribution expansion in rural areas
Airtel distribution expansion & market services in rural areas
Sanjay sharma01
System software-loaders
Sourcefinance
Semiconductor memories
Selection
Segmentation
Scientific method
Scientific method
Research methodology concept
Research design
Recruitment
Promotion
Production & operation mgt

Computer basics

  • 1. FOUNDATIONS OF COMPUTER SCIENCE 主讲:李艳 From Data Manipulation to Theory of Computation 云南农业大学
  • 2. Book organization Computers and Data Computer Hardware Computer Software Data Organization Advanced Topics Chapter 1: Introduction Chapter 2: Data Representation Chapter 3: Number Representation Chapter 4: Operations on Bits Chapter 5: Computer Organization Chapter 6: Computer Network Chapter 7: Operating Systems Chapter 8: Algorithms Chapter 9: Programming Languages Chapter 10: Software Engineering Chapter 11: Data Structures Chapter 12: Abstract Data Types Chapter 13: File Structures Chapter 14: Databases Chapter 15: Data compression Chapter 16: Security Chapter 17: Theory of Computation
  • 4. 1.1 THE COMPUTER AS A BLACK BOX DATA PROCESSOR You can think of a computer as a data processor. Using this definition, a computer acts as a black box that accepts input data, processes the data, and creates output data. Although this model can define the functionality of a computer today, it is too general. It is not clear how many types or sets of operations a machine based on this model can perform.
  • 5. PROGRAMMABLE DATA PROCESSOR This model adds one extra element to the computer: the program. A program is a set of instructions written in a computer language that tells the computer what to do with data. In the new model, the output data depend on the combination of two factors: the input data and the program.
  • 7. Same input data, different programs
  • 8. 1.2 VON NEUMANN MODEL Every computer today is based on the von Neumann model. It is based on three ideas. FOUR SUBSYSTEMS The model defines a computer as four subsystems: memory, arithmetic logic unit, control unit, and input/output.
  • 9. Memory Memory is the storage area. It is where programs and data are stored during processing. Arithmetic Logic Unit (ALU) The ALU is where calculation and logical operations take place. Control Unit The control unit controls the operations of the memory, ALU, and the input/output subsystem. Input/Output The input subsystem accepts input data and the program from outside the computer; the output subsystem sends the result of processing to the outside.
  • 10. STORED PROGRAM CONCEPT The von Neumann model states that the program must be stored in memory. This is totally different from the architecture of early computers in which only the data were stored in memory. Both the data and programs should have the same format because they are stored in memory. They are, in fact, stored as binary patterns (a sequence of 0s and 1s ) in memory. SEQUENTIAL EXECUTION OF INSTRUCTIONS A program in the von Neumann model is made of a finite number of instructions. In this model, the control unit fetches one instruction from memory, interprets it, and then executes it.
  • 11. 1.5 COMPUTER SOFTWARE PROGRAMS MUST BE STORED A SQUENCE OF INSTRUCTIONS Another requirement of the model is that the program must be a sequence of instructions. Each instruction operates on one or more data items.
  • 12. ALGORITHMS The step-by-step solution is called an algorithm. LANGUAGES A computer language has a more limited number of symbols and also a limited of words . SOFTWARE ENGINEERING Software engineering is the design and writing of structured programs. Today, it is not acceptable just to write a program that does a task; the program must follow strict principles and rules. OPERATING SYSTEMS An operating system originally worked as a manager to facilitate access of the computer components for a program. Today, operating systems do much more.
  • 13. 1.6 HISTORY MECHANICAL MACHINES (BEFORE 1930) BIRTH OF ELECTRONIC COMPUTERS (1930-1950) Early Electronic Computers The early computers of this period did not store the program in memory; all were programmed externally. The first general-purpose, totally electronic computer was made by John Mauchly and J.Presper Ecke r t and was called ENIAC (Electronic Numerical Integrator and Calculator). It was completed in 1946. Computers Based on the von Neumann Model The first computer based on von Neumann’s idea was made in 1950 at the University of Pennsylvania and was called EDVAC (Electronic Discrete V ariable Automatic Computer) .
  • 14. COMPUTER GENERATIONS (1950-PRESENT) Computer built after 1950 are following, more or less, the von Neumann model. The computers has become faster, smaller, and cheaper, but the principle is almost the same. Each generation witnesses some major change in hardware or software (but not the model). The first generation is characterized by the emergence of commercial computers. Computers were bulky and used vacuum tubes as electric switches. First Generation (roughly 1950-1959)
  • 15. The invention of integrated circuit (transistors, wiring, and other components on a single chip) reduced the cost and size of computers even further. Minicomputers appeared on the market. Software industry was born. Third Generation (roughly 1965 -1975 ) Second-generation computers used transistors instead of vacuum tubes. This reduced the size of computers as well as their cost. Two high-level programming languages, FORTRAN and COBOL , were invented and made programming easier. Second Generation (roughly 1959-1965)
  • 16. The fourth generation saw the appearance of microcomputers. Advances in the electronics industry allowed whole computer subsystems to fit on a single circuit board. This generation also saw the emergence of computer networks. Fourth Generation (approximately 1975-1985) The fifth generation witnessed the appearance of laptop and palmtop computers, improvements in secondary storage media (CD-ROM, DVD, etc.), the use of multimedia, and the phenomenon of virtual reality. Fifth Generation (approximately 1985-NOW)
  • 17. SUMMARY Computer science, in this text, means issues related to a computer. A computer is a programmable data processor that accepts input data and programs and outputs data. A program is a set of instructions executed sequentially that tells the computer what to do with data. Every computer today is based on the von Neumann model.
  • 18. SUMMARY (continued) The von Neumann model specifies a memory subsystem, an arithmetic logic unit subsystem, a control unit subsystem, and an input/output subsystem. Data and programs are stored in computer memory. A step-by-step solution to a problem is called an algorithm. A program is written in a computer language. Software engineering is the design and writing of programs in a structured form.