Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Dynamic Programming: Exam Study Guide - Chapter 21, Exams of Information Technology

This study guide covers key concepts and exercises related to dynamic programming, focusing on the shortest-route problem, knapsack problem, and production and inventory control. It includes true/false questions and multiple-choice questions to test understanding of the principles and applications of dynamic programming.

Typology: Exams

2023/2024

Available from 11/02/2024

charleswest
charleswest ๐Ÿ‡บ๐Ÿ‡ธ

4.2

(12)

1.2K documents

1 / 30

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 21: Dynamic
Programming
Best Exam Study Guide Latest
Updated 2024
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download Dynamic Programming: Exam Study Guide - Chapter 21 and more Exams Information Technology in PDF only on Docsity!

Chapter 21: Dynamic

Programming

Best Exam Study Guide Latest

Updated 2024

Best Exam Study Guide Latest Updated

True / False

  1. Dynamic programming requires that its subproblems be independent of one another. a. True b. False ANSWER: False POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.1 A Shortest-Route Problem KEYWORDS: Bloom's: Remember
  2. Dynamic programming, when used for the shortest-route problem, requires complete enumeration of paths from the beginning to ending node. a. True b. False ANSWER: False POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.1 A Shortest-Route Problem KEYWORDS: Bloom's: Remember
  3. The solution of stage k of a dynamic programming problem is dependent upon the solution of stage kโˆ’1. a. True b. False ANSWER: True POINTS: 1 DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Understand
  4. The output of stage k is the input for stage kโˆ’1. a. True b. False

Best Exam Study Guide Latest Updated

TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Understand

  1. State variables are a function of a state variable and a decision. a. True b. False ANSWER: True POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.2 A Dynamic Programming Notation KEYWORDS: Bloom's: Understand
  2. The return function for a shortest-route problem refers to two directional arcs between nodes. a. True b. False ANSWER: False POINTS: 1 DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.1 A Shortest-Route Problem KEYWORDS: Bloom's: Remember
  3. In solving a shortest-route problem using dynamic programming, the stages represent how many arcs you are from the terminal node. a. True b. False ANSWER: True POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.1 A Shortest-Route Problem KEYWORDS: Bloom's: Understand
  4. As opposed to a specific technique such as linear programming, dynamic programming is considered a general approach. a. True

Best Exam Study Guide Latest Updated

b. False ANSWER: True POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21.

Best Exam Study Guide Latest Updated

optimal solution. a. True b. False ANSWER: False POINTS: 1

Best Exam Study Guide Latest Updated

DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.03 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.3 The Knapsack Problem KEYWORDS: Bloom's: Understand

  1. The subscripts used in dynamic programming notation refer to states. a. True b. False ANSWER: False POINTS: 1 DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Remember
  2. In order to use dynamic programming, one must be able to view the problem as a multistage decision problem. a. True b. False ANSWER: True POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Understand
  3. Finding the optimal solution to each stage of a dynamic programming problem will always lead to an optimal solution to the total problem. a. True b. False ANSWER: True POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Understand

Best Exam Study Guide Latest Updated

DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Understand

  1. An input state variable and an output state variable together define the condition of the process at the beginning and end of a stage.

a. True b. False ANSWER: True POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Remember

  1. A knapsack problem is so named because the objective is to find the number of N items, each of which has a different weight and value, that can be placed in a knapsack with limited weight capacity so as to maximize the total value of the items placed in the knapsack. a. True b. False ANSWER: True POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.03 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.3 The Knapsack Problem KEYWORDS: Bloom's: Remember

Multiple Choice

  1. Stages of a dynamic programming solution procedure a. represent parts of a large mathematical model. b. often represent a sequence of decisions made over time. c. are usually not independent of each other. d. All of these are correct. ANSWER: d

Best Exam Study Guide Latest Updated

POINTS: 1

DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.1 A Shortest-Route Problem

Best Exam Study Guide Latest Updated

TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Remember

  1. A return function is a value such as profit or loss associated with making decision dn at a. stage n for a specific value of output variable xn.

Best Exam Study Guide Latest Updated

b. stage n for a specific value of input variable xn. c. stage n for a specific value of stage m. d. input n for a specific value of output variable xn. ANSWER: b POINTS: 1 DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.1 A Shortest-Route Problem KEYWORDS: Bloom's: Understand

  1. If x 3 = t 4 (x 4 ,d 4 ) = x 4 โˆ’ 2d 4 and r 4 (x 4 ,d 4 ) = 16d 4 , the state variable is a. t. b. x. c. r. d. d. ANSWER: b POINTS: 1 DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Analytic TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Apply
  2. If x 3 = t 4 (x 4 ,d 4 ) = x 4 โˆ’ 2d 4 and r 4 (x 4 ,d 4 ) = 16d 4 , the stage transformation function is a. t. b. x. c. r. d. d. ANSWER: a POINTS: 1 DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Analytic TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Apply
  3. If x 3 = t 4 (x 4 ,d 4 ) = x 4 โˆ’ 2d 4 and r 4 (x 4 ,d 4 ) = 16d 4 , the subscripts refer to a. state.

