Smallest grammar by recompression
Artur Je˙ z
Max Planck Institute for Informatics
17.06.2013
Smallest grammar by recompression Artur Je z Max Planck Institute - - PowerPoint PPT Presentation
Smallest grammar by recompression Artur Je z Max Planck Institute for Informatics 17.06.2013 Grammar based-compression Represent w as a CFG generating it. 17.06.2013 2/17 Grammar based-compression Represent w as a CFG generating it.
Max Planck Institute for Informatics
17.06.2013
17.06.2013 2/17
17.06.2013 2/17
17.06.2013 2/17
17.06.2013 2/17
17.06.2013 3/17
17.06.2013 3/17
17.06.2013 4/17
, size O(ℓ log(n/ℓ)) ≤ O(g log(n/g))
17.06.2013 4/17
, size O(ℓ log(n/ℓ)) ≤ O(g log(n/g))
17.06.2013 4/17
, size O(ℓ log(n/ℓ)) ≤ O(g log(n/g))
17.06.2013 4/17
, size O(ℓ log(n/ℓ)) ≤ O(g log(n/g))
17.06.2013 4/17
17.06.2013 5/17
17.06.2013 5/17
17.06.2013 5/17
17.06.2013 5/17
17.06.2013 5/17
17.06.2013 6/17
17.06.2013 6/17
17.06.2013 6/17
17.06.2013 6/17
17.06.2013 6/17
17.06.2013 6/17
17.06.2013 6/17
17.06.2013 6/17
1: while |T| > 1 do
17.06.2013 7/17
1: while |T| > 1 do 2:
3:
4:
17.06.2013 7/17
1: while |T| > 1 do 2:
3:
4:
5:
6:
7:
17.06.2013 7/17
1: while |T| > 1 do 2:
3:
4:
5:
6:
7:
8:
9:
17.06.2013 7/17
1: while |T| > 1 do 2:
3:
4:
5:
6:
7:
8:
9:
10: return the constructed grammar
17.06.2013 7/17
17.06.2013 8/17
17.06.2013 8/17
17.06.2013 9/17
17.06.2013 9/17
When we consider ab we replace it, unless one letter was already replaced.
17.06.2013 9/17
When we consider ab we replace it, unless one letter was already replaced.
17.06.2013 9/17
17.06.2013 10/17
17.06.2013 11/17
17.06.2013 11/17
17.06.2013 11/17
aℓk−ℓk−1
(make new rules a2 → aa, a4 → a2a2, a8 → a4a4, . . . )
17.06.2013 11/17
aℓk−ℓk−1
(make new rules a2 → aa, a4 → a2a2, a8 → a4a4, . . . )
17.06.2013 11/17
aℓk−ℓk−1
(make new rules a2 → aa, a4 → a2a2, a8 → a4a4, . . . )
O k−1
log(ℓi+1 − ℓi)
11/17
17.06.2013 12/17
17.06.2013 12/17
17.06.2013 12/17
17.06.2013 12/17
17.06.2013 12/17
17.06.2013 12/17
17.06.2013 12/17
17.06.2013 13/17
17.06.2013 13/17
17.06.2013 13/17
17.06.2013 13/17
17.06.2013 13/17
17.06.2013 14/17
1: for i ← 1 . . g − 1 do 2:
3:
4:
17.06.2013 14/17
1: for i ← 1 . . g − 1 do 2:
3:
4:
17.06.2013 14/17
1: for i ← 1 . . g − 1 do 2:
3:
4:
17.06.2013 14/17
1: for i ← 1 . . g − 1 do 2:
3:
4:
17.06.2013 14/17
17.06.2013 15/17
17.06.2013 15/17
17.06.2013 15/17
17.06.2013 16/17
Sequences under Equality Tests in Polylogarithmic Time, ‘97
grammar-based compression, ’05
Automata with Compressed Labels, ’11
17.06.2013 16/17
log n log log n) approximation known)
17.06.2013 17/17
log n log log n) approximation known)
17.06.2013 17/17