summaryrefslogtreecommitdiff
path: root/devel/tre/DESCR
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2005-11-29 19:12:04 +0000
committeradrianp <adrianp@pkgsrc.org>2005-11-29 19:12:04 +0000
commitd063a79a5d93c06876aff395aa2d960f525cb669 (patch)
tree0ea0e0000faa23e46660cc1519f8c51ebb575348 /devel/tre/DESCR
parentaf3f907e712b285ad7bd8a55314d42f8e472e62f (diff)
downloadpkgsrc-d063a79a5d93c06876aff395aa2d960f525cb669.tar.gz
TRE is a lightweight, robust, and efficient POSIX compliant regexp matching
library with some exciting features such as approximate (fuzzy) matching. At the core of TRE is a new algorithm for regular expression matching with submatch addressing. The algorithm uses linear worst-case time in the length of the text being searched, and quadratic worst-case time in the length of the used regular expression. In other words, the time complexity of the algorithm is O(M2N), where M is the length of the regular expression and N is the length of the text. The used space is also quadratic on the length of the regex, but does not depend on the searched string. This quadratic behaviour occurs only on pathological cases which are probably very rare in practice.
Diffstat (limited to 'devel/tre/DESCR')
-rw-r--r--devel/tre/DESCR12
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/tre/DESCR b/devel/tre/DESCR
new file mode 100644
index 00000000000..220d5be8bb5
--- /dev/null
+++ b/devel/tre/DESCR
@@ -0,0 +1,12 @@
+TRE is a lightweight, robust, and efficient POSIX compliant regexp matching
+library with some exciting features such as approximate (fuzzy) matching.
+
+At the core of TRE is a new algorithm for regular expression matching with
+submatch addressing. The algorithm uses linear worst-case time in the length
+of the text being searched, and quadratic worst-case time in the length of
+the used regular expression. In other words, the time complexity of the
+algorithm is O(M2N), where M is the length of the regular expression and N
+is the length of the text. The used space is also quadratic on the length
+of the regex, but does not depend on the searched string. This quadratic
+behaviour occurs only on pathological cases which are probably very rare
+in practice.