54
BDD/ZDD-Based Enumeration Techniques and Real-Life Applications Shin-ichi Minato Hokkaido University, Japan.

BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

BDD/ZDD-Based Enumeration Techniquesand Real-Life Applications

Shin-ichi MinatoHokkaido University, Japan.

Page 2: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Introduction of speaker

Shin-ichi Minato,Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT Labs. from 1990 to 2004.

Main research area: 1990’s: VLSI CAD (logic design and verification) 2000’s: Large-scale combinatorial data processing

(Data mining, Knowledge indexing, Bayesian networks, etc.) 2010~2015: Research Director of “ERATO”

MINATO Discrete Structure Manipulation Project. 2016~2020: PI of JSPS Basic Research Project

2017.09.28 2

Page 3: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

3

Hokkaido University

Founded in 1876. One of the oldest public university in Japan. Nobel prize in Chemistry (Prof. Suzuki) in 2010. Beautiful campus in the center of Sapporo city.

2017.09.28

Page 4: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Sapporo city - Japan

42017.09.28

Page 5: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Overview of “ERATO” project

Top projects of scientific research in Japan. Executed by JST (Japan Science and Technology Agency). 5 projects / Year are accepted from all scientific subjects.

(Computer Science: 0 or 1 project / Year.) 5 year project, total fund: ~10M USD.

about 10 PD researchers and 3 admin staffs.2009.10 2010.4 2010.10 2011.4

(0th-year) (1st-year)

2011.10 2012.4

(2nd-year)

2012.10

(3rd-year)

2013.4

(4th-year)

2013.10 2014.4

(5th-year)acceptance

ScoutingGLs & PDs

Kick-offWS

FIT2010sympo.

FallWS

Specialsympo.

SpringWS

FallWS

SpringWSJSAI JournalSpecial issue

Specialsympo.

FallWS

SpringWS

FIT2013sympo.

Lab-office construction

Visiting Knuth’shome

VisitingCMU

ALSIP2011 Power NW

Press rel.

Miraikanexhibition

ALSIP2012

RM2013

AMBN2010

Negotiation to collab with company

FallWS

“LAMP”Press rel.

HU-museumexhibition

SpringWS

FallWS

ALSIP2014

RC2013

Projectreport

2014.10

NextProjectStarted

5

Page 6: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Overview of “ERATO” project

Top projects of scientific research in Japan. Executed by JST (Japan Science and Technology Agency). 5 projects / Year are accepted from all scientific subjects.

(Computer Science: 0 or 1 project / Year.) 5 year project, total fund: ~10M USD.

about 10 PD researchers and 3 admin staffs.2009.10 2010.4 2010.10 2011.4

(0th-year) (1st-year)

2011.10 2012.4

(2nd-year)

2012.10

(3rd-year)

2013.4

(4th-year)

2013.10 2014.4

(5th-year)acceptance

ScoutingGLs & PDs

Kick-offWS

FIT2010sympo.

FallWS

Specialsympo.

SpringWS

FallWS

SpringWSJSAI JournalSpecial issue

Specialsympo.

FallWS

SpringWS

FIT2013sympo.

Lab-office construction

Visiting Knuth’shome

VisitingCMU

ALSIP2011 Power NW

Press rel.

Miraikanexhibition

ALSIP2012

RM2013

AMBN2010

Negotiation to collab with company

FallWS

“LAMP”Press rel.

HU-museumexhibition

SpringWS

FallWS

ALSIP2014

RC2013

Projectreport

2014.10

NextProjectStarted

6

JSPS Basic Research Project:“Discrete Structure Manipulation System”

2015~2020, total 1M USD

Page 7: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Our main subject

Discrete structures and applications

Many problems solved by computers can be decomposed as atype of discrete structures using simple primitive operations. Often needs a huge amount of enumerative operations.

Discrete structure manipulation system

design automation

fault analysis

constraint satisfaction problem

data mining / knowledge discovery

machine learning / classificationbio informatics

web data analysis

set theory symbolic logic

graph theory

inductive proof

combinatorics probability theory

Foundational materials for C.S. and math.

So many applications Important

for the society.

PerformanceImprovement

(10–100x)

7

Page 8: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Contents:- Brief review of BDD/ZDD- Graph Enumeration Problems- Real-Life Applications

Page 9: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

BDD (Binary Decision Diagram)

x

f f

(jump)x

f f

(jump)

x

f0 f1

x x

f0 f1

(share)x

f0 f1

x x

f0 f1

(share)

Node elimination rule

Node sharing rule

0 1

a

b

c

10

1

01

0

0 1

a

b

c

10

1

