Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Compression : Some new Idea.

Compression : Some new Idea.

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorial
23 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jk chan

    ABCDEF is not compressed to 11111 it like 12345. understand :) krishnadk

    P Offline
    P Offline
    Prakash Nadar
    wrote on last edited by
    #21

    Click Here[^]


    God is Real, unless declared Integer.

    1 Reply Last reply
    0
    • J jk chan

      Hai DavidCrow . Can u explain it . It will help me. so pls do it bye :) krishnadk

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #22

      krishnadevank wrote: Can u explain it . Didn't you already explain it here?


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      1 Reply Last reply
      0
      • R Robert A T Kaldy

        Your basic idea is good. You take advantage that text files contain bytes from a relatively small set (26 small and 26 capital letters), so the differences would be small. Yes, the result should be smaller than source. But read a specification of the LZW algorithm, it is a classic compression approach, when the source file contains bytes from a small set. It brings you idea even deeper. Robert-Antonio "I launched Norton Commander and saw, drive C: on the left, drive C: on the right...Damn, why I need two drives C:??? So I formatted one..."

        J Offline
        J Offline
        John M Drescher
        wrote on last edited by
        #23

        But text files do not contain only 26 or 52 letters. They contain whitespace, other characters ... And the differences can not be any better than the whole. It takes 6 bits to represent 52 letters + some formatting chars. It will still take 6 bits to represent the differences otherwise you will not be able to have any Za words... And LZW would certianlly be better as text files like this will get very high compression if the data is real words and not random. What he has designed is a very poor encryption scheme with no compression at all. Just bit packing. John

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups