模拟退火算法解决np

P问题 (P Problems)

P is the set of all the decision problems solvable by deterministic algorithms in polynomial time.

P是多项式时间内确定性算法可解决的所有决策问题的集合。

NP问题 (NP Problems)

NP is the set of all the decision problems that are solvable by non - deterministic algorithms in polynomial time.

NP是可由多项式时间内的非确定性算法解决的所有决策问题的集合。

Since deterministic algorithms are just the special case of non - deterministic ones, so we can conclude that P is the subset of NP.

由于确定性算法只是非确定性算法的特例,因此我们可以得出结论,P是NP的子集。

Relation between P and NP

P和NP之间的关系

NP难题 (NP Hard Problem)

A problem L is the NP hard if and only if satisfiability reduces to L. A problem is NP complete if and only if L is the NP hard and L belongs to NP.

当且仅当可满足性降低到L时,问题L才是NP难。只有当L是NP难且L属于NP时,问题NP才是完整的。

Only a decision problem can be NP complete. However, an optimization problem may be the NP hard. Furthermore if L1 is a decision problem and L2 an optimization problem, then it is possible that L1 α L2. One can trivially show that the knapsack decision problem reduces to knapsack optimization problem. For the clique problem one can easily show that the clique decision problem reduces to the clique optimization problem. In fact, one can also show that these optimization problems reduce to their corresponding decision problems.

只有决策问题才能完成NP。 但是,优化问题可能是NP难题。 此外,如果L1是决策问题,L2是优化问题,则L1αL2是可能的。 可以简单地表明,背包决策问题可以简化为背包优化问题。 对于群体问题,可以很容易地表明,群体决策问题可以简化为群体优化问题。 实际上,还可以证明这些优化问题可以简化为相应的决策问题。

NP完整性问题 (NP Completeness Problem)

Polynomial time reductions provide a formal means for showing that one problem is at least as hard as another, within a polynomial time factor. This means, if L1 <= L2, then L1 is not more than a polynomial factor harder than L2. Which is why the “less than or equal to” notation for reduction is mnemonic. NP complete are the problems whose status are unknown.

多项式时间缩减提供了一种形式化的方法,用于显示在多项式时间因子内一个问题至少与另一个问题一样困难。 这意味着,如果L1 <= L2,则L1不大于比L2难的多项式因数。 这就是为什么“小于或等于”减少表示法是助记符的原因。 NP完全是状态未知的问题。

Some of the examples of NP complete problems are:

NP完全问题的一些示例是:

1. Travelling Salesman Problem:

1. 旅行商问题 :

Given n cities, the distance between them and a number D, does exist a tor programme for a salesman to visit all the cities so that the total distance travelled is at most D.

给定n个城市,它们之间的距离与数字D确实存在一个推销员计划,以供销售人员访问所有城市,这样总行驶距离最多为D。

2. Zero One Programming Problem:

2.零编程问题:

Given m simultaneous equations,

给定m个联立方程,

3. Satisfiability Problem:

3.满意度问题:

Given a formula that involves propositional variables and logical connectives.

给定一个涉及命题变量和逻辑连接词的公式。

A language L is the subset [0, 1]* is NP complete if,

语言L是子集[0,1] *是NP完整,如果,

  1. L belongs to NP and

    L属于NP

  2. L' ← L for every L' belongs to NP

    L'←L每L'都属于NP

All NP complete problems are NP hard, but some NP hard problems are not known to be NP complete.

所有的NP完全问题都是NP困难的,但是某些NP困难问题并不是NP完全的。

If NP hard problems can be solved in polynomial time, then all the NP complete problems can be solved in polynomial time.

如果NP难题可以在多项式时间内解决,那么所有NP完全问题都可以在多项式时间内解决。

翻译自: https://www.includehelp.com/algorithms/p-and-np-problems.aspx

模拟退火算法解决np

