Wednesday, November 10, 2010

Computer Networks Lab

Here are the Computer Network Lab programs written by me. It includes all programs. Except hamming, all the programs are short and sweet.

Kindly verify the outputs before studying. I have verified the output on Ubuntu. Its running fine.

Monday, November 8, 2010

Web Programming Lab

You might have stared preparing for your Lab internal exams. Here I give you the lab programs written by me in Web designing. This will help you in case you are not finding all of them at one place. I'm not sure with the output of 5(b). Please verify whether it is the required output or not.

~3.5 MB

Unzip the file and copy the entire folder in the root directory of your web server. If you have installed XAMPP, then the root directory is C:\xampp\htdocs. The best way to learn web designing is to make changes in the code and learn its effects.

One important thing. For typing these programs I highly recommend you to use Notepad++. This is a special editor especially for programmers. If you don't have it, then you can download it for free at You can also use other softwares such as Aptana Studio. For Aptana Studio you need to have Java runtime installed on you system. You can download Java runtime for free if you don't have it. You can also use Microsoft Expression Web.

I am aware that you need lab programs in Computer Networks also. Don't worry I'll be posting it very soon. Till then, hope this helps.

Thursday, October 14, 2010

Materials for campus preparation

Dear friends,

You might have been worrying about what to study for preparing for placements.Also most of you might be interested to know about my experience in written tests and interviews.Here I present you some of the best materials according to me for placements. Also I share my experience about how I managed to make it through all of the tests and interviews that I attended.

Please find the attached material and stop wasting your precious time searching for interview materials over the web.

Download interview materials (~20 MB)

If you have slow internet connection, then you may want to check only this document in which I give tips on how to crack the interview and share my experience in campus selections.

Show me (~27 KB)

For any clarifiations, add a comment below.


Wednesday, May 26, 2010

The USA Computing Olympiad (USACO)

The USA Computing Olympiad (USACO) is the premier pre-college computing

organization in the USA. Its goals include:

  • Providing pre-college students with opportunities to sharpen their
    computer programming skills
  • Enhancing the quality of pre-college computer education by providing
    both students and teachers with challenging problems, training materials, and
    competitions that emphasize algorithm development and problem-solving skills.
  • Providing pre-college students with opportunities to sharpen their
    computer programming skills
  • Recognizing excellent students with outstanding skills in computer science
    and encouraging them to pursue further opportunities in the profession.
  • Providing educational, motivational, and competitive materials in the
    form of programming competitions and web-based training materials.

    1. Register for the training pages and start
      working through the material to hone your competition computing
      skills. You'll automatically join a low-traffic mailing list (ten
      short messages per year) that will remind you of contest dates.
    2. Compete in the contests to work
      your way into the elite programmers invited to international level



Monday, May 24, 2010

FS lab program corrections

You need to make these corrections in the programs (you might have taken the print outs):

1. First program is not satisfying the question. In case 2, take input from a file (and not stdin) and use getline for reading (and not >> operator).

2. In unpack method of RRN, variable length, primary index and secondary index programs, change the last statement from
p = strtok(NULL, "#"); strcpy(marks, p);
p = strtok(NULL, "\n"); strcpy(marks, p);

3. In the delete method in both the primary index and secondary index program, change the comment from
//we delete the record only in the index file
//we delete the record only in the record file

4. In the delete method in the linked list program, change the condition from
if(strcmp(first->usn, _usn) != 0) {
if(strcmp(first->usn, _usn) == 0) {

These are the updated programs except first one.

Tuesday, May 11, 2010

Let me know the corrections to make in my programs


As most of you have followed my programs in file structures lab, I'm very happy. But there were some minor corrections in the programs as some of our friends reported.

As most of you have also taken the print outs of my programs, I will post the corrections so that you can just mark in your print outs and the program will remain the same. The first program was not satisfying the question and the correct program was posted by Hardik on my blog

I need some help from you. Please debug my programs for various inputs and let me know about the corrections. Reply before sunday so that I can post the corrections to all.


Sunday, May 9, 2010

FS Lab Program - 1

Hello Friends,

The updated Program -1 (Reversing the names) is available here.
Click to Download.

Hardik Kotecha

Thursday, May 6, 2010

Updated programs for FS lab

Hi friends,

Finally I have done the program for B-trees and B+ trees. There were some minor corrections to make in the earlier programs as well. So here is the link to download all the 12 programs fully updated.
Kindly delete the programs which you had downloaded earlier. Before studying any program, make sure that you are getting output for it. My first program is not satisfying the question. You have to use two input files for the second case: one is the input file from which you read the names and the other is the output file into which you write the reversed names. I didn't take an input file. Sorry for the inconvenience.


Saturday, May 1, 2010

FS Lab videos

Dear all,

I am very happy that my work on the video tutorials of FILE STRUCTURES LAB was greatly appreciated. Thanks to all.

But there are some corrections you need to make:
1. The sorting of the index files is mandatory and not optional as I have mentioned in the video. Even though the program will work well if the index file is not sorted, Divya madam told me that its mandatory.
2. There was a minor logical error in the "hashing" program, even though you are getting the output. I had skipped just one line in the retrieve case.
3. For the "linked list" program the file should not be opened in ios::app mode
You can download the updated programs by clicking here.
The old link to download will also link to the updated programs now.

Here are the the links to download the remaining video tutorials.

6. Index to secondary key
7. Co-sequential processing
8. K - way merge
11. Hashing
12. Reclaiming free space using linked list

I have also made a video of the making of these videos. If you are interested then here is the link to download the making
Making of FS videos

Please let me know your views and suggestions and errors if any.

Manish kumar

Tuesday, April 27, 2010

File Structures Lab

Hi friends,

I discovered recently that most of you are facing difficulties in File Structures Lab. It is also very difficult to memorise the programs. Keeping this in my mind, I have for you the programs written in a very simple style. These programs are comparatively shorter and are self explanatory.

Here is the link to download the lab programs. I have done all programs except B-trees and B+ trees. These 2 programs will be posted by next week.

And to your surprise, I am also making video tutorials for each lab program and also a video featuring Introduction to FS Lab. (5 + 1) videos are already finished and the links to them are below:

Introduction to FS Lab

1. Reversing the names

2. Fixed length records

3. Variable length records

4. RRN - Variable length

5. Index to primary key

One request i want to make is please study each program perfectly before moving to the next one. Watch the videos sequentially, starting from the first to the last, because the concepts are linked from the previous program to the next program.

The rest of the videos are under construction and will be posted soon. Sorry for the delay but I am in my hometown. Please do watch these and post me your comments and suggestions which I am eagerly waiting for.

Manish kumar