



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!




A(n) _______________ is a set of instructions for solving a problem in a finite amount of time using a finite amount of data. - - ANSWER - algorithm A problem _______________ is produced during the first phase of computer-based solutions that fully describes the problem to be solved. -
How many comparisons does it take using a binary search to find the value 9 in the following array? Assume that when first + last is odd, the expression (first + last) / 2 is rounded down to the nearest integer [e.g. (5+0)/2 has the value 2]. [0] [1] [2] [3] [4] [5] 1 9 11 12 17 23 - - ANSWER - During the _______________ phase, an algorithm is translated into a programming language. - - ANSWER - Who wrote the book How to Solve It, which outlines a general approach to problem solving? - - ANSWER -George Polya A(n) _________________ search looks for an item sorted list by eliminating large portions of the data on each comparison. - - ANSWER - Why is the following not a good example of an algorithm? Open car door Get into car Insert key in ignition Turn key While engine not running Start car
A(n) _______________ search does not require that the list be sorted. -
How many comparisons will be needed using a binary search to find the value 69 in the following array? Assume that when first + last is odd, the expression (first + last) / 2 is rounded down to the nearest integer [e.g. (5+0)/2 has the value 2]. [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] 14 27 29 38 42 55 57 61 64 69 77 79 84 - - ANSWER - Which of the following is the ability for a subprogram to call itself? -
True or False? Algorithms cannot be tested until they are realized in a computer-based programming language. - - ANSWER - Are the following directions for shampooing hair a good example of an algorithm? Explain. Rinse hair Put shampoo on hair Lather Repeat - - ANSWER - True or False? A plan for solving a problem is not an algorithm if it requires infinite time or data. - - ANSWER -