Burrows-Wheeler Transform

Burrows-Wheeler Transform

Code
BWT in python:

Inverse BTW in python: