第一章 算法在计算机中的作用

 

什么是算法 What are 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.

 

 

算法的简单(非正式)定义

 

在定义算法前需要定义什么是一个定义良好的计算过程

 

1.       一个定义良好的计算过程

a)         该计算过程有一些值或者一组值作为输入

b)         该计算过程对输入进行计算(这就是算法)

c)         该计算过程有一些值或者一组值作为输出

 

2.       一个算法就是把输入转化为输出的一系列运算。

 

为什么要学习算法Why is the study of algorithms worthwhile?

我的理解:

 

算法在各个方面,各个领域都有应用,解决一个问题的步骤就是算法,你不需要解决问题吗?如果想更好的解决一个问题就需要学习好的算法,学习算法会提升人的价值,别人不能做的事,或者做的失败的事,也许你就能做。解决问题的方法不同造成了人的差别,就算你不是做计算机的,也要学习相关领域的‘算法’。

 

算法和其他技术的关系 What is the role of algorithms relative to other technologies used in computers?

You might wonder whether algorithms are truly that important on contemporary computers in light of other advanced technologies, such as

hardware with high clock rates, pipelining, and superscalar architectures,

easy-to-use, intuitive graphical user interfaces (GUIs),

object-oriented systems, and

local-area and wide-area networking.

 

习题解答:

Exercises 1.2-2

 

求出n的方程2^n/8 < n,用计算器求得2 <= n <= 43

 

思考题

F(n)=t,求出n,注意1微秒 * 1000000 = 1m

 

 

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值