java Run-length encoding
I have no idea how to start my assignment. We got to make a Run-length encoding program, for example, the users enters this string: aaaaPPPrrrrr is replaced with 4a3P5r Can someone help me get started with it? Hopefully this will get you started on your assignment: The fundamental idea behind run-length encoding is that consecutively occurring tokens like aaaa can be replaced by a shorter form 4a (meaning "the following four characters are an 'a'"). This type of encoding was used in the early days of computer graphics to save space when storing an image. Back then, video cards supported a