首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > C++模板库增强后缀数组

C++模板库增强后缀数组

  • 资源大小:97.76 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 模板 增强 数组 后缀

资 源 简 介

esaxx is a C++ template library supporting to build an enhanced suffix array which is useful for various string algorithms. For an input text of length N, esaxx builds a suffix tree in linear time using almost 20N bytes working space (alphabet size independent). In construction, esaxx first build a suffix array, and then compute the inversed suffix array, and finally obtain the height array. By using a height array, internal nodes in a suffix tree are enumerated in post-order. It also provides the sample program to enumerate the statistics of all substrings appeared in a text in linear time. For a suffix array construction, I use sais.hxx, the induced sorting algorithm implemented by Yuta Mori. How to use Copy esa.hxx and sais.hxx to your src directory. include "esa.hxx" call esaxx(); Sample code Eumerating all substrings corresponding to internal nodes. ```

文 件 列 表

esaxx-0.0.4
cmdline.h
configure
COPYING
enumSubstring.cpp
esa.hxx
README
sais.hxx
waf
wscript

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.182051s