AI智能整理导入 AI智能整理导入
×
首页 题库中心 计算机英语专业知识 题目详情
CA02DAA2E3E0000158DDBC801AB614F8
计算机英语专业知识
2,830
单选题

202、Algorithms designed using dynamic programming are similar to those developed using divide-and-conquer in that both solve a problem by breaking it down into several subproblems that can be solved recursively.The difference between the two is that in the dynamic programming approach, the results obtained from solving smaller subproblems are reused in the calculation of larger subproblems.Thus, dynamic programming is a bottom-up technique that usually begins by solving the smallest subproblems, saving these results, and then reusing them to solve larger and larger subproblems until the solution to the original problem is obtained.This is in contrast to the divide-and-conquer approach, which solves problems in a top-down fashion.In this case the original problem is solved by breaking it down into increasingly smaller subproblems, and no attempt is made to reuse previous results in the solution of any of the subproblems.It is important to realize that a dynamic programming approach is only justified if there is some degree of overlap in the subproblems.The underlying idea is to avoid calculating the same result twice.This is usually accomplished by constructing a table in memory, and filing it with known results as they are calculated.These results are they used to solve larger subproblems.Dynamic programming is often used to solve optimization problems.In an optimization problem, there are typically a large number of possible solutions, and each has a cost associated with it.The goal is to find a solution that has the smallest cost -- this is referred to as an optimal solution.(4)、which of the following statements is true?

A
 In an optimization problem, there are typically a few possible solutions.
B
  You can use dynamic algorithm approach anytime.
C
 The underlying idea of divide-and-conquer algorithm is to avoid calculating the same result twice.
D
  In a dynamic algorithm approach, previous result of subproblems need to be saved.

答案解析

正确答案:D
计算机英语专业知识

扫码进入小程序
随时随地练习

关闭
专为自学备考人员打造
试题通
自助导入本地题库
试题通
多种刷题考试模式
试题通
本地离线答题搜题
试题通
扫码考试方便快捷
试题通
海量试题每日更新
试题通
欢迎登录试题通
可以使用以下方式扫码登陆
试题通
使用APP登录
试题通
使用微信登录
xiaochengxu
联系电话:
400-660-3606
xiaochengxu