Sciweavers

JFP
2006

Efficient manipulation of binary data using pattern matching

13 years 4 months ago
Efficient manipulation of binary data using pattern matching
Pattern matching is an important operation in functional programs. So far, pattern matching has been investigated in the context of structured terms. This article presents an approach to extend pattern matching to terms without (much of a) structure such as binaries which is the kind of data format that network applications typically manipulate. After introducing the binary datatype and a notation for matching binary data against patterns, we present an algorithm that constructs a decision tree automaton from a set of binary patterns. We then show how the pattern matching using this tree automaton can be made adaptive, how redundant tests can be avoided, and how we can further reduce the size of the resulting automaton by taking interferences between patterns into account. Since the size of the tree automaton is exponential in the worst case, we also present an alternative new approach to compiling binary pattern matching which is conservative in space and analyze its complexity prope...
Per Gustafsson, Konstantinos F. Sagonas
Added 13 Dec 2010
Updated 13 Dec 2010
Type Journal
Year 2006
Where JFP
Authors Per Gustafsson, Konstantinos F. Sagonas
Comments (0)