五大常用计算机算法,计算机算法设计五大常用算法的分析和实例.doc

. .

摘要

算法(Algorithm)是指解题方案的准确而完整的描述.是一系列解决问题的清晰 指令.算法代表着用系统的方法描述解决问题的策略机制。也就是说.能够对一定规范的 输入.在有限时间内获得所要求的输出。如果一个算法有缺陷.或不适合于某个问题.执行这个算法将不会解决这个问题。不同的算法可能用不同的时间、空间或效率来完成同样的任务。

其中最常见的五中基本算法是递归与分治法、动态规划、贪心算法、回溯法、分支限界法。本文通过这种算法的分析以及实例的讲解.让读者对算法有更深刻的认识.同时对这五种算法有更清楚认识

关键词: 算法. 递归与分治法、动态规划、贪心算法、回溯法、分支限界法

Abstract

Algorithm is the?description to the problem solving scheme?,a set of clear instructions to solve the problem and represents the describe the strategy to solve the problem using the method of system mechanism . That is to say, given some confirm import.the Algorithm will find result In a limited time。If an algorithm is defective or is not suitable for a certain job, it is invalid to execute it. Different algorithms have different need of time or space, and it's efficiency are different.

There are most common algorithms: the recursive and divide and conquer、 dynamic programming method、 greedy algorithm、 backtracking、 branch and bound method.According to analyze the five algorithms and explain examples, make readers know more about algorithm , and understand the five algorithms more deeply.

Keywords: Algorithm, the recursive and divide and conquer, dynamic programming method, greedy algorithm、 backtracking, branch and bound method

目录

TOC \o "1-3" \h \z \u 1. 前言 4

1.1 论文背景 4

2. 算法详解 5

2.1 算法与程序 5

2.2 表达算法的抽象机制 5

2.3 算法复杂性分析 5

3.五中常用算法的详解及实例 6

3.1 递归与分治策略 6

3.1.1 递归与分治策略基本思想 6

3.1.2 实例——棋盘覆盖 7

3.2 动态规划 8

3.2.1 动态规划基本思想 8

3.2.2 动态规划算法的基本步骤 9

3.2.3 实例——矩阵连乘 9

3.3 贪心算法 11

3.3.1 贪心算法基本思想 11

3.3.2 贪心算法和动态规划的区别 12

3.3.3 用贪心算法解背包问题的基本步骤: 12

3.4 回溯发 13

3.4.1 回溯法基本思想 13

3.3.2 回溯发解题基本步骤 13

3.3.3 实例——0-1背包问题 14

3.5 分支限界法 15

3.5.1 分支限界法思想 15

3.5.2 实例——装载问题 16

总结 18

参考文献 18

1. 前言

1.1 论文背景

算法(Algorithm)是指解题方案的准确而完整的描述.是一系列解决问题的清晰 指令.算法代表着用系统的方法描述解决问题的策略机制。也就是说.能够对一定规范的 输入.在有限时间内获得所要求的输

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值