Professional Documents
Culture Documents
01C Algorithms V Heuristics
01C Algorithms V Heuristics
In problem solving, there are many approaches people can take. Through
experience, people know that different types of problems must be approached
in different ways. By identifying the type of problem it is, people have an idea of
which method to use, which stems to take, in solving the problem.
Burt Block Says. . . .
ALGORITHMS
Some types of problems are best approached with algorithms. An algorithm is a step-by-step
procedure that, will always lead to the solution of a problem. Formulas are examples of algorithms.
Many algorithms are complex and time consuming. One type of algorithm is called a systematic
search. In a systematic search, each possible solution to a problems is tried and tested.
Algorithms are a step by step process that always work to solve
1. What are algorithms? ___________________________________________________________
problems. specific
______________________________________________________________________________
HEURISTICS
Algorithms work, but are not always practical. In the previous example, suppose
Burt was missing two letters, not one(S _ _ N). In order to have success with the
systematic search, Burt would have to try every letter of he alphabet in each of
the two spaces, but he would have to fill in one of them with a placeholder while
he tried letter after letter in the other space.
For example: Burt would first have to fill the first blank space with an A, then he would have to run
through all 26 letters in the second blank space. And when that did not work, he would
have to try B in the first space and repeat. In order the find the correct answer, S H U
S N N, he would have to run through hundreds of possible solutions. It would eventually
work, but it would take so much time that Burt would probably just give up. Poor Burt.
Heuristics are simpler thinking strategies that often, but not always, help us find the solution to
a problem. They are shortcuts.
In Burt’s puzzle where their is only one missing letter, Burt would probably use the following
heuristic: “Huh” Says Burt, “S, H, N are all consonants. The letter missing is probably a vowel.”
Burt would only then just have to use the 5 vowels to get the correct answer. For the second
example in which two letters were missing, Burt may try to find letters that are often used with S,
like SH and discover the correct answer, SHUN. But what the answer was actually STUN? Burt’s
heuristic could have directed him to the wrong answer.
Heuristics are easier strategies that people use to try and find the
3. What are heuristics? ____________________________________________________________
to a problem howeversolution
they do not always
______________________________________________________________________________
work.
simpler
4. Heuristics are ______________________ than algorithms, but they are not as reliable.
ALGORITHMS I
& HEURISTICS PROBLEM
SOLVING!
Complete the following chart
10. Burt is cold. He heard on the radio that it was -7° Celsius. He has no idea what that means.
Algorithm
So, using a formula, Burt converts the temperature to Fahrenheit._____________________
11. Burt has forgotten all but the middle two letters of his computer password. Oh Burt. He
decides to insert every combination of letters in the missing spaces to try to find his password.
Algorithm
____________________________________________________________________________
Heuristic
12. Burt is playing chess with his friend Barry. Burt is losing. _______________________________
13. When Burt used to study for exams, he would study just his notes and ignore studying from the
Heuristic
book. He thought it took too long. _________________________________________________
14. Burt lost his wallet. He remembers seeing it Sam’s house the night before. So Burt retraces
Algorithm
every step he has taken since that time. ____________________________________________
15. Burt lost his wallet. . . again. This time he goes to all the places where he has left his wallet in
Heuristic
the past hoping to find it._________________________________________________________