+ All Categories
Home > Documents > 11 An Improved Algorithm to Accelerate Regular Expression Evaluation Authors: Michela Becchi and...

11 An Improved Algorithm to Accelerate Regular Expression Evaluation Authors: Michela Becchi and...

Date post: 19-Dec-2015
Category:
View: 219 times
Download: 1 times
Share this document with a friend
Popular Tags:
13
1 1 An Improved Algorithm to Accelerate Regular Expression Evaluation Authors: Michela Becchi and Patrick Crowley Publisher: ANCS’07 Present: Kia-Tso Chang Date: January 8 2008
Transcript

11

An Improved Algorithm to Accelerate

Regular Expression Evaluation

Authors: Michela Becchi and Patrick Crowley

Publisher: ANCS’07Present: Kia-Tso Chang

Date: January 8 2008

2

outline

D2FA The proposal Reducing the alphabet Experimental evaluation

3

Default transition

4

D2FA(diameter bound of 4)

5

D2FA(diameter bound of 4)

5

6

D2FA(diameter bound of 2)

7

Lemma

we define its depth as the minimum number of states visited when moving from s0 to s in the DFA.

Lemma: If none of the default transitions in a D2FA lead from a state with depth di to a state of depth dj with dj ≥ di, then any string of length N will require at most 2N state traversals to be processed.

8

The proposal

9

10

Reducing the alphabet

Two symbols ci and cj will fall into the same class if they are treated the same way in all DFA states. In other words, given the transition function δ(states, Σ)→states,δ(s,ci)= δ(s,cj) for each state s belonging to the DFA

11

Two observations

12

Experimental evaluation

13

Experimental evaluation


Recommended