资源简介
1.1 Algorithms
Informally, an algorithm is any well-defined computational procedure that takes
some value, or set of values, as input and produces some value, or set of values, as
output. An algorithm is thus a sequence of computational steps that transform the
input into the output.
We can also view an algorithm as a tool for solving a well-specified computational
problem. The statement of the problem specifies in general terms the desired
input/output relationship. The algorithm describes a specific computational procedure
for achieving that input/output relationship.
For example, we might need to sort a sequence of numbers into nondecreasing
order. This problem arises frequently in practice and provides fertile ground for
introducing many standard design techniques and analysis tools. Here is how we
formally define the sorting problem:
Input: A sequence of n numbers ha1; a2; : : : ;ani.
Output: A permutation (reordering) ha0
1; a0
2; : : : ; a0
ni of the input sequence such
that a0
1 a0
2 a0
n.
For example, given the input sequence h31; 41; 59; 26; 41; 58i, a sorting algorithm
returns as output the sequence h26; 31; 41; 41; 58; 59i. Such an input sequence is
called an instance of the sorting problem. In general, an instance of a problem
consists of the input (satisfying whatever constraints are imposed in the problem
statement) needed to compute a solution to the problem.
代码片段和文件信息
- 上一篇:西门子PLM系统介绍
- 下一篇:宏宇word修复向导V2.000.9 破解版
相关资源
- 图像去噪英文原文+翻译
- 文泉驿中英文字体库支持qt4和qt5
- an-introduction-to-optimization-4th-
- The.Art.of.UNIX.programming.pdf(英文版)
- Turbulence (1995 Uriel Frisch-Cambridge )
- hibernate_validator_官方文档中文&英文版
- Aggregate Channel Features for Multi-view Face
- 摄像机标定两篇经典论文英文原版
- 关于深度学习的中英文文献资源5篇
- Spring Boot 文档中英文
- 模式分类Pattern Classification第二版英文
- 算法设计与分析原理Anany Levitin著第三
- 30天软件开发:告别瀑布拥抱敏捷 英文
- MLX90621驱动程序及中英文参考手册
- 华尔街日报沙中英文双语对齐资源
- 在线考试系统-英文版
- DICONDE的英文标准及其他文献
- 4.Cortex-M3技术参考手册-r1p1英文版
- clean code高清英文版pdf
- Google-GFSBigtableMapreduce三大论文英文原
- KC84最新说明书-有线版中英文.jpg
- 基于深度学习的电动汽车智能充电需
- fileZilla_Server 中文版与英文版
- 英文词库.txt
- 英文版CCNP+TSHOOT+300-135学习指南.pdf
- 计算机组成原理英文版第八版
- Niagara驱动开发英文版+中文版自己学习
- 代码本色英文版配套程序
- Mastering the game of Go without human knowled
- 鲁棒控制 ESSENTIALS OF ROBUST CONTROL
评论
共有 条评论