Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Java: RLE Decompression Recursively
New Posts  All Forums:Forum Nav:

Java: RLE Decompression Recursively

post #1 of 2
Thread Starter 
hey everyone, I have this assignment for my compsci class and im a bit confused. Ill post what I have so far, but im kinda stumped on my debugging. Any help is appreciated, thanks!

http://pastebin.com/dtfyPQSv
Gaming Station
(14 items)
 
  
CPUMotherboardGraphicsRAM
Q9500 Quad Core EVGA 790i FTW EVGA GTX470 4GB OCZ Reaper HPC 
Hard DriveHard DriveOptical DriveOS
WD Caviar SE 320GB 7200rpm Samsung F1 24x Windows 7 Home Ultimate 
MonitorKeyboardPowerCase
Acer 24" Widescreen LCD Das Keyboard (Cherry Blue) Corsair HX1000 CoolerMaster Storm Scout 
MouseMouse Pad
R.A.T. 7 X-Trac Ripper 
  hide details  
Reply
Gaming Station
(14 items)
 
  
CPUMotherboardGraphicsRAM
Q9500 Quad Core EVGA 790i FTW EVGA GTX470 4GB OCZ Reaper HPC 
Hard DriveHard DriveOptical DriveOS
WD Caviar SE 320GB 7200rpm Samsung F1 24x Windows 7 Home Ultimate 
MonitorKeyboardPowerCase
Acer 24" Widescreen LCD Das Keyboard (Cherry Blue) Corsair HX1000 CoolerMaster Storm Scout 
MouseMouse Pad
R.A.T. 7 X-Trac Ripper 
  hide details  
Reply
post #2 of 2
Please provide more information!!!
Does the question require you to do it recursively/ is that standard? It seems to me that a recursive method has very little advantage in this case, a simply while loop with a check for whether or not there was a repeated 'pattern' found. Also, I do not know much about RLE, is there typically an order asosciated with the a given pass of RLE? As in, what if the repetition is of a substring of length 2? I.E. in the pattern "rara".
I would love to help, let me know how I can be most useful-- it seems like you are having trouble both with the algorithm and the syntax.
For sale
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-920 Asus P6T Deluxe Asus GTX460 TOP 768mb G Skill ECO 1600 CAS7 1.35V 
Hard DriveOptical DriveOSMonitor
2x Vertex 60 GB raid[0] Asus DVDRW W7,Ubuntu 2 xAsus VH236H 
KeyboardPowerCaseMouse Pad
Razer Ultra X3 1000W HAF 932 My Desk 
  hide details  
Reply
For sale
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-920 Asus P6T Deluxe Asus GTX460 TOP 768mb G Skill ECO 1600 CAS7 1.35V 
Hard DriveOptical DriveOSMonitor
2x Vertex 60 GB raid[0] Asus DVDRW W7,Ubuntu 2 xAsus VH236H 
KeyboardPowerCaseMouse Pad
Razer Ultra X3 1000W HAF 932 My Desk 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Java: RLE Decompression Recursively