模拟退火算法解决np_P和NP问题与解决方案| 演算法相关推荐

  1. 贪心算法解决最优装载问题c语言,贪心算法解决最优装载问题

    <贪心算法解决最优装载问题>由会员分享,可在线阅读,更多相关<贪心算法解决最优装载问题(4页珍藏版)>请在人人文库网上搜索. 1.author : Kevin Black/这个 ...

  2. Pohlig-Hellman算法解决DLP问题

    Pohlig-Hellman算法解决DLP问题及Python实现 InstructionInstructionInstruction Pohlig-Hellman算法适用于求解特定条件下的DLP问题( ...

  3. 模拟退火算法——解决售货员的难题

    模拟退火算法--解决售货员的难题 分类: 解题报告 其他2010-11-22 23:20 1000人阅读 评论(2) 收藏 举报 算法优化outputgraphinputc Simulation An ...

  4. 模拟退火(SA, Simulated Annealing)算法解决旅行商TSP问题

    01 什么是旅行商问题(TSP)? TSP问题(Traveling Salesman Problem,旅行商问题),由威廉哈密顿爵士和英国数学家克克曼T.P.Kirkman于19世纪初提出.问题描述如 ...

  5. 【算法】模拟退火算法解决TSP问题的matlab实现

    [算法]模拟退火算法解决TSP问题的matlab实现 参考文章: (1)[算法]模拟退火算法解决TSP问题的matlab实现 (2)https://www.cnblogs.com/wenyehoush ...

  6. 模拟退火算法解决TSP问题

    模拟退火算法解决TSP问题 参考文章: (1)模拟退火算法解决TSP问题 (2)https://www.cnblogs.com/yangmingustb/p/8641124.html (3)https ...

  7. 使用模拟退火算法解决TSP问题

    1.实验目的 掌握模拟退火算法解决旅行商问题的方法. 2.实验环境 Matlab 3.实验内容 使用模拟退火算法解决14个城市的TSP问题,使得从一个城市出发,遍历所有城市回到起点的路线最短.已知14 ...

  8. java开发模拟退火算法解决函数最值!

    在众多搜索算法之中,模拟退火是一种搜索性的算法,但是它的缺点在于收敛性比较弱. 这里主要运用模拟退火算法解决函数y=xsin(10xpi)+2的最优值问题. 代码及算法原理如下: /********* ...

  9. 模拟退火算法解决工作指派问题(c++代码实现)

    最近学习到模拟退火算法,遇到工作指派问题,但是查到网上的c++代码并不能解决问题,于是在它的基础上进行修改,完美解决了4工作4工人工作指派问题. 一.问题概述与分析 1.工作指派问题: n个工作可以由 ...

最新文章

  1. Error: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8‘ not found (required by /usr/anaconda3/bin/)
  2. Error: pgraster_wkb_reader: grayscale band type 10 unsupported
  3. js浏览器窗口大小改变时事件
  4. qss样式表笔记大全(一):qss名词解析(包含相关示例)
  5. [设计模式]中介者模式之Events消息传递实现
  6. 【定时同步系列3】8PSK调制+OM定时+信号分段处理+误码率曲线之MATLAB仿真(实信号模型)
  7. java调用jndi出错,无法使用Java JNDI上下文查找来访问对象
  8. php 观察者模式怎么用,php怎么实现观察者模式
  9. Scala初步学习(二)
  10. 二、K8s Cluster详细安装步骤
  11. 0x07 MySQL 多表查询
  12. java工程师可能需要的视频
  13. python毕业设计作品基于django框架 景区购票系统毕设成品(6)开题答辩PPT
  14. 华为p20位置服务器在哪打开,华为p20在哪里打开北斗定位 | 手游网游页游攻略大全...
  15. 付呗聚合支付快速教程 基础篇②——FubeiUtils付呗工具类(封装参数和签名规则)
  16. 计算机电子科技生产质量标准,SJT9527-1993微型数字电子计算机质量分等标准.pdf...
  17. 计算机主机结构和名称图,计算机结构图
  18. Verilog HDL系统任务说明语句task
  19. unity 上架google play 包体超过150M
  20. 怎么将项目上传到git仓库(gitee)

热门文章

  1. [Vulhub](WooYun-2016-199433)phpmyadmin反序列化漏洞
  2. 修改mysql 外删除用户_mysql添加用户、删除用户、授权、修改密码等
  3. 阿里云mysql创建多个用户_阿里云MySQL创建指定用户访问指定表
  4. java 线程 Thread Runnable 实现样例
  5. 会计用计算机很快是,40个超实用电脑快捷键,老会计都在用
  6. DAY77-Django框架(八)
  7. javascript的浏览器Bom详解,window、location、history对象
  8. swift入门之TableView
  9. C#反射Assembly 具体说明
  10. Android下拉刷新完全解析,教你如何一分钟实现下拉刷新功能 (转)