01

0

9

a

b b

c c c c

0 0 01 1 1 1 1

BDDBinary Decision Tree

(compress)0 1

0 1 0 1

(ordered)

Canonical form for given Boolean functionsunder a fixed variable ordering.

- Developed in VLSI CAD area mainly in 1990’s.

2017.09.28

Page 10: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Effect of BDD reduction rules

O(n)O(2n)

Exponential advantage can be seen in extreme cases. Depends on instances, but effective for many practical ones.

102017.09.28

Page 11: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

11

BDD-based logic operation algorithm

If the BDD starting from the binary tree:always requires exponential time & space.

Innovative BDD synthesis algorithm Proposed by R. Bryant in 1986. Best cited paper for many years in all EE&CS areas.

BDD

BDD

ANDBDD

A BDD can be constructed from the two operands of BDDs.(Computation time is almost linear for BDD size.)

F

G

F AND G(compressed)

(compressed)

(compressed)

R. Bryant (CMU)

2017.09.28

Page 12: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Boolean functions and sets of combinations

Boolean function:F = (a b ~c) V (~b c)

Set of combinations:F = {ab, ac, c}

a b c F0 0 0 01 0 0 00 1 0 01 1 0 10 0 1 11 0 1 10 1 1 01 1 1 0

c ab

ac Operations of combinatorial itemsets

can be done by BDD-based logic operations. Union of sets logical OR Intersection of sets logical AND Complement set logical NOT

(customer’s choice)

122017.09.28

Page 13: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Zero-suppressed BDD (ZDD) [Minato93]

A variant of BDDs for sets of combinations. Uses a new reduction rule different from ordinary BDDs.

Eliminate all nodes whose “1-edge” directly points to 0-terminal. Share equivalent nodes as well as ordinary BDDs.

If an item x does not appear in any itemset, the ZDD node of x is automatically eliminated. When average occurence ratio of each item is 1%, ZDDs are

more compact than ordinary BDDs, up to 100 times.

x

f f

(jump) x

f f

(jump)

0

Ordinary BDD reduction Zero-suppressed reduction132017.09.28

Page 14: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

14

The latest Knuth’s book fascicle (Vol. 4-1) includes a BDD section with 140 pages and 236 exercises.

In this section, Knuth used 30 pages for ZDDs, including more than 70 exercises. I honored to serve

proofreading of the draft version of his article.

Knuth recommended to use“ZDD” instead of “ZBDD.”

He reorganized ZDD operations and named“Family Algebra.”

2010/05, I visited Knuth’s home and discussed the direction of future work.

BDDs/ZDDs in the Knuth’s book

2017.09.28

Page 15: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

15

Algebraic operations for ZDDs

Knuth evaluated not only the data structure of ZDDs, but more interested in the algebra on ZDDs.

φ, {1} Empty and singleton set. (0/1-terminal)P.top Returns the item-ID at the top node of P.P.onset(v)P.offset(v)

Selects the subset of itemsets including or excluding v.

P.change(v) Switching v (add / delete) on each itemset.∪, ∩, \ Returns union, intersection, and

set difference.P.count Counts number of combinations in P.P * Q Cartesian product set of P and Q. P / Q Quotient set of P divided by Q.P % Q Remainder set of P divided by Q.

Basic operations(Corresponds toBoolean algebra)

New operationsintroduced by Minato.

Formerly I called this “unate cube set algebra,”but Knuth reorganized as “Family algebra.”

Useful for many practical applications.

2017.09.28

Page 16: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

201020001990

BDD Applyalgorithm[Bryant86]

1995 20051985

BDD-basedmodel checking[Burch-Clarke90][McMillan93] SAT-based

model checking[Biere99]

Chaff/zChaff[Moskevics01]

GRASP[Marques-Silva,Sakallah96]

BDD implement-techniques[Brace90][Minato90][Fujita91]

ZDD[Minato93]

BDD-basedprime sets[Coudert92]

ZDD-basedgraph cover[Couder97]

ZDD-basedlogic synthesis[Minato96]

BEM-II[Minato93]

ADD(MTBDD)[Somenzi94]

BDD dynamicvar. ordering[Rudell93]

BDD/ZDDin Knuth book[Knuth09]

Frontier-basedgraph enum.[Minato12]

BDD-based Tutte polynomial[Sekine,Imai96]

BDD minimize.NP comp.[Tani93]

LCM-ZDDitemset mining[Minato,Uno08]

ZDD-based mining(VSOP)[Minato06]ZDD-baseddata mining[Loekito,Bailey06]

SeqBDD[Loekito,Bailey09]

πDD[Minato11]

