- 6
- 0
- 约1.06万字
- 约 38页
- 2017-07-02 发布于湖北
- 举报
Chapter8算法概论概要1
8.3 The reductions * * SAT ? 3SAT Reduction: any clause Right satisfied ? left satisfied (One of a1,…, ak must be true) Otherwise (All of a1,…, ak are false) y1 must be true, y2 must be true, …, yk-3 must be true False the last clause (Right unsatisfied ) Left satisfied Some ai must be true Set y1,…, yi-2 to true and the rest to false Right satisfied 8.3 The reductions * * INDEPENDENT SET ? VERTEX COVER Reduction: a set of nodes S is a vertex cover of graph G = (V, E) (S touches every edge in E) if and only if the remaining nodes, V-S, are an independent set of G An instance (G, g) of INDEPENDENT SET reduces to a vertex cover of G with |V|-g nodes INDEPENDENT SET ? CLIQUE Reduction: a set of nodes S is an independent set of G if and only if S is a clique of ,where contains those unordered pairs of vertices that are not in E 8.3 The reductions * * ANY PROBLEM IN NP?SAT (1) NP problem reduce to CIRCUIT SAT A dag whose vertices are gates of five different types AND gates and OR gates have indegree 2 NOT gates have indegree 1 Known input gates have no incoming edges and are labeled false or true Unknown input gates have no incoming edges and labeled “?” CIRCUIT SAT is a search problem Given a circuit, find a truth assignment for the unknown inputs such that the output gate evaluates to true, or not exist (2) CIRCUIT SAT reduce to SAT 8.3 The reductions * * 8.3 The reductions * * (1) NP problem reduce to CIRCUIT SAT CIRCUIT SAT is a generalization of SAT AND gates at the top – clauses – the OR of literals Literal – unknown input gate or NOT gate Given an instance I of NP problem A, construct a circuit in polynomial time Known inputs are the bits of I Unknown inputs are the bits of S The output is true if and only if the unknown inputs spell a solution S of I The satisfying truth assignments to the unknown inputs of the circuit are in one-to-one correspondence with the solutions of I. 8.3 The reductions * * (2) CIRCUIT SAT r
您可能关注的文档
- Chapter1 Static Games of Complete Information(博弈论浙江大学)概要1.ppt
- chapter1 introduction概要1.ppt
- Chapter10概要1.ppt
- chapter 3跨文化课件概要1.ppt
- Chapter11 FIELD EQUATIONS AND BOUNDARY CONDITIONS IN FLUID MECHANICS.ppt东鹏已改cyt已改概要1.pptx
- chapter10 Investment, Net Exports, and Interest Rates(宏观经济学加州大学詹姆斯·布拉德福特·德隆)概要1.ppt
- chapter11(多元线性)概要1.ppt
- Chapter13 Overall Audit Planand Audit Program(审计学英文版)概要1.ppt
- Chapter15 Audit Sampling for Tests of Controls and (审计学英文版)概要1.ppt
- Chapter16 Usinging the computer用电脑概要1.ppt
- chapter_16General Equilibrium and Economic Efficiency(微观经济学华侨大学,Jeff Caldwell)概要1.ppt
- Chapter_16概要1.ppt
- Chapter_18How Much Should a Firm Borrow(公司理财原理,Brealey & Myers)概要1.ppt
- Chapter6算法概论概要1.ppt
- Chapter_1_The_Investment_Setting(投资分析与投资组合管理)概要1.ppt
- Chapter_4 Fixed Rate Mortgage Loans(内含中文笔记)概要1.ppt
- chapter_1_negotiation概要1.ppt
- chapter_3 消费者行为概要1.ppt
- chapter_5高级英语概要1.ppt
- chapter_4__市场细分与市场定位策划课英语版概要1.ppt
原创力文档

文档评论(0)