1. Run Length Decoding for
A4B9C1A1D4E2F1
Format = Character then Count (A4)Solution:Run Length Decoding for A4B9C1A1D4E2F1
A4 : A is repeated 4 times =
AAAAB9 : B is repeated 9 times =
BBBBBBBBBC1 : C is repeated 1 times =
CA1 : A is repeated 1 times =
AD4 : D is repeated 4 times =
DDDDE2 : E is repeated 2 times =
EEF1 : F is repeated 1 times =
FSo,
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 =
AAAA9B : B is repeated 9 times =
BBBBBBBBB1C : C is repeated 1 times =
C1A : A is repeated 1 times =
A4D : D is repeated 4 times =
DDDD2E : E is repeated 2 times =
EE7F : F is repeated 7 times =
FFFFFFFSo,
4A9B1C1A4D2E7F =
AAAABBBBBBBBBCADDDDEEFFFFFFF
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then