BDD-based risk analysis[Coudert,Madre92]

ZDD-basedBayesian NW[Minato,Sato07]

FDD/KFDD[Drechsler94]

ZDD-based poly-formula[Minato95]

Streaming BDD[Minato00]

BMD[Chen,Bryant96]

BDD-basedATMS[Madre91]

BDD-basedequiv-check[Fujita88][Malik88]

BDD-basedclosure set[Matsunaga93]

BDD-basedEM-algorithm[Ishihata,Sato10]

(SAT-based methods)

“Winter of BDD”

BDD-based spectral matrix[Drechsler96]

(model check)

(SAT solver)

BDD/ZDD Research Chart

Breadth-first BDD[Ochi93]

Partitioned BDD[Jain96]

BF/DF BDD[Yang,Bryant97]

EVBDD[Lai94]

BDD-basedlogic optimization[Matsunaga89]

Sentential DD[Darwiche11]

BDD-based seq-circuit verification[Coudert90]

BDD exactvar. ordering[Drechsler98]

ZDD forgame theory[Sakurai11]

CUDD package[Somenzi97]

ZDD’s “permit”operation[Okuno98]

16

Page 17: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

2017.09.28 17

Applications of BDDs/ZDDs

BDD-based algorithms have been developed mainly in VLSI logic design area. (since early 1990’s.) Equivalence checking for combinational circuits. Symbolic model checking for logic / behavioral designs. Logic synthesis / optimization. Test pattern generation.

Recently, BDDs/ZDDs are applied for not only VLSI design but also for more general purposes. Data mining (Fast frequent itemset mining) [Minato2008] Probabilistic Modeling (SDD, etc.) [Darwiche2011] Graph enumeration problems [Knuth2009]

Page 18: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Frequent itemset mining

Basic and well-known problem in database analysis.

RecordID Tuple

1 a b c2 a b3 a b c4 b c5 a b6 a b c7 c8 a b c9 a b c10 a b11 b c

Frequency threshold = 8 { ab, a, b, c }

Frequency threshold = 7 { ab, bc, a, b, c }

Frequency threshold = 5 {abc, ab, bc, ac, a, b, c }

Frequency threshold = 10 { b }

Frequency threshold = 1 {abc, ab, bc, ac, a, b, c }

2017.09.28 18

Page 19: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

“LCM over ZDDs” [Minato et al. 2008]

LCM: [Uno2003]Output-linear time algorithm of frequent itemset mining.

ZDD: [Minato93]A compact graph-based representation for large-scale sets of combinations.

Combination of the two techniques

Generates large-scale frequent itemsets on the main memory, with a very small overhead from the original LCM.

( Sub-linear time and space to the number of solutions when ZDD compression works well.)

2017.09.28 19

Page 20: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

LCM over ZDDs: An example

The results of frequent itemsets are obtained as ZDDson the main memory. (not generating a file.)

Freq. thres. α = 7

{ ab, bc, a, b, c }

LCM over ZDDs

F

a

b b

c c

0 1

0

0

0

0 0

1

1 1

11

RecordID Tuple

1 a b c2 a b3 a b c4 b c5 a b6 a b c7 c8 a b c9 a b c10 a b11 b c

2017.09.28 20

Page 21: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Original LCMLCM over ZDDs# solutions

21

Page 22: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

All Freq. Itemsets

Post Processing after LCM over ZDDs

We can extract distinctive itemsets by comparing frequent itemsets for multiple sets of databases. Various ZDD algebraic operations can be used for the

comparison of the huge number of frequent itemsets.

Dataset 1

Dataset 2

LCM over ZDDs

LCM over ZDDs

ZDD

ZDD

All Frequent Itemsets

?ZDD algebraicoperation

ZDD

Distinctive Frequent Itemsets

2017.09.28 22

Page 23: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Solving Graph Enumeration Problems Using BDDs/ZDDs

Page 24: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Movie to show “Power of Enumeration”

Our project supervised exhibition at "Miraikan" (National Future Science Museum of Japan) on 2012.

242017.09.28

The exhibition videogot 1.9 million views !(still now growing.)

Page 25: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Purpose of the movie

Shows strong power of combinatorial explosion, and importance of algorithmic techniques.

Mainly for junior high school to college students Not using any difficult technical terms. Something like a funny science fiction story.

We used the enumerating problem of “self-avoiding walk” on n x n grid graphs This problem is discussed in the ZDD-section

of the Knuth-book, section 7.1.4. We received a letter from Knuth:

“I enjoyed the You-Tube video about big numbers, and shared it to several friends.”

2017.09.28 25

