Helsinki University of Technology
Laboratory of Information Processing Science
Tik-76.122 Data Structures and Algorithms
demo

Assignment 4 (2 points)

Encode the following string using run-length encoding.

		VVVNNDDDDDDDWJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ

a) not using an escape character

b) using the escape character C

		A =  1		H =  8		O = 15		V = 22
		B =  2		I =  9		P = 16		W = 23
		C =  3		J = 10		Q = 17		X = 24
		D =  4		K = 11		R = 18		Y = 25
		E =  5		L = 12		S = 19		Z = 26
		F =  6		M = 13		T = 20
		G =  7		N = 14		U = 21

You can send an answer to this assignment at most 3 times.



Your browser can't run 1.0.2 Java applets.

Possible reason: Java language is disabled. For example with Netscape Navigator 3.x the Java language could be enabled in options-menu choosing Network Preferences/Languages/Enable Java.