What exactly does this question mean ?

This is a discussion on What exactly does this question mean ? within the C Programming forums, part of the General Programming Boards category; Write a program to compress a data file using bit field method. Write another program to decompress the above file. ...

  1. #1
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498

    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 ?
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,489
    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, 03: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 Cprogramming.com
    Replies: 6
    Last Post: 11-02-2006, 09:30 AM
  5. Self regiserting DLLs question and libraries question.
    By ApocalypticTime in forum Windows Programming
    Replies: 2
    Last Post: 03-22-2003, 01:02 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21