exact algorithm 精确算法

原文:
The phrase exact algorithm is used when talking about an algorithm that always finds the optimal solution to an optimization problem. (As opposed to heuristics that may sometimes produce worse solutions. A subset of these are the approximation algorithms – those are the ones where we can prove a guaranteed bound on the ratio between the optimal solution and the solution produced by the algorithm.)

For hard optimization problems (especially NP-hard ones) it is often the case that there are some polynomial-time approximation algorithms, but the best known exact algorithms require exponential time.

For example, there is a simple polynomial-time 2-approximation algorithm for Vertex Cover, but if you need an exact algorithm, the best one we know runs in, IIRC, O(1.1889 n ) . (Vertex Cover is also fixed-parameter tractable, but that’s a topic for another day.)

精确算法是指在最优化问题中,一个算法总是能找到最优解,(是相对于启发式算法来说的,启发式算法往往找到的不是最优解,启发式算法的一个子集是近似算法,近似算法的结果与最优解的比例有一个约束值,相当于误差范围,这个约束值是可以被证明的。)

NP hard问题往往有很多时间复杂度为多项式的近似算法,但是对应的精确算法的时间复杂度往往是指数级别的。

例如在定点覆盖问题中,有近似度为2的多项式复杂度近似算法,但是精确算法的时间复杂度为 O(1.1889n)

原地址:http://www.quora.com/What-is-the-definition-of-exact-algorithm-in-Computer-Science

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值