Code Monkey home page Code Monkey logo

esaxx's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

esaxx's Issues

Succinct ESA output

ESA can be represented by a BP representation. 
An internal node information can be replaced by a rank operation on BP. 

First, build a permutated hight array from SA directly, which is 2n bits of 
space, and then use this to compute BP. Since currently nodes are enumerated 
in post order, we need to convert this into the BP; that is pre-order

Original issue reported on code.google.com by Daisuke.Okanohara on 26 May 2010 at 1:39

esaxx-0.0.2's enum_substring produces wrong result with an input "ababbab".

■What steps will reproduce the problem?
1. waf configure && waf
   (enumSubstring.cpp needs to be modified so that it includes <cstdio>.)
2. bin/default/enum_substring < test_ababbab.dat
   The file "test_ababbab.dat" contains a string "ababbab".
3. enum_substring outputs the following results:

        % esaxx-0.0.2/bin/default/enum_substring < test_ababbab.dat
            n:7
        alpha:256
         node:3
        0       3       2       ab
        1       2       3       bab
        2       7       1       a

   Because there are no branch after 'a', i.e. the input does not contain "aa",
   a substring "a" shouldn't appear on the output.


■What is the expected output? What do you see instead?
esaxx-0.0.1 seems to produce a right result.

    % esaxx-0.0.1/bin/default/enum_substring < test_ababbab.dat
        n:7
    alpha:256
     node:4
    0       3       2       ab
    1       2       3       bab
    2       4       1       b
    3       7       0


■What version of the product are you using? On what operating system?
esaxx-0.0.2
Gentoo Linux
gcc-4.6.3


■Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 8 Jul 2012 at 9:34

Bug in sample code


        for (int j = 0; j < len; ++i){ // not ++i but ++j 
            cout << T[beg + j];
        }

Original issue reported on code.google.com by [email protected] on 21 Dec 2010 at 10:08

esaxx-0.0.3's enum_substring doesn't work correctly with an input "abracadabra".

■What steps will reproduce the problem?
1. waf configure && waf
   (in fact, I needed to modify enumSubstring.cpp to include <cstdio>.)
2. bin/default/enum_substring < test_abracadabra.dat
3. enum_substring outputs the following results:

    % bin/default/enum_substring < test_abracadabra.dat
        n:11
    alpha:256
     node:5
    0       2       1       a
    1       3       1       a
    2       2       3       bra
    3       2       2       ra
    4       11      0


■What is the expected output? What do you see instead?
Its previous version 0.0.2 has no problem.

    % esaxx-0.0.2/bin/default/enum_substring < test_abracadabra.dat
        n:11
    alpha:256
     node:5
    0       2       4       abra
    1       5       1       a
    2       2       3       bra
    3       2       2       ra
    4       11      0


■What version of the product are you using? On what operating system?
esaxx-0.0.3
Gentoo Linux
gcc-4.6.3


■Please provide any additional information below.
The program works well with a string "mississippi".
Both version 0.02 and 0.03 result in the same output.

    % esaxx-0.0.3/bin/default/enum_substring < test_mississippi.dat
        n:11
    alpha:256
     node:7
    0       2       4       issi
    1       4       1       i
    2       2       1       p
    3       2       2       si
    4       2       3       ssi
    5       4       1       s
    6       11      0

    % esaxx-0.0.2/bin/default/enum_substring < test_mississippi.dat
        n:11
    alpha:256
     node:7
    0       2       4       issi
    1       4       1       i
    2       2       1       p
    3       2       2       si
    4       2       3       ssi
    5       4       1       s
    6       11      0

Original issue reported on code.google.com by [email protected] on 8 Jul 2012 at 5:29

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.