



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Introduction Computer science, at its core, is the study of problems, the processes needed to solve them, and the systematic methods used to represent those processes so that a machine can carry them out. Before any code is written, a problem must first be understood, planned for, and expressed in a form a computer can follow. This term paper examines two closely related themes in this area of study. Part One: Methods of Solving Computing Problems 1.1 What Is a Computing Problem? A computing problem is any task that can be expressed in terms of inputs, a required process, and a desired output. Examples range from simple tasks, such as finding the average of a set of numbers, to complex ones, such as scheduling flights or securing a network. Solving such a problem with a computer is not just about writing code; it is a structured process that moves from understanding the problem to producing a working, tested solution. 1.2 Stages of Problem Solving Computing problems are generally solved by moving through the following stages:
presents it visually for easier verification and communication. Used together, they reduce errors, save debugging time, and make it easier to translate a plan into a working program in any language. Part Two: Solvable and Unsolvable Problems 2.1 Introduction to Solvability Not every problem that can be stated can actually be solved by a computer. This is one of the most important discoveries in the theory of computation, established in the 1930s independently by Alonzo Church (using lambda calculus) and Alan Turing (using the concept of the Turing machine). Their work showed that there are precise, well-defined problems for which no algorithm can ever exist โ not because of a lack of computing power, but because of a fundamental logical limitation. 2.2 Decidable (Solvable) Problems A problem is said to be decidable, or solvable, if there exists an algorithm that can correctly answer the problem, typically with a definite 'yes' or 'no', for every possible input, and is guaranteed to stop (halt) in a finite amount of time. In terms of a Turing machine, a problem is decidable if there is a Turing machine that halts on every input and gives the correct accept/reject answer. Example: 'Is a given number even?' is decidable, because a simple algorithm (checking whether the number is divisible by two) will always terminate with a correct yes or no answer for any number given to it. 2.3 Undecidable (Unsolvable) Problems A problem is undecidable, or unsolvable, if no algorithm exists that can correctly solve it for all possible inputs. This does not mean the problem is merely hard, or that today's computers are too slow. It means that no computer, however fast or powerful, will ever be built that can solve every instance of that problem correctly. 2.4 The Halting Problem The most famous example of an unsolvable problem is the Halting Problem, proven by Alan Turing in 1936. It asks: given an arbitrary computer program P and an input x, can we determine, in general, whether P will eventually stop running (halt) or continue running forever (loop indefinitely)? Turing proved that no general algorithm can exist that solves this problem for every possible program and input. The proof works by contradiction: 14.Assume, for contradiction, that a program called HALTS(P, x) exists, which correctly reports 'yes' if program P halts on input x, and 'no' otherwise.
The theory of solvability draws a firm line between what computers can and cannot do. Decidable problems can always be solved by some algorithm in finite time. Undecidable problems, of which the Halting Problem is the most famous example, can never be solved by any algorithm for all possible inputs, no matter how much computing power is available. This is a foundational result in computer science: it shows that the limits of computation are not merely practical (a matter of speed or memory) but logical and permanent. Conclusion Taken together, the two themes of this paper describe the practical and theoretical boundaries of computing. Methods such as algorithms, pseudocode, and flowcharts give programmers a disciplined way to design correct, working solutions to problems that can be solved. The theory of decidability, illustrated most vividly by the unsolvability of the Halting Problem, reminds us that not every problem can be solved by a computer at all, regardless of how well it is designed or planned for. Understanding both how to solve solvable problems well, and why some problems can never be solved is essential to a proper foundation in computer science.
Britannica. (n.d.). Halting problem. Encyclopaedia Britannica. Retrieved from https://www.britannica.com/technology/halting-problem GeeksforGeeks. (2024). Decidable and undecidable problems in theory of computation. Retrieved from https://www.geeksforgeeks.org/theory-of- computation/decidable-and-undecidable-problems-in-theory-of-computation/ Njoroge, D. Algorithmic problem solving: Using pseudo-codes and flowcharts to represent algorithms. Engineering LibreTexts. Retrieved from https://eng.libretexts.org/ Old Dominion University. Unsolvable problems. Retrieved from https://www.cs.odu.edu/~toida/nerzic/390teched/computability/unsolv-1.html Turing, A. M. (1936/1937). On computable numbers, with an application to the Entscheidungsproblem. Proceedings of the London Mathematical Society, Series 2, Volume 42, pp. 230โ265. Codecademy. Pseudocode and flowchart: A complete beginner's guide. Retrieved from https://www.codecademy.com/article/pseudocode-and-flowchart-complete- beginners-guide