Search topics and sections

Computing is any activity, aimed at a goal, that needs computers, benefits from them, or creates them.[1] It covers many kinds of work:[1]

  • designing and building hardware and software,
  • organizing and managing information,
  • doing science with computers,
  • making computers behave intelligently,
  • making media for communication and entertainment.

Computing is both a profession and an academic field. Universities split it into several disciplines, such as computer science, computer engineering, and software engineering. Each one looks at computers from a different angle.[1][2]

What a computer does

A computer is a device that processes, stores, and displays information.[3]

The word once meant a person who did calculations by hand. Today it almost always means an automatic electronic machine.[3]

Information as bits

Modern digital computers store information as strings of 0s and 1s, called binary digits, or bits.[3]

The first computers were used mainly for calculations with numbers. Because any kind of information can be written as numbers, people soon saw that computers could process information of every kind.[3]

For example, the binary number 1101 stands for the ordinary number 13:

11012=1×8+1×4+0×2+1×1=131101_2 = 1\times 8 + 1\times 4 + 0\times 2 + 1\times 1 = 13

Each place is worth twice the place to its right, and each digit says whether that place counts (1) or not (0).

Hardware and software

A computer system has two parts that work together.

  • Hardware is the physical machine.[4]
  • Software is the set of instructions that tell the hardware what to do. One such set of instructions for a task is called a program.[4]

A program carries out one or more algorithms. An algorithm is a set of steps that gives the answer to a question, or solves a problem, in a limited number of steps.[5] Long division is an everyday example.[5]

Inside a computer

The main hardware parts

The hardware of a computer is usually divided into three groups.[3]

The CPU and RAM are integrated circuits: small chips of silicon holding many transistors that act as electrical switches.[3]

Organization of a basic computer CPU Control unit ALU(arithmeticlogic unit) Registers Main memory (RAM) programs and data as bits 0110 1001 1100 1011 0010 0111 0001 1110 0101 Input devices keyboard, network Output devices display, printer Disk storage Peripherals
A basic computer: the CPU's control unit, ALU, and registers exchange programs and data, stored as bits, with main memory. Peripherals such as input devices, output devices, and disk storage connect to the CPU and memory.

How a processor runs a program

In a stored-program computer, programs and data sit in the same memory as patterns of bits.[3] Each spot in memory has a memory address, which gives its location. The CPU keeps a program counter that holds the address of the next instruction.[3]

The CPU also has registers, small storage areas inside it that hold results for a short time.[3] It then repeats the fetch-decode-execute cycle:[3]

  1. Fetch the instruction from the address in the program counter.
  2. Decode it to find the operation and the data it works on.
  3. Fetch the data (operands), if any.
  4. Carry out the operation.
  5. Store the result in a register or in memory, if there is one.
  6. Update the program counter to point to the next instruction, or to a new address if the instruction was a branch.

Branch instructions, which set the new address used in step 6, let a program make choices, such as "if the last result was negative, jump to another part of the program."[3] The cycle repeats until a halt instruction stops it.[3]

A clock times every step of the cycle. Modern clocks run at billions of cycles per second (gigahertz).[3]

Fetch-decode-execute cycle 1. Fetch instruction address in program counter 2. Decode 3. Fetch operands 4. Execute 5. Store result 6. Update program counter next address, or branch target Repeats until a halt instruction
The fetch-decode-execute cycle runs through six steps in a clockwise loop. After the program counter is updated, the processor fetches the next instruction, and the loop repeats until it reaches a halt instruction.

Types of software

Software comes in two main types, plus a third.[4]

  • System software runs the computer's inner workings, mainly through an operating system. It also controls devices such as monitors, printers, and storage.[4]
  • Application software carries out tasks for the user. Examples include word processors, spreadsheets, databases, and payroll programs.[4]
  • Network software handles communication between computers linked in a network.[4]
Layers of software in a computerUserApplication software(word processor, spreadsheet)System software(operating system)Hardware(CPU, memory, devices)
A computer as four stacked layers: the user, application software, system software, and hardware. Each layer works with the layers next to it, passing requests down and results up.

The computing disciplines

Computing is too broad for one person to master, so university programs focus on parts of it.[1] Joint reports by the Association for Computing Machinery, the IEEE Computer Society, and the Association for Information Systems set out these disciplines. These include the Computing Curricula reports of 2005 and 2020.[1][2]

The five classic disciplines

The 2005 report named five disciplines that each had, or would soon have, curriculum guidelines.[1]

Discipline Main focus
Computer engineering Designing and building computers and computer-based devices, drawing on electrical engineering and mathematics. Embedded systems, such as those in phones and medical devices, are a major area.[1]
Computer science A wide range, from the theory of algorithms to robotics, computer vision, intelligent systems, and Bioinformatics.[1]
Information systems Joining technology with business processes to meet an organization's information needs. Most programs sit in business schools.[1]
Information technology The technology itself: choosing, installing, running, and securing an organization's hardware and software, and supporting its users.[1]
Software engineering Building and maintaining software that works reliably and efficiently, is affordable, and meets its users' requirements.[1]

Newer disciplines

The 2020 report added two areas that emerged in the 2010s.[2]

The 2020 report left out artificial intelligence as a separate discipline because no joint curriculum guideline for it existed yet.[2]

Disciplines of computing Computing Computerengineering Computerscience Informationsystems Informationtechnology Softwareengineering Cybersecurity Datascience hardware anddevices theory toapplications informationfororganizations runningtechnology,supportingusers reliablesoftware curriculum2017 curriculumin progress(2020) Named inComputing Curricula 2005 Added inComputing Curricula 2020
Computing Curricula 2020 describes seven computing disciplines. Five were named in Computing Curricula 2005, and the 2020 report added cybersecurity and data science.

Theory: what can be computed

The theory of computing asks which problems a machine can solve at all. Its main tool is the Turing machine, a simple imaginary machine first described by Alan Turing in a paper of 1936 to 1937.[6] Turing's paper used it to study the limits of what can be computed.[6]

The Turing machine

A Turing machine has a tape divided into squares, each holding one symbol or a blank.[6] A head scans one square at a time. The machine is always in one of a fixed, limited set of states, and its current state together with the scanned symbol decides what it does next.[6]

Each rule says what to do for a given state and scanned symbol:[6]

  1. write a new symbol in the square,
  2. move one square left, one square right, or stay put,
  3. switch to the next state.

Turing called these "automatic machines." Alonzo Church first called them Turing machines in a 1937 review.[6]

A Turing machine … 0 1 0 1 Tape (one symbol per square) Head scans one square Control current state q1 Finite set of states Rule State Read Write Move Next q1 blank blank right q2
A Turing machine reads and writes one symbol at a time on a tape that never ends. The head scans one square, and the control unit is in state q1q_1. The rule shown says that in state q1q_1, reading a blank, the machine writes a blank, moves right, and goes to state q2q_2.

Universal machines and the Church-Turing thesis

Turing also described a universal machine. It reads the program of any other Turing machine from its tape and copies that machine's behavior.[6]

Emil Post and Alonzo Church gave different but equivalent definitions of computation at about the same time.[6] Most computer scientists accept that these definitions capture every problem that can be computed. This idea is called the Church-Turing thesis.[6]

Limits of computation

Some problems have no algorithm at all. Turing used his machines to prove that the Entscheidungsproblem has no solution. This problem asks for a general method to decide whether a given statement of first-order logic can be proved.[6]

The best-known example is the halting problem: deciding, for every machine and input, whether the machine will eventually stop.[6] A standard proof assumes there is a decider, a machine that always answers this yes-or-no question, and then builds a machine that contradicts it. Turing's own problem was a close version of this one.[6]

History

Computing grew from mechanical designs in the 1800s to electronic machines in the 1940s and single-chip processors by the 1970s.

Early designs

  • In 1834, Charles Babbage came up with the Analytical Engine, a general-purpose programmable computing machine.[7] It was to be programmed with punched cards, a method taken from the Jacquard loom.[8] Only parts of it were ever built.[9]
  • In 1843, Ada Lovelace published an account of the Analytical Engine.[8] Her notes showed how it could follow a program to calculate Bernoulli numbers.[9]
  • In 1936, Turing described his abstract machine.[6]

Electronic computers

  • ENIAC was started in 1943 by John Mauchly and J. Presper Eckert and shown publicly in 1946.[10] It used about 18,000 vacuum tubes, weighed 30 tons, and was programmed by rewiring panels and setting switches.[10]
  • On 16 December 1947, John Bardeen and Walter Brattain at Bell Labs made the first working point-contact transistor.[11]
  • On 21 June 1948, the Manchester Baby ran a 17-instruction program written by Tom Kilburn. It was the first program to run on a digital, electronic, stored-program computer.[12]

Chips and microprocessors

  • On 12 September 1958, Jack Kilby of Texas Instruments built a working circuit whose parts were all made from semiconductor material.[13]
  • In July 1959, Robert Noyce of Fairchild filed a patent for a single-chip (monolithic) integrated circuit that could be made in volume. Kilby and Noyce are now credited as co-inventors of the integrated circuit.[14]
  • In 1971, Intel advertised the Intel 4004, built for a Japanese calculator maker. It had 2,250 transistors and could do up to 90,000 operations per second.[10] Britannica calls it the first microprocessor.[3]
Timeline of computing, 1830 to 1975 1834Babbage conceivesthe Analytical Engine 1936Turing describeshis machine 1947First transistor,Bell Labs 1958Kilby's semiconductorcircuit 1971Intel 4004microprocessor 1843Lovelace publishesher notes 1946ENIAC unveiled(begun 1943) 1948Manchester Baby runsfirst stored program 1959Noyce's monolithicIC patent Mechanical designs Electronic computers Chips
Key events in early computing from 1834 to 1971. The axis is broken between 1845 and 1935, and brackets group the mechanical designs, the first electronic computers, and the move to integrated circuits.

Growth of the academic field

The computing disciplines formed in stages.

  1. Undergraduate computing programs began to appear in the 1960s. In North America there were at first only three kinds: computer science, electrical engineering, and information systems.[1] Information systems then focused on business needs such as accounting, payroll, and inventory.[1]
  2. From the mid-1970s, after the microprocessor appeared, computer engineering began to emerge from within electrical engineering as a discipline of its own.[1]
  3. In the early 2000s, software engineering gained its own curriculum recommendation, and information technology programs arose to run computing infrastructure and support users.[2]
  4. In the 2010s, cybersecurity and data science emerged as new disciplines.[2]

Several fields apply computing to particular goals.

  • Computational science uses mathematics and computing to advance science and engineering, for example in weather and climate prediction and drug design.[15]
  • Virtualization is the simulation of the software or hardware that other software runs on. The simulated environment is called a virtual machine.[16]
  • Physical computing is about sensing and controlling the physical world with computers.[17]

References

  1. Computing Curricula 2005: The Overview Report, ACM, AIS, and IEEE Computer Society, 2005.
  2. Computing Curricula 2020: Paradigms for Global Computing Education, ACM and IEEE Computer Society, 2020.
  3. Computer, Encyclopaedia Britannica.
  4. Software, Encyclopaedia Britannica.
  5. Algorithm, Encyclopaedia Britannica.
  6. Turing Machines, Stanford Encyclopedia of Philosophy.
  7. A Brief History: The Analytical Engine, Computer History Museum.
  8. Charles Babbage's Difference Engines and the Science Museum, Science Museum.
  9. Analytical Engine, Encyclopaedia Britannica.
  10. Timeline of Computer History: Computers, Computer History Museum.
  11. 1947: Invention of the Point-Contact Transistor, Computer History Museum.
  12. 1948: First Computer Program to Run on a Computer, Computer History Museum.
  13. 1958: All Semiconductor "Solid Circuit" is Demonstrated, Computer History Museum.
  14. 1959: Practical Monolithic Integrated Circuit Concept Patented, Computer History Museum.
  15. SIAM Report on the Future of Computational Science, Society for Industrial and Applied Mathematics, 2024.
  16. Virtualization (glossary), NIST Computer Security Resource Center.
  17. Physical Computing: Sensing and Controlling the Physical World with Computers, D. O'Sullivan and T. Igoe, 2004.

Figure