Docsity

Algorithmic Problem Solving, Lecture Notes - Mathematics - 17, Study notes of Mathematics|, Exams of Nursing

Toggle sidebar
bg1
Algorithmic Problem Solving, Lecture Notes -
Mathematics - 17, Study notes of Mathematics|, Exams
of Nursing |LATEST 2026/2027 EXAM UPDATE |
GRADED A+| ASSURED PASS
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. -
-ANSWER-specification
True or False? The approach to problem solving developed by George
Polya is valuable, but does not apply to computer-based solutions. -
-ANSWER-False
What is the first step in the How to Solve It list? - -ANSWER-
understand the problem
The situation, known as a(n)________________, occurs when a
subprogram keeps calling itself until the run-time support system runs
out of memory. - -ANSWER-infinite recursion
A(n) _______________ is a named heterogeneous collection of items in
which individual items are accessed by name. - -ANSWER-
pf3
pf4
pf5

Partial preview of the text

Download Algorithmic Problem Solving, Lecture Notes - Mathematics - 17, Study notes of Mathematics| and more Exams Nursing in PDF only on Docsity!

Algorithmic Problem Solving, Lecture Notes -

Mathematics - 17, Study notes of Mathematics|, Exams

of Nursing |LATEST 2026/2027 EXAM UPDATE |

GRADED A+|ASSURED PASS

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. -

  • ANSWER -specification True or False? The approach to problem solving developed by George Polya is valuable, but does not apply to computer-based solutions. -
  • ANSWER -False What is the first step in the How to Solve It list? - - ANSWER - understand the problem The situation, known as a(n)________________, occurs when a subprogram keeps calling itself until the run-time support system runs out of memory. - - ANSWER -infinite recursion A(n) _______________ is a named heterogeneous collection of items in which individual items are accessed by name. - - ANSWER -

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 Go to work - - ANSWER -

A(n) _______________ search does not require that the list be sorted. -

  • ANSWER - List the four primary steps in the top-down methodology. - - ANSWER - _______________ is the process of working through a design with a pencil and paper to test an algorithm. - - ANSWER - A(n) _______________ search examines each item in turn to find the item being sought. - - ANSWER - Why is it appropriate to consider how a problem is solved by hand prior to considering how it might be solved by a computer? - - ANSWER - Which of the following best describes top-down design? - - ANSWER - Show the state of the following array after the outer loop of the selection sort algorithm has executed two times. [0] [1] [2] [3] [4] [5] 12 1 9 23 17 11 - - ANSWER - 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? -

  • ANSWER - After a program is in use, changes made to it to enhance functionality or fix errors is called _______________. - - ANSWER - A(n) _______________ is an instruction that determines the order in which other instructions in a program are executed. - - ANSWER - Explain the "Divide and Conquer" problem-solving strategy. -
  • ANSWER - True or False? An algorithm is a calculation that determines how long it will take to solve a problem - - ANSWER - Show the state of the following array after the outer loop of the insertion sort algorithm has executed two times.

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 -