Results 1 to 2 of 2
  1. #1
    shahin912 is offline Member
    Join Date
    May 2012
    Posts
    15
    Rep Power
    0

    Default Run-length encoding

    I have no idea how to start my assignment.

    We got to make a Run-length encoding program,

    for example, the string:

    aaaaPPPrrrrr

    is replaced with

    4a3P5r

    Is it possible to help me get started?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: Run-length encoding

    Write out how you would do this manually on a piece of paper. Then try to subdivide the algorithmic steps further into the finest detail, and only then try to write your Java code. If you get stuck on any of these attempts, please show us what you've done and ask as specific a question as possible.

Similar Threads

  1. Run Length Encoding program
    By Zora in forum New To Java
    Replies: 2
    Last Post: 03-09-2012, 04:30 PM
  2. Url encoding
    By RaviGupta0709 in forum Web Frameworks
    Replies: 0
    Last Post: 08-23-2011, 09:02 AM
  3. Difference between length() and length
    By mitra in forum New To Java
    Replies: 7
    Last Post: 07-28-2011, 01:46 AM
  4. Encoding for Parsing XML
    By soichi in forum New To Java
    Replies: 0
    Last Post: 03-21-2011, 07:37 AM
  5. Some help with encoding...
    By nm123 in forum Networking
    Replies: 0
    Last Post: 04-15-2008, 01:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •