Home > College Algebra calculators > Run Length Encoding example

1. Run Length Encoding example ( Enter your problem )
  1. Example-1
Other related methods
  1. Run Length Encoding
  2. Run Length Decoding

2. Run Length Decoding
(Next method)

1. Example-1





1. Run Length Encoding for
AAAABBBBBBBBBCADDDDEEFFFFFFFF
Format = Character then Count (A4)


Solution:
Run Length Encoding for AAAABBBBBBBBBCADDDDEEFFFFFFFF

Find consecutive letters

AAAA : A is repeated 4 times : A4

BBBBBBBBB : B is repeated 9 times : B9

C : C is repeated 1 times : C1

A : A is repeated 1 times : A1

DDDD : D is repeated 4 times : D4

EE : E is repeated 2 times : E2

FFFFFFFF : F is repeated 8 times : F8

So, AAAABBBBBBBBBCADDDDEEFFFFFFFF = A4B9C1A1D4E2F8
2. Run Length Encoding for
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWW
Format = Count then Character (4A)


Solution:
Run Length Encoding for WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWW

Find consecutive letters

WWWWWWWWWWWW : W is repeated 12 times : 12W

B : B is repeated 1 times : 1B

WWWWWWWWWWWW : W is repeated 12 times : 12W

BBB : B is repeated 3 times : 3B

WWWWWWWWWWWWWWWWW : W is repeated 17 times : 17W

So, WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWW = 12W1B12W3B17W


This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



2. Run Length Decoding
(Next method)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.