EmbLogic's Blog

Project 2: Multiple Data Compression and Encryption using Iterative Technique

In computer science and information theory, data compression, source coding,[1] or bit-rate reduction involves encoding information using fewer bits than the original representation. Compression can be either be lossy or lossless. Lossless compression reduces bits by identifying and eliminating statistical redundancy. No information is lost in lossless compression. Lossy compression reduces bits by identifying marginally important information and removing it. The process of reducing the size of a data file is popularly referred to as data compression, although its formal name is source coding (coding done at the source of the data, before it is stored or transmitted).

260 Responses to Project 2: Multiple Data Compression and Encryption using Iterative Technique

  1. Nishant says:

    compression done without using file IO.I need classes on file IO and function…

  2. jasmeen.kaur says:

    done compression using string. need file i/o sessions

  3. Nikhil Raheja says:

    sir, need i/o classes .. i have done compression and decompression using strings.

  4. sushant says:

    Today i am completed maste_array.
    start compression the string.
    practice of all command study in today.

  5. Nishant says:

    Today i am completed compression of 4 bit by using file IO. Now working on decompression….

  6. sushant says:

    done 4bit compression using file IO

  7. jagbir singh says:

    4-bit compression,decompression done using file io.

  8. sushant says:

    done the 4 bit compression & decompression.

  9. vaibhav says:

    done the practice of todays class work……..

  10. rahul chaudhary says:

    sir still making master_array

  11. amol.wagh says:

    I done with master array, code length and work with compression ….

  12. RAHUL SRIVASTAVA says:

    done master array….yesterday doing compression.

  13. Ankit Bhasin says:

    Done master_array,code-length and now working on compression using file i/o.

  14. understanding the concept of read file and open file commands and use of perror

  15. vaibhav says:

    In 4 bit compression ->master array,code- length using file i/o done sucessfully,,,,,now working on compression…..

  16. sushant says:

    working on 2 bit master_array==>codelength==> 2bit compression==>working on decompression…

  17. Ankit Bhasin says:

    Sir,
    I take fd as a variable,which is used to store file descriptor.But if we don’t declare fd anywhere(in header file or function definition file or in main file),then also fd stores the file descriptor(integer value).Why?

  18. nikhil raheja says:

    Done compression and decompression 2,3,4,5,6,7 bit.
    Now working on making a generalised project

  19. I had implemented
    mdc compression and decompression for any
    number of bits using FILE IO

  20. master array and code length found out
    trying compression

  21. chetan malik says:

    Project #2 completed.
    Compression and decompression of 2-7 bit data done using a general code.

  22. Pravin Bhalerao says:

    I had done file l/o operations, master array creation,finding code length,indexing of array element for mdc and now I m working on file compression.

  23. jasmeen.kaur says:

    Implemented compression and decompression -2 to 7 bit with file i/o.. trying to implement the generic code
    with make file..

  24. i had completed user input
    mdc compression and decompression for any
    number of bits using FILE IO

  25. i had implemented the code of mdc compression and decompression by using pointers & double pointers for any
    number of bits .

  26. I had completed 4 bit compression and now i am working on decompression.

  27. amol.wagh says:

    Completed 4-bit compression and decompression

  28. sushant says:

    completed 2 bit compression,Decompression
    working on 3 bit compression!

  29. compression of 4 bit compeleted working on decompression.

  30. vaibhav says:

    done 4 and 2 bit compression,,,now working on decompression…….

  31. 4 bit decompression done.

  32. rajnish says:

    I am working on 4- bit compression in which I have completed fileio,master array ,code length,indexing and working on compression.

  33. rahul chaudhary says:

    sir i had completed master array, code length. now i am working on 4 bit compression.

  34. rajpreet.singh says:

    I have done MDC project for all the bits. Just facing a very little problem while storing the master array into pointers.

  35. atul.dixit says:

    i m working on the code lentgh of the master array.and then after compression is in queue

  36. sushant says:

    I am completed the 3 bit master_array ==> code_length ==> compression ==> working on decompression.

  37. rohit pathak says:

    Sir,currently working on master array,and also going through assignments of array side-by-side..

  38. sumit.m says:

    Working on and verifying the concepts of arrays, pointers & double pointers.

  39. Nishant says:

    4-bit compression and decompression done.
    3-bit compression done working on 3-bit decompression.

  40. amol says:

    Now work on 2-bit comp and decompr

  41. i had implemented following things
    1) char pointers
    2) double pointers

  42. amol.wagh says:

    Now work with 2-bit compression and decompression

  43. Nalin Saxena says:

    I have implemented char and double pointers.

  44. nida khan says:

    i’ve implemented pointers using integers and char,and double pointer

  45. ravi.soam says:

    i have done 4 bit compression, now i’m working on 4 bit decompression.

  46. i had implemented project of double pointers

  47. atul.dixit says:

    issues in master array resolved and i m working on pointers

  48. anil rajak says:

    cannot convert the letter into uppercase with the help of strupr function

  49. jasmeen.kaur says:

    implemented project of double pointer

  50. nida khan says:

    implemented master_array.

  51. sushant says:

    I have completed 3 bit master_array=>codelength=>indexing=>3 bit compression =>3 bit decompression.Working on 5 bit compression.

  52. sumit says:

    Just about to finish with master array.

  53. rajpreet.singh says:

    Done with MDC project using pointers. Project given by Siddharth sir on double pointers has also done.

  54. rajnish says:

    I have completed 4-bit mdc project and working over 2-bit……..

  55. arun chauhan says:

    x = 10;
    z = x / ++x;
    printf(“x = %d\n”,x);
    printf(“z = %d\n”,z);

    it prints-
    x = 11;
    z = 1;

    z = 1 HOW..??

  56. rajnish says:

    I have completed 2-bit compression and working over decompression.

  57. 3 bit compression and decompression done.

  58. rajnish says:

    I have completed 2 bit and 4bit compression decompression and working on 3 bit compression.

  59. nida khan says:

    i’ve completed 2 bit and 4 bit compression and working in 4 bit decompression…

  60. sushant says:

    I have completed 2,3,4,5,6,7 bit compression & decompression.

  61. rajnish says:

    I have completed 2 bit,3 bit,4 bit mdc project
    and working on 5 bit.

  62. manoj dhoran says:

    i have completed 4-bit compression and decompression.

  63. lalit mahajan says:

    i have completed 4-bit,2-bit compression and dcompression and now working on 3-bit decompression

  64. pravin bhalerao says:

    i have done 2,3,4,5,6,7 comp-decompression and now working on generalized code.

  65. vishal bhagat says:

    i am working on creation of master array.

  66. 2,3,4,6 bit compression and decompression done working on generalize code for compression.

  67. vinod khatana says:

    i have successfully run programme, speratly stored header file and definetion file…

  68. tanvir520 says:

    Sir,
    i have done 2,3,4,5 bit data compression and now working on general case!

  69. sushant says:

    I have implemented generic form of mdc using array,function & pointer.

  70. anil.rajak says:

    implement the static,const and extern variable
    do the basic of compression and decompression

  71. vishal says:

    i have completed assignment given by siddhart sir on today session i.e compression and decompression of 2 bit………

  72. pravin bhalerao says:

    i implemented and analysed the program that includes operators ,variable specifires.
    and implement basics com/decompression.

  73. Hari Ballabh says:

    i did Compression and decompression of 2 integers in 1 charecter.

  74. manoj dhoran says:

    i have implemented,static,constant,and extern variables and do the basic comp-decompressio.

  75. vinod khatana says:

    i done logical operator and also complement….
    start assignment 1st..

  76. tanvir520 says:

    sir,
    i am doing practise on structure.

  77. tanvir520 says:

    when using lint command it gives error “command not found” please give me solution

  78. trilok singh says:

    implemented type specifiers like const, extern and static
    and also implemented logical operators

  79. i have done the mdc project with function pointers using structure pointers

  80. amol.wagh says:

    I have done the generelized code for 2,3,4,5,6,7 bit compression and decompression,

  81. generalized code for 2,4,5,6,7 bit compression done
    doing assignment of fileio and functions

  82. string length of array which stores compressed string shows string length zero in case of 5 bit compression.

    give me a solution.

    • amol says:

      Because 1st compressed byte contain zero.
      And ASCII value of zero is null.So if null is coming at the start of string then how it will count the length.

  83. amardeep singh says:

    i have practiced by implementing ‘for’ loop & printf & solved problems give in the class.
    (on 3-11-12).

  84. ujala.gupta says:

    Implemented integer
    array..!!

  85. amardeep singh says:

    i have done integer to character compression & decompression.
    (on October 31, 2012 )

  86. Nalin Saxena says:

    I have implemented integer array.

  87. amardeep singh says:

    i have done impementation of array with enum.

  88. trilok singh says:

    implemented integer ARRAY….

  89. trilok.singh says:

    implemented INTEGER ARRAY….

  90. manoj dhoran says:

    i implement int array and also i used enum in it.

  91. ayush.gupta says:

    Implemented integer array and character array.
    Working on master array.

  92. trilok.singh says:

    implemented CHARACTER ARRAY…

  93. manoj dhoran says:

    i have implemented two dimensional array & also worked on character array.

  94. lalit mahajan says:

    i have implemented two dimension array & char array.

  95. sachin pimpale says:

    implemented integer array & character array…

  96. tanvir520 says:

    sir,
    i implemented 1-d and 2-d array.

  97. Nalin Saxena says:

    I have implemented character and two dimensional array.

  98. vinod khatana says:

    I’ve implemented 1-D and 2-D array.now working on master array…..

  99. amardeep singh says:

    Implemented 2d array & character array.. now implementing master array

  100. rajnish says:

    I have completed 5bit ,6bit and working on generalised form.

  101. atul dixit says:

    i have completed compression and decompression of 4, 2, 3, 5, 7 bit . now i m working on generalised form .

  102. amardeep singh says:

    master array implemented…

  103. Hari Ballabh says:

    Implemented Master Array using file system successfully.

  104. Deepak garg says:

    Implemented Master Arrary.

  105. Ankit Bhasin says:

    Done 2,3,4,5,6 bit compression and decompression and now working on generalized form.

  106. tanvir520 says:

    Working one general code for mdc!

  107. vinod khatana says:

    working on master array……

  108. trilok.singh says:

    done 2,3 & 4 bit compression….

  109. Amardeep singh says:

    working on double pointers

  110. ravi.shankar says:

    done 4 bit compression and implemented double pointer

  111. Ankit Bhasin says:

    Create Manual page and practice project management tool i.e., RCS.

  112. Santosh Anand says:

    To Siddhartha sir;
    Sir,could not complete configuration of CVS server..Will complete before tommorws class.Regards-Santosh Anand

  113. RAHUL SRIVASTAVA says:

    i am not able to view the documnents of RCS utility.

  114. sunil110 says:

    i have completed 2 and 4bit compression…

  115. Jasmeen Kaur says:

    created man page, done with rcs and cvs….

  116. amol.wagh says:

    Created man page,done with rcs,
    done with assignment of pointer (queries in 2 que)

  117. created man page done with rcs,there is some problem in cvs test.txt file not import

  118. tanvir520 says:

    sir,
    i have start working on rcs and creat man pages

  119. jasmeen.kaur says:

    facing some problem at cvs client side :

    [root@client2 emblogic]# export CVSROOT=:pserver:root@192.168.0.12:2401/nik
    [root@client2 emblogic]# cvs login
    Logging in to :pserver:root@192.168.0.12:2401/nik
    CVS password:
    [root@client2 emblogic]# $CVSROOT
    bash: :pserver:root@192.168.0.12:2401/nik: No such file or directory
    [root@client2 emblogic]#

  120. Rajpreet singh says:

    having a trouble at cvs client side::

    [root@client2 /]# export CVSROOT=:pserver:usercvs@192.168.0.38:/cvs
    [root@client2 /]# cvs login
    Logging in to :pserver:usercvs@192.168.0.38:2401/cvs
    CVS password:
    [root@client2 /]# $CVSROOT
    bash: :pserver:usercvs@192.168.0.38:/cvs: No such file or directory
    [root@client2 /]#

  121. tanvir520 says:

    how can i add a rule to allow inbound connection using on TCP on port 2401

    • m siddarth says:

      type the command
      root@localhost~]#sytem-config-firewall
      Select other ports option-> click on Add button->select 2401-> click on ok button.
      On the menu select apply and close the menu window.

  122. atul.dixit says:

    i have completed genelised compression and decompression taking input through users for any no. of bits, completed mdc project using pointers, implemented RCS, created MAN PAGE, facing problem in cvs server congiguration.

    • m siddarth says:

      What kind of error are you getting while implementing cvs server?

      • atul.dixit says:

        cvs[login aborted]: unrecognised auth response from branchial.umn.edu:cvs pserver: cannot open
        /home/cvsroot/CVSROOT/config: permission denied.

        Although solution is provided in the documents but yet i cud not understand what exactly is to be done to overcome the problem, trying to figure out.

  123. sunil110 says:

    i have completed RCS , man page create.
    working on cvs…..

  124. vishal bhagat says:

    i have completed RCS man pages

  125. lalit mahajan says:

    i have done rcs ,man pages

  126. vishal bhagat says:

    I have completed rcs and man pages……

  127. amit.yadav says:

    i have done rcs ,man page and debugging.

  128. amardeep singh says:

    i have done 4 bit compresion & decompression using arrays..

  129. assignment of pointer completed except 15 no. Question.

  130. trilok.singh says:

    implemented double pointer project….

  131. ravi.shankar says:

    completed double pointer project…

  132. sunil110 says:

    completed double pointer project…

  133. Nida Khan says:

    I have completed project on double pointers

  134. vinod khatana says:

    I have implemented double pointer project….

  135. rajnish says:

    i have completed double ptr project

  136. Nalin Saxena says:

    I have completed the project on double pointers..

  137. anil rajak says:

    i have completed the project on double pointer.

  138. pravin bhalerao says:

    i had done double pointer project.

  139. amol.wagh says:

    Completed the project of double pointer

  140. lalit mahajan says:

    completed the project of double pointer.

  141. $umit says:

    Sorry for posting it late. I have completed the double pointer project.

  142. vishal.bhagat says:

    completed double pointer project…

  143. amardeep singh says:

    completed double pointer project.

  144. sachin pimpale says:

    completed double pointer project…!

  145. ujala.gupta says:

    Problem in double pointer!
    //everything is initialised properly..
    for(i=0;i<10;i++)
    {
    printf("%c",**(pt+0)); //run properly.
    printf("%c",**(pt+1)); //segmentation fault.
    }
    help…

  146. sachin says:

    completed 5 & 6 bit compression & dcomp working on 7 bit dcomp.

  147. santosh anand says:

    To siddhartha sir,
    1.today implemented the function concepts discussed in class.
    2.working on mdc project for 4 bit compression.

  148. function implement done and continuing with function assignment.

  149. vinod khatana says:

    i hv implemented fn with/witout return and with/without passing argument

  150. tanvir520 says:

    i have implemented functions in c program

  151. amardeep singh says:

    call by refrence function implementation done …
    working on 3 bit compression & assignment 1

  152. $umit says:

    Working on functions and trying to implement it in the double pointer project.

  153. amol.wagh says:

    Continuing with assignment of function

  154. RAHUL SRIVASTAVA says:

    i have done the functions call by value and call by refrence ,pass by value,pass by refrence….

  155. lalit mahajan says:

    implemented functions concept. & working on 7 bit decompression.

  156. Ankit Bhasin says:

    Implemented functions Concept

  157. anil.rajak says:

    implemented functions concept.

  158. pravin bhalerao says:

    i had implemented functions concept and working on generic 3bit decompression.

  159. anil.rajak says:

    working on generalised compression.

  160. trilok.singh says:

    completed generalised compression, and implemented concepts of function….

  161. sunil110 says:

    implemented function’s concept
    working on general compression….

  162. ravi.shankar says:

    implemented function concepts
    and done 3bit compression….

  163. Nalin Saxena says:

    I have implemented the functions concept

  164. vishal says:

    doing pointer assignment

  165. I have completed the assignments of linklist and trees .But I have doubts coming in assignment.

  166. santosh anand says:

    Dear siddhartha sir,
    1.completed function pointer concept implementation
    2.working on mdc project

  167. ravi.shankar says:

    i have implemented function pointer concept….

  168. trilok.singh says:

    successfully implemented function pointer….

  169. sunil110 says:

    done function pointer…………

  170. pravin.bhalerao says:

    i had implemented function pointer programs.

  171. samta says:

    #done assignment 2
    control structure-conditionals

  172. Amritpreet Singh says:

    studied & implemented various type specifiers, conditional control & loop control statements

  173. pravin.bhalerao says:

    i had implemented all file i/o operations and used command line aruments in c code.

  174. samta says:

    #done
    assignment 3
    except output analysis questn Q2,Q3

  175. sachin says:

    implemented file operation!!!!!1

  176. lalit mahajan says:

    implemented file opration.

  177. samta says:

    #done assignment 4 on arrays

  178. amardeep singh says:

    impemented file I/O operations

  179. amol.wagh says:

    I have done with assigment of function and MDC generelised code with File I/O

  180. $umit. M says:

    int main()
    {
    struct distance
    {
    char a;
    double k;
    double f;
    float p;
    char q;

    printf (“\nSize of the structure is :%d\n”,sizeof(struct distance));

    struct distance new_struct;

    printf(“\n%d\n”,sizeof(new_struct));

    printf (“\nValue in new_struct:%d\nAddress of new_struct:%p\nSize of new_struct:%d\n”,new_struct,&new_struct,sizeof(new_struct));

    return 0;
    }
    ——————————————–
    Output:
    Size of the structure is :28

    28

    Value in new_struct:1091323955
    Address of new_struct:0x410ac0d7
    Size of new_struct:3

    ———————————————-
    Why am I getting the size of new_struct as ’3′???

    On making the following changes to the printf statement solves the problem, but how is the position of sizeof causing a change in output???
    : printf (“\nSize of new_struct:%d\nValue in new_struct:%d\nAddress of new_struct:%p\n”,sizeof(new_struct),new_struct,&new_struct);

  181. $umit. M says:

    There is ‘};’ after ‘char q;’

  182. samta says:

    Done
    #assignment 5 on strings

  183. tanvir520 says:

    sir,
    i am doing assingment on structure and low level file i/o.

  184. samta says:

    #done
    4-bit compression using arrays

  185. samta says:

    #done
    in 4-bit compression using files
    craetion of master array
    and calculation of n

  186. amritpreet singh says:

    performed designation of array,
    mdc completed till phase 4 using files i.e. calculation of number of characters in the master array and the number of bits required for compression(n).

  187. amritpreet singh says:

    completed assignments 1(basics),2(conditional),4(arrays).

  188. arvind verma says:

    MDC Project Phase 1 “Master Array” Completed!

    //Compression & decompression still to be //completed!

  189. Mohit sharma says:

    implemented integer arrays and character array.still working on master array……

  190. deepak garg says:

    I have started this project,I getting problem in How to open txt file

  191. samta says:

    #doubt CVS
    I tried implementing CVS
    all the commands worked properly but in the final stage when did cvs login on the user side and entered the password no error came but it didnt login

  192. amritpreet singh says:

    implemented
    # rcs
    # cvs
    # man page creation

    facing a problem in cvs….login is succesful but when giving $CVSROOt and ls command from client following errors are displayed

    [cvsuser@emblogic emblogic]$ $CVSROOT
    bash: :pserver:cvsuser@192.168.0.39:/cvs: Permission denied

  193. samta says:

    #done
    rcs
    created man pages

  194. arvind verma says:

    1.Master Array Created and Computed the No of BITS for COMPRESSION

    2. Created MAN Pages

    3. RCS and CVS not done by now

  195. amritpreet singh says:

    implemented 4bit compression succesfully.
    just decompression left.

  196. er.mohit says:

    successfully completed master array and calculated code length…..

  197. samta says:

    #done
    4-bit compression and decompression successfully and used files

  198. amritpreet singh says:

    4-bit compression and decompression completed..

  199. arvind verma says:

    implemented rcs

  200. amritpreet singh says:

    implemented
    # 4-bit compression decompression
    # 2-bit compression
    # makefile

  201. amritpreet singh says:

    implemented 2-bit compression & decompression..

  202. piyush jain says:

    i have implemented make file

  203. arvind verma says:

    basics of MAKEFILE implemented!

  204. samta says:

    #done
    1)implemented makefile
    2)implemented 2-bit compression and decompression

  205. amritpreet singh says:

    implemented 3bit compression successfully.

  206. samta says:

    #done
    7-bit compression and decompression

  207. samta says:

    completed
    7-bit compression and decompression
    successfully

  208. amritpreet singh says:

    completed 2-bit,3-bit,4-bit compression decompression.

  209. samta says:

    Completed
    #pointers assignment

  210. er.mohit says:

    implemented file IO ‘s
    facing problem with arguments case…….

  211. samta says:

    completed
    #generalized n-bit compression for any n from 2-7

  212. rahul srivastava says:

    project 1 completed.

  213. pravin bhalerao says:

    i had completed project 01 mdc.

  214. samta says:

    #completed
    1)mdc project for n bit compression and decompression using arrays and files..
    2)class assignment:created a mycp command which functions like cp to copy one file into another.
    **issues faced
    on hw to call the command mycp srcfle destifile without doing ./mycp
    **resolved
    copied the executable file in one of the paths
    **Doubt
    The new file which was created by default doesnt have read permission….had to do chmod 700 then access the new desti file….why is this so?

  215. samta says:

    #completed
    functions assignment
    **issues faced
    1)gets() function doesnt work properly while working in a loop starts taking \n
    2)found that it isnt possible to store the return value from a function into a const
    **resolved 1) by
    while(!strcmp(s,””)||!strcmp(s,”\n”))
    gets(s);

  216. anil rajak says:

    i had completed project 01…

  217. Amardeep singh says:

    i hv completed general code for compression of 2,3,4,5,6,7 bit.

  218. amritpreet singh says:

    implemented
    # general code for compression & decompression for n-bit.
    # completed all assignments before structures

  219. samta says:

    completed
    #Question no.1-7 of assignment low level file opertions
    #Q-1 and Q-2 of structures assignment
    **issues::
    1)resolved the issue of creating a new file with different permision with the help of S_IRUSR etc flags.

    2)facing a problem in reading directories from subdirectories..the directories from current directories are being detected by S_ISDIR but all the files inside the subdirectories are being detected by S_ISDIR as directories..

  220. samta says:

    Completed
    #n bit compression using pointers and files
    #assignment on structures

    issues::
    facing issues while working with union…created a union m{int a;unsigned int b,c;
    }; size fo union is 4 but i m unable to assign values to unsigned int b,c

  221. amritpreet singh says:

    completed
    # n-bit general code for compression decompression using file and pointers.
    # assignment on structure(problem in two questions).
    # assignment on union(problem in 1 question.)

    issues:-
    1.don’t know how to use enum
    2.found the code to identify the processors endianess….but didnt understand
    3. did not understand how to create directories, subdirectories and file in those directories using c program.

  222. amritpreet singh says:

    studied dirent.h but still not clear………..dont know what is stat, s_isdir. s_isreg

  223. samta says:

    completed
    #assignment on file operators
    issues::
    1)in union assignment cleared the issue on unions by using union n{int a;short int b[2]
    }; was having problem earlier as the two short int were pointing to the same memory location…but nw [0] and b[1] nt pointg to same location
    2)purpose of fflsuh still unclear
    3)nt clear with openg a binary file using fopen()

  224. amritpreet singh says:

    succesfully implemented linked list with following operations:-
    ->creation
    ->addition at start
    ->addition at end
    ->addition in mid
    ->deletiom at start
    ->deletion in mid
    ->deletion at end
    ->display

  225. samta says:

    Implemented
    #basics of link lists i.e. creation,insertion,deleteion
    #assignment questions on linked lists i.e. questions 1,4,5,9,8…

  226. samta says:

    completed Q2 of linked lists
    and stacks assignment

    working on scull

  227. samta says:

    #Implemented scull
    with the structures
    struct scull_qset
    {
    char **qdata;
    struct scull_qset *next;
    };
    struct scull_dev
    {
    int rows, cols;
    struct scull_qset *data;
    };

    **used linked lists and double pointers

Leave a Reply to Nalin Saxena Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>