Skip to content

Decoding bwt is too slow #2

Description

@Wittline

I was doing some tests with your bwt decoding, and this method is too slow, this decoding approach is not recommended for large alphabets.

def reconstruct_bwm(bwt: str) -> List[str]:
        bwm = []
        # first loop to create seeds for lines O(n)
        for _ in range(0, len(bwt), 1):
            bwm.append('')

        for _ in range(0, len(bwt), 1):

            for i in range(0, len(bwt), 1):
                bwm[i] = bwt[i] + bwm[i]
 
            yield [line for line in bwm]
            bwm.sort()
            yield [line for line in bwm]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions