dll algorithm

27
DLL DLL Algorit Algorit hm hm

Upload: liesel

Post on 09-Feb-2016

41 views

Category:

Documents


0 download

DESCRIPTION

DLL Algorithm. How to realize search in hardware. We need to realize hardware stack Tree search is organized with hardware stack. The node of the tree is variable. The item on the stack is a sum of three literals (in 3SAT, can be more in general POS SAT). - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: DLL Algorithm

DLL DLL AlgorithmAlgorithm

Page 2: DLL Algorithm

How to realize search in hardware1. We need to realize hardware stack2. Tree search is organized with hardware stack.3. The node of the tree is variable.4. The item on the stack is a sum of three literals (in 3SAT,

can be more in general POS SAT).5. Encoding: 10 = negated variable, 01 = positive variable, 11

= no variable, 00 = mark or not used.6. Example: 1010011101 with order of variables abcd from

left means a’ + b’ + c + e (d variable missing)7. This encoding is standard to logic, is used in Cube Calculus.

Page 3: DLL Algorithm

DLL Algorithm

• Davis, Logemann and Loveland– M. Davis, G. Logemann and D. Loveland, “A Machine

Program for Theorem-Proving”, Communications of ACM, Vol. 5, No. 7, pp. 394-397, 1962

• Basic framework for many modern SAT solvers• Also known as DPLL for historical reasons

• DFS – depth first search

Page 4: DLL Algorithm

Possible Possible representationrepresentation

a b c d Marker, etc

10 01 01 11 1=used

01 11 01 01 0=unused

01 11 01 10

01 11 10 01

etc

• Used = converted to 1, satisfiedUsed = converted to 1, satisfied• Non-used = not satisfied yetNon-used = not satisfied yet

Page 5: DLL Algorithm
Page 6: DLL Algorithm
Page 7: DLL Algorithm
Page 8: DLL Algorithm
Page 9: DLL Algorithm
Page 10: DLL Algorithm
Page 11: DLL Algorithm

Think how to check conflict in hardware Think how to check conflict in hardware using our implementation on stack??!using our implementation on stack??!

Page 12: DLL Algorithm
Page 13: DLL Algorithm
Page 14: DLL Algorithm
Page 15: DLL Algorithm
Page 16: DLL Algorithm
Page 17: DLL Algorithm
Page 18: DLL Algorithm
Page 19: DLL Algorithm
Page 20: DLL Algorithm
Page 21: DLL Algorithm
Page 22: DLL Algorithm
Page 23: DLL Algorithm
Page 24: DLL Algorithm
Page 25: DLL Algorithm
Page 26: DLL Algorithm
Page 27: DLL Algorithm

Problems to think about

1.1. How can I improve my SAT oracle to allow for How can I improve my SAT oracle to allow for implementing DLL in hardware?implementing DLL in hardware?

2.2. How can I represent this problem with How can I represent this problem with Pipelining?Pipelining?

3.3. Can I invent other ideas for backtracking?Can I invent other ideas for backtracking?

4.4. How to use stack for backtracking?How to use stack for backtracking?

5.5. How to represent set of clauses on the stack?How to represent set of clauses on the stack?

You can assume that you solve 3SAT. You can assume that you solve 3SAT. This will simplify the problem.This will simplify the problem.