1. Run Length Decoding for
A4B9C1A1D4E2F1
Format = Character then Count (A4)
Solution:
Run Length Decoding for A4B9C1A1D4E2F1
A4 : A is repeated 4 times = AAAA
B9 : B is repeated 9 times = BBBBBBBBB
C1 : C is repeated 1 times = C
A1 : A is repeated 1 times = A
D4 : D is repeated 4 times = DDDD
E2 : E is repeated 2 times = EE
F1 : F is repeated 1 times = F
So, A4B9C1A1D4E2F1 = AAAABBBBBBBBBCADDDDEEF
2. Run Length Decoding for
4A9B1C1A4D2E7F
Format = Count then Character (4A)
Solution:
Run Length Decoding for 4A9B1C1A4D2E7F
4A : A is repeated 4 times = AAAA
9B : B is repeated 9 times = BBBBBBBBB
1C : C is repeated 1 times = C
1A : A is repeated 1 times = A
4D : D is repeated 4 times = DDDD
2E : E is repeated 2 times = EE
7F : F is repeated 7 times = FFFFFFF
So, 4A9B1C1A4D2E7F = AAAABBBBBBBBBCADDDDEEFFFFFFF
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then