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).
compression done without using file IO.I need classes on file IO and function…
attend Todays session.
done compression using string. need file i/o sessions
sir, need i/o classes .. i have done compression and decompression using strings.
Today i am completed maste_array.
start compression the string.
practice of all command study in today.
Today i am completed compression of 4 bit by using file IO. Now working on decompression….
4-bit decompression done…
done 4bit compression using file IO
4-bit compression,decompression done using file io.
done the 4 bit compression & decompression.
done the practice of todays class work……..
sir still making master_array
I done with master array, code length and work with compression ….
done master array….yesterday doing compression.
done 4-bit compression,now doing decompression
.
imlemented mdc project using pointers..please tell me how to make the general code.
Done master_array,code-length and now working on compression using file i/o.
Sir,
Done with 4 bit compression using file i/o.
Now working on 4 bit decompression.
Done 4 bit decompression and now move to 2 bit compression and decompression.
Done 2 bit compression and decompression and now doing 3 bit compression.
Done with 3 and 5 bit Compression & Decompression and also implemented integer , character arrays
understanding the concept of read file and open file commands and use of perror
In 4 bit compression ->master array,code- length using file i/o done sucessfully,,,,,now working on compression…..
working on 2 bit master_array==>codelength==> 2bit compression==>working on decompression…
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?
Done compression and decompression 2,3,4,5,6,7 bit.
Now working on making a generalised project
I had implemented
mdc compression and decompression for any
number of bits using FILE IO
testing
testing no
master array and code length found out
trying compression
Project #2 completed.
Compression and decompression of 2-7 bit data done using a general code.
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.
Implemented compression and decompression -2 to 7 bit with file i/o.. trying to implement the generic code
with make file..
i had completed user input
mdc compression and decompression for any
number of bits using FILE IO
i had implemented the code of mdc compression and decompression by using pointers & double pointers for any
number of bits .
I had completed 4 bit compression and now i am working on decompression.
Completed 4-bit compression and decompression
completed 2 bit compression,Decompression
working on 3 bit compression!
compression of 4 bit compeleted working on decompression.
done 4 and 2 bit compression,,,now working on decompression…….
4 bit decompression done.
I am working on 4- bit compression in which I have completed fileio,master array ,code length,indexing and working on compression.
sir i had completed master array, code length. now i am working on 4 bit compression.
I have done MDC project for all the bits. Just facing a very little problem while storing the master array into pointers.
i m working on the code lentgh of the master array.and then after compression is in queue
I am completed the 3 bit master_array ==> code_length ==> compression ==> working on decompression.
Sir,currently working on master array,and also going through assignments of array side-by-side..
Working on and verifying the concepts of arrays, pointers & double pointers.
4-bit compression and decompression done.
3-bit compression done working on 3-bit decompression.
Now work on 2-bit comp and decompr
i had implemented following things
1) char pointers
2) double pointers
Now work with 2-bit compression and decompression
I have implemented char and double pointers.
i’ve implemented pointers using integers and char,and double pointer
i have done 4 bit compression, now i’m working on 4 bit decompression.
i had implemented project of double pointers
today i’ve implemented double pointers.
issues in master array resolved and i m working on pointers
cannot convert the letter into uppercase with the help of strupr function
implemented project of double pointer
implemented master_array.
I have completed 3 bit master_array=>codelength=>indexing=>3 bit compression =>3 bit decompression.Working on 5 bit compression.
Just about to finish with master array.
Done with MDC project using pointers. Project given by Siddharth sir on double pointers has also done.
I have completed 4-bit mdc project and working over 2-bit……..
x = 10;
z = x / ++x;
printf(“x = %d\n”,x);
printf(“z = %d\n”,z);
it prints-
x = 11;
z = 1;
z = 1 HOW..??
ok i got it..!!
I have completed 2-bit compression and working over decompression.
3 bit compression and decompression done.
I have completed 2 bit and 4bit compression decompression and working on 3 bit compression.
i’ve completed 2 bit and 4 bit compression and working in 4 bit decompression…
I have completed 2,3,4,5,6,7 bit compression & decompression.
I have completed 2 bit,3 bit,4 bit mdc project
and working on 5 bit.
i have completed 4-bit compression and decompression.
i have completed 4-bit,2-bit compression and dcompression and now working on 3-bit decompression
i have done 2,3,4,5,6,7 comp-decompression and now working on generalized code.
i am working on creation of master array.
2,3,4,6 bit compression and decompression done working on generalize code for compression.
i have successfully run programme, speratly stored header file and definetion file…
Sir,
i have done 2,3,4,5 bit data compression and now working on general case!
I have implemented generic form of mdc using array,function & pointer.
implement the static,const and extern variable
do the basic of compression and decompression
i have completed assignment given by siddhart sir on today session i.e compression and decompression of 2 bit………
i implemented and analysed the program that includes operators ,variable specifires.
and implement basics com/decompression.
i did Compression and decompression of 2 integers in 1 charecter.
i have implemented,static,constant,and extern variables and do the basic comp-decompressio.
i done logical operator and also complement….
start assignment 1st..
sir,
i am doing practise on structure.
when using lint command it gives error “command not found” please give me solution
what is lint command
implemented type specifiers like const, extern and static
and also implemented logical operators
i have done the mdc project with function pointers using structure pointers
I have done the generelized code for 2,3,4,5,6,7 bit compression and decompression,
generalized code for 2,4,5,6,7 bit compression done
doing assignment of fileio and functions
double pointer project/assignment completed
string length of array which stores compressed string shows string length zero in case of 5 bit compression.
give me a solution.
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.
i have practiced by implementing ‘for’ loop & printf & solved problems give in the class.
(on 3-11-12).
Implemented integer
array..!!
I’m getting problem in doveloping master array.
I’m getting segmentation fault error.
Though I checked it at every point, but I could not correct it..
Implemented integer array..!!
Implemented integer pointer..!!
Implemented function ptr..!
struct link *n1;
n1=malloc();
printf(“%p”,&n1);
printf(“%p”,n1);
what’s difference in both address?
i have done integer to character compression & decompression.
(on October 31, 2012 )
I have implemented integer array.
i have done impementation of array with enum.
implemented integer ARRAY….
implemented INTEGER ARRAY….
i implement int array and also i used enum in it.
Implemented integer array and character array.
Working on master array.
Master array successfully generated.
completed the code for master array and found the number of bits to be compressed. Optimizing the code is in progress, but still facing minor problems.
Completed the code for 4-bit compression and decompression. Code optimization still in progress.
implemented CHARACTER ARRAY…
i have implemented two dimensional array & also worked on character array.
i have implemented two dimension array & char array.
implemented integer array & character array…
sir,
i implemented 1-d and 2-d array.
I have implemented character and two dimensional array.
I’ve implemented 1-D and 2-D array.now working on master array…..
Implemented 2d array & character array.. now implementing master array
I have completed 5bit ,6bit and working on generalised form.
i have completed compression and decompression of 4, 2, 3, 5, 7 bit . now i m working on generalised form .
master array implemented…
Implemented Master Array using file system successfully.
Implemented Master Arrary.
Done 2,3,4,5,6 bit compression and decompression and now working on generalized form.
Working one general code for mdc!
working on master array……
done 2,3 & 4 bit compression….
general code working for 2 and 3 bit. Code giving problem for 4,5,6,7 bit!
implemented double pointer….
working on double pointers
happy diwali
done 4 bit compression and implemented double pointer
Create Manual page and practice project management tool i.e., RCS.
Completed Double Pointer Project
To Siddhartha sir;
Sir,could not complete configuration of CVS server..Will complete before tommorws class.Regards-Santosh Anand
i am not able to view the documnents of RCS utility.
i have completed 2 and 4bit compression…
created man page, done with rcs and cvs….
Created man page,done with rcs,
done with assignment of pointer (queries in 2 que)
created man page done with rcs,there is some problem in cvs test.txt file not import
sir,
i have start working on rcs and creat man pages
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]#
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 /]#
how can i add a rule to allow inbound connection using on TCP on port 2401
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.
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.
What kind of error are you getting while implementing cvs server?
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.
i have completed RCS , man page create.
working on cvs…..
i have completed RCS man pages
i have done rcs ,man pages
I have completed rcs and man pages……
i have done rcs ,man page and debugging.
i have done 4 bit compresion & decompression using arrays..
assignment of pointer completed except 15 no. Question.
implemented double pointer project….
completed double pointer project…
completed double pointer project…
I have completed project on double pointers
I have implemented double pointer project….
i have completed double ptr project
I have completed the project on double pointers..
i have completed the project on double pointer.
i had done double pointer project.
Completed the project of double pointer
completed the project of double pointer.
Sorry for posting it late. I have completed the double pointer project.
completed double pointer project…
completed double pointer project.
completed double pointer project…!
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…
completed 5 & 6 bit compression & dcomp working on 7 bit dcomp.
To siddhartha sir,
1.today implemented the function concepts discussed in class.
2.working on mdc project for 4 bit compression.
function implement done and continuing with function assignment.
i hv implemented fn with/witout return and with/without passing argument
i have implemented functions in c program
call by refrence function implementation done …
working on 3 bit compression & assignment 1
Working on functions and trying to implement it in the double pointer project.
Continuing with assignment of function
i have done the functions call by value and call by refrence ,pass by value,pass by refrence….
implemented functions concept. & working on 7 bit decompression.
Implemented functions Concept
Implemented function pointer concept
Implemented file operaions
implemented functions concept.
i had implemented functions concept and working on generic 3bit decompression.
working on generalised compression.
completed generalised compression, and implemented concepts of function….
implemented function’s concept
working on general compression….
implemented function concepts
and done 3bit compression….
I have implemented the functions concept
doing pointer assignment
I have completed the assignments of linklist and trees .But I have doubts coming in assignment.
Dear siddhartha sir,
1.completed function pointer concept implementation
2.working on mdc project
i have implemented function pointer concept….
successfully implemented function pointer….
done function pointer…………
i had implemented function pointer programs.
#done assignment 2
control structure-conditionals
studied & implemented various type specifiers, conditional control & loop control statements
i had implemented all file i/o operations and used command line aruments in c code.
#done
assignment 3
except output analysis questn Q2,Q3
implemented file operation!!!!!1
implemented file opration.
#done assignment 4 on arrays
impemented file I/O operations
I have done with assigment of function and MDC generelised code with File I/O
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);
There is ‘};’ after ‘char q;’
Done
#assignment 5 on strings
sir,
i am doing assingment on structure and low level file i/o.
#done
4-bit compression using arrays
#done
in 4-bit compression using files
craetion of master array
and calculation of n
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).
completed assignments 1(basics),2(conditional),4(arrays).
MDC Project Phase 1 “Master Array” Completed!
//Compression & decompression still to be //completed!
implemented integer arrays and character array.still working on master array……
I have started this project,I getting problem in How to open txt file
What kind of issue are you facing kindly elaborate
#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
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
#done
rcs
created man pages
1.Master Array Created and Computed the No of BITS for COMPRESSION
2. Created MAN Pages
3. RCS and CVS not done by now
implemented 4bit compression succesfully.
just decompression left.
successfully completed master array and calculated code length…..
#done
4-bit compression and decompression successfully and used files
4-bit compression and decompression completed..
implemented rcs
implemented
# 4-bit compression decompression
# 2-bit compression
# makefile
implemented 2-bit compression & decompression..
i have implemented make file
basics of MAKEFILE implemented!
#done
1)implemented makefile
2)implemented 2-bit compression and decompression
implemented 3bit compression successfully.
#done
7-bit compression and decompression
completed
7-bit compression and decompression
successfully
completed 2-bit,3-bit,4-bit compression decompression.
Completed
#pointers assignment
implemented file IO ‘s
facing problem with arguments case…….
completed
#generalized n-bit compression for any n from 2-7
project 1 completed.
i had completed project 01 mdc.
#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?
#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);
i had completed project 01…
i hv completed general code for compression of 2,3,4,5,6,7 bit.
implemented
# general code for compression & decompression for n-bit.
# completed all assignments before structures
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..
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
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.
studied dirent.h but still not clear………..dont know what is stat, s_isdir. s_isreg
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()
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
Implemented
#basics of link lists i.e. creation,insertion,deleteion
#assignment questions on linked lists i.e. questions 1,4,5,9,8…
completed Q2 of linked lists
and stacks assignment
working on scull
#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