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.(1)、When you meet a problem with some degree of overlap in the subproblems, which algorithm may work best?

A
 Brute-force algorithm
B
 Dynamic algorithm
C
 Greedy algorithm
D
 Divide-and-Conquer algorithm

答案解析

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

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

关闭登录弹窗
专为自学备考人员打造
勾选图标
自助导入本地题库
勾选图标
多种刷题考试模式
勾选图标
本地离线答题搜题
勾选图标
扫码考试方便快捷
勾选图标
海量试题每日更新
波浪装饰图
欢迎登录试题通
可以使用以下方式扫码登陆
APP图标
使用APP登录
微信图标
使用微信登录
试题通小程序二维码
联系电话:
400-660-3606
试题通企业微信二维码