Best Exam Study Guide Latest Updated

POINTS: 1

DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Analytic TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Apply

  1. The knapsack problem is to determine how many units of each item to place in the knapsack to a. minimize total value. b. maximize total value. c. minimize the number of items in the knapsack. d. maximize the number of items in the knapsack. ANSWER: b POINTS: 1 DIFFICULTY: Moderate LEARNING OBJECTIVES: IMS.ASWC.19.21.03 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.3 The Knapsack Problem KEYWORDS: Bloom's: Remember
  2. Solutions in dynamic programming a. are not optimal. b. are unique. c. represent each stage. d. All of these are correct. ANSWER: c POINTS: 1 DIFFICULTY: Easy LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Reflective Thinking TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Understand

Subjective Short Answer

  1. Find the shortest path through the following network using dynamic programming.

Best Exam Study Guide Latest Updated

ANSWER:

STAGE 1

Input Node Decision Arc Shortest Distance 8 8โˆ’10 4 9 9โˆ’10 3 STAGE 2 Input Node Decision Arc Shortest Distance 5 5โˆ’9 6 6 6โˆ’8 10 7 7โˆ’8 11 STAGE 3 Input Node Decision Arc Shortest Distance 2 2โˆ’5 16 3 3โˆ’5 13 4 4โˆ’6 17 STAGE 4 Input Node Decision Arc Shortest Distance 1 1โˆ’4 19 POINTS: 1 DIFFICULTY: Challenging LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21. NATIONAL STANDARDS: United States - BUSPROG: Analytic TOPICS: 21.1 A Shortest-Route Problem KEYWORDS: Bloom's: Analyze

  1. Audio Disks will be opening outlets in the greater Phoenix area. The estimated sales at each store are dependent not only on the store location, but also on the number of sales personnel, as presented in the table below ($1000s/year). Each store requires at least two salespeople, and a pool of nine salespeople is available.

Staff Size 3 4 5 Store 1 60 85 90 100 Store 2 105 120 130 150 Store 3 120 145 160 175

Best Exam Study Guide Latest Updated

stage (store).

b.

c. Alternate optimal solutions: Store Salespeople Sales Salespeople Sales 1 2 3

Total sales 350 350

POINTS: 1 DIFFICULTY: Challenging LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Analytic TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Evaluate

  1. Consider the following integer linear program:

Max (^) 5x 1 + 7x 2 + 9x 3 s.t. (^) 2x 1 + 3x 2 + 4x 3 โ‰ค 8 x 1 โ‰ค 3 x 2 โ‰ค 2 x 1 , x 2 , x 3 โ‰ฅ 0, integer

a. Set up the network that represents the dynamic programming formulation. b. Solve the problem using dynamic programming. ANSWER:

Best Exam Study Guide Latest Updated

a.

b. (^) x 1 = 1, x 2 = 2, x 3 = 0 POINTS: 1 DIFFICULTY: Challenging LEARNING OBJECTIVES: IMS.ASWC.19.21.02 - 21. NATIONAL STANDARDS: United States - BUSPROG: Analytic TOPICS: 21.2 Dynamic Programming Notation KEYWORDS: Bloom's: Create

  1. A driver wants to make a trip from city 1 to city 7. The road mileage between cities is given below. Find the shortest route.

To City From City 1 2 3 4 5 6 7 1 โˆ’ 2 2 4 โˆ’ โˆ’ โˆ’ 2 โˆ’ โˆ’ โˆ’ โˆ’ 4 10 โˆ’ 3 โˆ’ โˆ’ โˆ’ โˆ’ 12 6 โˆ’ 4 โˆ’ โˆ’ โˆ’ โˆ’ 10 โˆ’ โˆ’ 5 โˆ’ โˆ’ โˆ’ โˆ’ โˆ’ โˆ’ 14 6 โˆ’ โˆ’ โˆ’ โˆ’ โˆ’ โˆ’ 2 7 โˆ’ โˆ’ โˆ’ โˆ’ โˆ’ โˆ’ โˆ’

ANSWER: 1-3-6-7; 13 miles POINTS: 1 DIFFICULTY: Challenging LEARNING OBJECTIVES: IMS.ASWC.19.21.01 - 21. NATIONAL STANDARDS: United States - BUSPROG: Analytic TOPICS: 21.1 A Shortest-Route Problem KEYWORDS: Bloom's: Evaluate