Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

sort compression
I was thinking of using a sort algorithm for compression.
Are their any compression programs with sort algorithms?

The compression program will describe the sort path.
after this it wil use something like RLE or huffman.

Wil it work?

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Report this thread to moderator Post Follow-up to this message
Old Post
gigaflops
10-11-04 08:55 PM


Re: sort compression
On 11 Oct 2004, gigaflops wrote:

> I was thinking of using a sort algorithm for compression.
> Are their any compression programs with sort algorithms?
>
> The compression program will describe the sort path.
> after this it wil use something like RLE or huffman.
>
> Will it work?

It depends on your sorting algorithm and how much overhead you
need to store the "sort path". If you do a plain quick sort
of bytes store some overhead to identify the permutation and code
the sorted bvtes via RLE or DPCM this won't help you in terms of
compression.

A more advanced approach is the BWT transform. The  thing about
the BWT is: you don't need much overhead to store the permutation.
It does not sort all bytes correctly but it usually creates long runs
of the same bytes if there's strong interrelationship between bytes
(like in english text for example). No need to store a "sort path"
since this transform is reversible with _really_ small amount of
control data.

Google for BWT (Burrow Wheeler Transform)
(The BWT is used in BZIP2 for example)


HTH,
Sebastian

--
PGP-Key-ID (long): 572B1778A4CA0707


Report this thread to moderator Post Follow-up to this message
Old Post
Sebastian Gesemann
10-11-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Compression archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:45 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.