Thread: What exactly does this question mean ?

  1. #1
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011

    What exactly does this question mean ?

    Write a program to compress a data file using bit field method. Write another program to decompress the above file.
    I know what bit fields are.
    But what exactly is "bit field method" ?
    I think that if the file is a text file, I can use 7 bits for each char and dump structs full of 7 bit chars to a binary file which will be slightly smaller in size.
    But that would not work at all for a general 'data' file !

    Is there an algorithm that uses bit fields to compress raw data ?

  2. #2
    Registered User
    Join Date
    Nov 2010
    Long Beach, CA
    Perhaps they meant this: Bit array - Wikipedia, the free encyclopedia. Also known as run-length encoding.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-23-2011, 09:00 AM
  2. *szString = things question/memory question
    By Jang in forum C Programming
    Replies: 3
    Last Post: 01-20-2011, 04:59 AM
  3. Newbish Question file reading question....
    By kas2002 in forum C Programming
    Replies: 23
    Last Post: 05-17-2007, 12:06 PM
  4. java question, how do you interpret this question.
    By indigo0086 in forum A Brief History of
    Replies: 6
    Last Post: 11-02-2006, 10:30 AM
  5. Self regiserting DLLs question and libraries question.
    By ApocalypticTime in forum Windows Programming
    Replies: 2
    Last Post: 03-22-2003, 02:02 PM