Skip to content

Commit d6954db

Browse files
author
Hamid Gasmi
committed
BWT description is updated
1 parent e5ff34e commit d6954db

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

+13-11
Original file line numberDiff line numberDiff line change
@@ -3355,18 +3355,20 @@
33553355
- *Text* <---> BWT-Text = BWT(*Text*) <---> Compression(*BWT-Text*)
33563356
- BWT:
33573357
- From *Text* to BWT: *Text* ---> *BWT-Text* ---> Compressed *BWT-Text*
3358-
- Forming All Cyclic Rotations of a text ---> Sorting Cyclic Rotations ---> String last column
3358+
- 1st. Form all cyclic rotations of a text by chopping off a suffix from the end of *Text* and appending it to the beginning of *Text*
3359+
- 2nd. Sort all cyclic rotations of *Text* lexicographically to form a |*Text*| x |*Text*| matrix ***M(Text)***
3360+
- 3rd. Extract the last column from *M(Text)*. It's ***BWT(Text)***
33593361
- E.g. `AGACATA$`:
3360-
- v
3361-
AGACATA$ $AGACATA
3362-
GACATA$A A$AGACAT
3363-
ACATA$AG Sorting ACATA$AG BWT: Compression
3364-
CATA$AGA -------> AGACATA$ --------> ATG$CAAA ------------> ATG$C3A
3365-
ATA$AGAC $ 1st ATA$AGAC Strings Run-Length
3366-
TA$AGACA CATA$AGA last Encoding
3367-
A$AGACAT GACATA$A column
3368-
$AGACATA TA$AGACA
3369-
^
3362+
- Cyclic Rotations: M(Text) BWT(Text) Compressed BWT(Text):
3363+
AGACATA$ $AGACATA
3364+
$AGACATA A$AGACAT
3365+
A$AGACAT Sorting ACATA$AG Extract Compression
3366+
TA$AGACA -------> AGACATA$ --------> ATG$CAAA ------------> ATG$C3A
3367+
ATA$AGAC $ 1st ATA$AGAC last Run-Length
3368+
CATA$AGA CATA$AGA column Encoding
3369+
ACATA$AG GACATA$A
3370+
GACATA$A TA$AGACA
3371+
^
33703372
- Inverting BWT (1st version):
33713373
- From Compressed BWT to the original text
33723374
- Compressed(BWT-Text) ---> BWT-Text ---> Text

0 commit comments

Comments
 (0)