Structured program theorem
The structured program theorem is a theorem in programming and computer science. A computer program can be split into pieces of code that do a certain task. Acc…
The structured program theorem is a theorem in programming and computer science. A computer program can be split into pieces of code that do a certain task. According to the structured program theorem, these smaller tasks can be combined in only three ways to get any larger task done.
A program gets a large task done by splitting it into many smaller tasks that the computer can do easily. These smaller tasks are called subprograms in computer science. According to the structured program theorem, the three ways subprograms can be combined are:
- In sequence. Executing (running) one subprogram, and then executing another subprogram.
- By selection. Executing a subprogram based on a certain condition.
- In repetition. Executing the same subprogram over and over again.
The theorem was first published in 1966 by Corrado Böhm and Guiseppe Jacopini. It comes from the 1946 description of the von Neumann architecture and the normal form theorem developed by Stephen Kleene.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.