Page 26: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Enumerating “seif-avoiding walks”

Counting shortest s-t paths is quite easy.( 2nCn ; educated in high school.)

If allowing non-shortest paths, suddenly difficult.No simple calculation formula has been found. Many people requested the formula

because the movie shows a super-big number, which the teacher spent 250,000 years to count.

However, no formula exists. Only efficient algorithm!

s

t

2017.09.28 26

Page 27: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

“simpath” in Knuth-book

27

Page 28: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Integer Sequences: A007764

28

Page 29: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

26 x 26: Our record in Nov. 2013(1404 edges included in the graph.)

2017.09.28 29

12 x 12: [Knuth 1995]

Number of paths for n x n grid graphs

19 x 19:[ B.-Melou 2009]

- up to 18×18, we can generate a ZDD to keep all solutions.- from 19×19, we just count the number of solutions.- from 22×22, we only consider the n×n grid graphs.

Page 30: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

se1

t

Knuth’s algorithm “Simpath”

1. Assign a full order toall edges from e1 to en.

e2

e3

e4

e5

2. Constructing a binary decision treeby case-splitting oneach edges from e1 to en.

e1e1 = 0e2

e2 = 0

e4

e2e2 = 1 e2 = 0 e2 = 1

e1 = 1

e5

e3 e3 e3 e30 1

se1 t

e2

e3

e4

e5

s-t path 1

302017.09.28

Page 31: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

se1

t

e2

e3

e4

e5

e1e1 = 0e2

e2 = 0

e4

e2e2 = 1 e2 = 0 e2 = 1

e1 = 1

e5

e3 e3 e3 e30 1

se1 t

e2

e3

e4

e5

Not a s-t path 0

se1 t

e2

e3

e4

e5

Not a simple s-t path 0

1. Assign a full order toall edges from e1 to en.

2. Constructing a binary decision treeby case-splitting oneach edges from e1 to en.

Knuth’s algorithm “Simpath”

312017.09.28

Page 32: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Frontier

Knuth’s algorithm Simpath

e8

e90

0 e10

0e11

0 1

s e1 t

e2

e4

e3 e10

e5

e6e7

e9

e8

e11

76

e8s t

e11e9

e10

e8s t

e11e9

e10

e8

e90

0 e10

0e11

0 1

e8s t

e11e9

e10

5

Done

6 connecting to s5 connecting to 7

322017.09.28

Page 33: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

“simpath” for US map in Knuth-book

2017.09.28 33

Page 34: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Vertices Time (sec) BDD nodes # of Paths

Up to once 47 0.01 951 1.4 × 1010

Up to twice(2-layer graph) 94 248.72 18,971,787 5.0 × 1044

14,797,272,518 ways

5,039,760,385,115,189,594,214,594,926,092,397,238,616,064 ways(= 503正9760澗3851溝1518穣9594杼2145垓9492京6092兆3972億3861万6064)

Path enumeration over JapanTrip all prefectures from Hokkaido to Kagoshimaby ground transportation.

342017.09.28

Page 35: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Frontier-based method (generalization of simpath)

Variation of s-t path problem s-t paths Hamilton paths (exercise in Knuth-book) paths cycles (also in Knuth-book) Non-directed graphs directed graphs Multiple s-t pairs (non crossing routing problem)

Other various graph enumeration problems Subtrees / spanning trees, forests, cutsets, k-partitions,

connection probability, (perfect) matching, etc. Generating BDDs for Tutte polynomials (graph invariant)

We found that Sekine-Imai’s idea in 1995 was in principle similar to Knuth simpath algorithm.

They used BDDs instead of ZDDs. Enumerating connective subgraphs, not paths.

2017.09.28 35

Page 36: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Comparison with conventional ZDD generation

Conventional method:Repeating logic/set operations between two ZDDs. Based on Bryant’s “Apply” algorithm

Frontier-based method:Direct ZDD generation by traversing a given graph. Dynamic programming using a specific problem property.

(path-width)

362017.09.28

Page 37: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Real-life applications of BDD/ZDD-based techniques

Page 38: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

After the Big Earthquake in Japan

Collaboration with Prof. Hayashi at Waseda Univ. A leader of smart grid technology in power electric community.

He receives much more attention after the earthquake. Control of electricity distribution networks are so important after

the nuclear plant accident, since solar and wind power generators are not stable.

We truly want to contributesomething to the societyas leading researchers ofinformation technology.We accelerate ourcollaborative workafter the earthquake.

2017.09.28 38

Page 39: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Switching power supply networks:・Each district must connects to a power source (no black out).・Two power sources must not directly connected.・Too much currency may burn a line.・Too long line may cause voltage shortage.

