zoukankan      html  css  js  c++  java
  • 组合优化的一般模型

    一、P vs. NP
    • P: 能在多项式时间内解决的问题。
    • NP: 不能在多项式时间内解决或不确定能不能在多项式时间内解决,但能在多项式时间验证的问题。
    • NPC: NP完全问题,所有NP问题在多项式时间内都能约化(Reducibility)到它的NP问题,即解决了此NPC问题,所有NP问题也都得到解决。
    • NP hard:NP难问题,所有NP问题在多项式时间内都能约化(Reducibility)到它的问题(不一定是NP问题)。
    二、SAT问题
    • 应用:

    Hardware Model Checking(All major hardware companies (Intel, ...) use SAT sovler to verify their chip desgins)
    Software Verification
    1.SAT solver based SMT solvers are used to verify Microsoft software products
    2.Embedded software in Cars, Aiplanes, Refrigerators, ...
    3.Unix utilities
    Automated Planning and Scheduling(Still one of the best approaches for optimal planning)
    Number Theoretic Problems (Pythagorean Triples)
    **Solving other NP-hard problems **(coloring, clique, ...)

    • Who is Lying

    Questions:
    A: B is lying.
    B: C is lying.
    C: A and B is lying.
    so, who is not lying?
    Encoding:
    3 variables: a, b, c present A, B, C speak truth, while ¬a, ¬b, ¬c present lying.

    **clauses: **

    a V b V c ; %at least one speak truth.
    ¬ a V ¬ b; a V b; %a-> ¬b, ¬a -> b
    ¬ b V ¬ c; b V c; %b-> ¬c, ¬b -> c
    ¬ c V ¬ a; ¬c V ¬b; c V a V b %c->(¬aꓥ ¬b), ¬c->¬ (¬aꓥ ¬b)
    result: ¬a, b, ¬c
    b speaks truth, a, c are lying

    • MaxSAT问题

    对于某些问题,是不可满足的。那么需要关注如何尽可能地满足,即 MaxSAT。

    • Partial MaxSAT

    满足所有的硬子句(hard clauses),尽可能地满足软子句(soft clauses)。

    • Weighted Partial MaxSAT

    满足所有的硬子句(hard clauses)和最大权重的软子句(soft clauses)

    • Satisfiability Modulo Theories (SMT)
      参考
  • 相关阅读:
    VUE组件间传参
    JS-03 (RegExp对象&字符串总结)
    JS-02 (字符串的正则函数)
    理解 C++ 的 Memory Order
    GCC的原子操作函数
    barrier内存屏障
    tcp重传机制,流量控制,拥塞控制
    TCP 的拥塞控制
    Monitoring and Tuning the Linux Networking Stack: Receiving Data
    kernel网络之软中断
  • 原文地址:https://www.cnblogs.com/zhangyazhou/p/13376388.html
Copyright © 2011-2022 走看看