Sunday, November 3, 2019

Problem Solving College Essay Example | Topics and Well Written Essays - 750 words

Problem Solving College - Essay Example In problem solving one should explore all options one by one until you come across the best one. However, in general, as one gains experience in solving problems, one develops one's own techniques and strategies, though they are often intangible. The computer is not an intelligent machine. It does not have the ability to think about the solution of the problem. Our task is to provide a series of steps, which when written in a programming language becomes a code. The computer runs the code for the solution. The good part is that the computer can run the solution consistently, again and again once we have written the code, saving us from the tedious and boring work. Programs are written to solve problems posed by people. The difficulty of writing the programs is driven by the difficulty of the problems. The difficulty of the problems is limited by the imagination of the people posing the problems. Now we'll see how problem solving by programming is difficult. Programming is a complex skill that takes time to master. To solve a specific problem via programming, you need to understand the nature of the problem. Think about the solution of the problem. Then we will choose a programming language. You need to have knowledge of the programming language you decide to use. ... Depending on the nature of the task problem solving can either be easy or difficult. Let's take a very simple example of finding the largest number from a given list of unsorted numbers. We can easily solve this problem manually, provided the given list of numbers is not too big. If we have to solve the same problem using programming then it is not so easy .We will have to explain the computer all the steps one by one and code it for the compiler to run the solution. Similarly, if we have a list of numbers which is very big, say ten thousand numbers and we have to find the maximum one so it would be easier to write a code for the problem rather than going through the whole list. There are many ways to find the maximum number in a given list of unsorted numbers. We will discuss one of the ways to solve it. Our first step would be to consider the first number as the largest. We will save that number in a temporary location .Then we will compare it with all the other numbers in the list and if we encounter any number greater than the number stored in our temporary location, we will update our location. The last noted item in our memory location is the largest in the list when the process is complete. Hence, we can say that it depends on the nature of the task whether problem solving is difficult with programming or not. Similarly, we consider another example of a factorial generating program. We can easily calculate the factorial of a small number in our minds but think about a program that will return you the factorial of any number you want. It can be as large as you want because you don't have to worry about the computations. The computer is going to

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.