1 / 28

Understanding Computing: Solving Problems with Technology

Explore the fundamental concepts of computing, from the nature of computation to building blocks and universal machines. Learn how computers function beyond popular misconceptions.

dbollinger
Download Presentation

Understanding Computing: Solving Problems with Technology

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Nature of Computing INEL 4206 – Microprocessors Lecture 3 Bienvenido Vélez Ph. D. School of Engineering University of Puerto Rico - Mayagüez

  2. Some Inaccurate Yet Popular Perceptions of Computing • Computing = Computers • Computing = Programming • Computing = Software COMPEL 2002

  3. A.K.A. The Computing Device View of Computing Computing = Computers Computing is about solving problems using computers COMPEL 2002

  4. A.K.A. The Programming Language view of Computing Computing = Programming Computing is about writing programs for computers COMPEL 2002

  5. A.K.A. The “Floppy Disk” view of Computing Computing = Software Computing is not concerned with hardware design COMPEL 2002

  6. Outline • What is Computing? • Computing Models and Computability • Intepretation and Universal Computers • Abstraction and Building Blocks COMPEL 2002

  7. What is computing then? Algorithmic Computation Function Input Information Output Information Computing is the study of Computation: the process of transforming information COMPEL 2002

  8. encode compute decode 011011001010100101… 011011001010100101… Problem Solution This Talk The Computation Process COMPEL 2002

  9. Fundamental Questions Addressed by the Discipline of Computing • What is the nature of computation? • What can be computed? • What can be computed efficiently? • How to build practical computing devices? COMPEL 2002

  10. encode compute decode 011011001010100101… 011011001010100101… Problem Solution Integer Integer Integer Function The Computation Process COMPEL 2002

  11. IF ≠ CF All Integer Functions (IF) Computable Integer Functions (CF) Halting Problem Computability IF ≟ CF Computable Integer Functions (CF) COMPEL 2002

  12. Cannot Build This The Halting Problem(Alan Turing 1936) Given a program and an input to the program, determine if the program will eventually stop when it is given that input. Compute Program P P Halts on I? Input I Want to describe the set of computable functions? COMPEL 2002

  13. Mathematical Computers:The Turing Machine (1936) 0 1 Infinite I/O TAPE Tape Head 0/{1,0,R} 0 1 FSM 1/{0,1,R} Alan Turing COMPEL 2002

  14. Mathematical Computers:The Turing Machine (1936) 0 1 InfiniteTAPE Infinite I/O TAPE Tape Head 0/{1,0,R} 0 1 FSM FSM 1/{0,1,R} Alan Turing Turing demonstrated how to solve several problems using his computing model COMPEL 2002

  15. FSM FSM FSM FSM FSM Sorting TM Sorting TM Sorting TM Sorting TM Searching TM FSM Integrating TM Ad-hoc Turing Machines Can we build a general purpose TM? COMPEL 2002

  16. Software (flexible) Hardware (fast) The Universal Turing Machine (UTM)The Paradigm for Modern General Purpose Computers Coded TM M Coded Tape for M Universal TM • Capable of Emulating Every other TM • Shown possible by Alan Turing (1936) • BIG IDEA: INTEPRETATION!!! COMPEL 2002

  17. Other Familiar Models of Computation • Combinational Circuits • Sequential Circuits (FSM’s) • Pentium Instruction Set Architectures • Lambda Calculus • Recursive Functions • C++ Can you tell which ones are Turing Universal? That is, which ones can emulate any other Turing Machine? COMPEL 2002

  18. Church’s Thesis “Any realizable computing device can be simulated by a Turing machine” “All the models of computation yet developed, and all those that may be developed in the future, are equivalent in power.” Alonso Church Issues not considered: Size, Programmability, Performance But they must be considered if one is to build … COMPEL 2002

  19. ALU status control Practical Universal Computers(John) Von Neumann Architecture (1945) Memory CPU Program DataPaths AC This looks just like a TM Tape PC Data ABR Control Unit (FSM) CPU is a universal TM An interpreter of some programming language (PL) COMPEL 2002

  20. All have embedded PL’s Computing in Perspective PSpice Excel MatLab Build Many Pascal C++ Fortran Assembler 1 Assembler 2 Assembler 3 ISA FSM Build One Gate CMOS Interpreter Design Demands Programming Language Design COMPEL 2002

  21. Computing in Perspective People Computer Human Interaction, User Interfaces CS1/CS2, Programming, Data Structures Programming Languages, Compilers Computer Architecture Each layer implements an INTERPRETER for some programming language computers People COMPEL 2002

  22. Because we know of no other way of doing anything Why Abstraction Layers? • Resilience to change: • Each layer provides a level of indirection • Divide and Conquer Approach: • Can work on one small semantic gap at a time • Building Block Approach: • Can build many higher layer on same lower layer COMPEL 2002

  23. Hardware Building Blocks A B A sel O SEL B O Gate-Level Logic Provides a Computing Model COMPEL 2002

  24. Software Building Blocks The function is one of the most ubiquitous abstraction tools // MUX – Implements a 2-1 binary multiplexer bool MUX(bool a, bool b, bool sel) { switch(sel) { case 0: return a; break; case 1: return b; break; } } Other abstraction tools include: structures, classes, modules COMPEL 2002

  25. What Makes a Good Building Block • Provides a clear and simple contract • The contract hides irrelevant detail • The contract is general and orthogonal • The contract is easy to remember COMPEL 2002

  26. Some Properties of a Good Programming Language • Does not hide expressive power of lower layers • Can be efficiently interpreted • Provides adequate higher level abstractions • Provides a variety of constructs for creating new abstractions, layers and modules • Achieves all of the above with minimal complexity COMPEL 2002

  27. Summary "Computer Science is no more about computers than Astronomy is about telescopes" E. Dijkstra COMPEL 2002

  28. Summary • Computing = Information Transformation • Information Transformation = Integer Functions • Some integer functions are not computable • Turing Machine computations = All computations • Universal Computer = Universal TM • Interpretation => Programmability => Flexibility • Building blocks are abstract contracts COMPEL 2002

More Related