Huge number of patterns.This trivial example has 14 switches.There are 210 feasible patterns out of 16384 combinations.

A typical real-life NW has 468 switches.We have to search the patternsout of 10140 combinations.

Page 40: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Application to power supply networks

Graph k partition problem (k-cut set enumeration) Enumerate all partitions s.t. given k-vertices not together. Every area is supplied from one power feeder.

Frontier-based method is effective.

We succeeded in generating a ZDD of all solutions for a realistic benchmark with 468 control switches.

ZDD nodes: 1.1 million nodes (779MB), CPU time: ~20 min.Number of solutions: 1063

(213682013834853291168261221480495609817839244385235398189521540)40

Page 41: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Collaboration with Electric Power Company

41

Press-release from TEPCO (Tokyo Electric) on April 2016 Experiment on the real network for minimizing energy loss.

Page 42: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Layout of refuge places in Kyoto city

Very similar algorithm as the power distribution problem. Collaboration with Prof. Naoki Kato at Kyoto Univ. Presented at ISORA 2013 (Int’l Conf. on OR)

42

Page 43: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

House floor planning

Collaborative work with Prof. Takizawa at Osaka City Univ.

Best paper award in CAADRIA2014, an int’l conf. on building architecture.

432017.09.28

Page 44: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Application to Pencil Puzzles “Finding All Solutions and Instances of Numberlink and

Slitherlink by ZDDs” [Yoshinaka et al. 2012]

442017.09.28

Numberlink:

Slitherlink:

Page 45: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Railway route search and path enumeration

45

Enumerating all self-avoiding paths in Tokyo area.

2017.09.28

6,482,787 self-avoiding pathsFrom Ochanomizu to Suidobashi

Longest self-avoiding cycles(343 stations)

Page 46: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Partitioning electoral districts

46

Example on Ibaraki-Pref., Japan:41 vertices, 87 edges, 7 partitions.( 41 city units into 7 districts)All solutions: 11,893,998,242,84625,730,669 solutions satisfying the condition of1.4 or less difference-ratio of voting weight.(CPU time: 1925.21 sec)

Collaboration with Prof. Kawahara (NAIST), Prof. Hotta (Bunkyo U.), et al.

Mal-apportionment (difference-ratio of voting weights) should be minimum, with various geographical and social constraints.

Important problem to support democracy.

Page 47: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Hotspot extraction from geographical statistics

2017.09.28 47

SIDS ratein North Carolina

Page 48: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Statistical data analysis using BDDs

Exact Computation of Influence Spread by BDDsPresented at WWW2017 by Maehara et al.

2017.09.28 48

Page 49: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Statistically significant pattern mining

We proposed a novel p-value correction procedure “LAMP.” [PNAS: Terada et al. 2013] Accurate statistical assessment to discover combinatorial factors. Based on frequent itemset enumeration techniques.

Our result shows that:state-of-the-art enumeration techniques can contribute to many kinds of experimental sciences.

2017.09.28 49

Page 50: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Advantages of generating ZDDs

Not only enumeration but also giving an index structure. Not only indexing but also providing rich operations. Well-compressed structure for many practical cases. Related to various real-life important problems.

GIS (car navigation, railway navigation) Dependency/Fault analysis industrial systems Solving puzzles (Numberlink, Slitherlink, etc.) Enumerating all possible concatenations of substrings Control of electric power distribution networks Layout of refuge shelters for earthquake and tsunami Design of electoral districts for democratic fairness

2017.09.28 50

Page 51: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Open software: “Graphillion.org”

Toolbox for ZDD-based graph enumeration. Easy interface using Python graph library.

51

Page 52: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Tutorial video for “Graphillion”

522017.09.28

Page 53: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

LINE stickers of our YouTube

video !

2017.09.28 53

Available from Oct. 2015

Page 54: BDD/ZDD-Based Enumeration Techniques and Real …demichel/si.epfl.ch/files/content...Introduction of speaker Shin-ichi Minato, Prof. of Hokkaido Univ., Sapporo, Japan. Worked for NTT

Summary

Focus on BDD/ZDD-based enumeration techniques. Representing “logic” and “set,” primitive models of discrete

structures. Efficient algebraic operations without de-compression. Starting from VLSI CAD in 1990s, but now widely used.

Recent results Demonstration video: 1.9 million views! Enumerating all solutions for various types of graph problems: “Knowledge Compilation” for finding “good” solutions.

Many practical applications.- Power distribution network, railways, water/gas supply, etc.

Visit “Graphillion.org” to see our toolbox.

2017.09.28 54