Monday, October 8, 2007

The report until now........

It's sunday night and now I've developed the programs (on paper) for Graph including functions for adding a vertex, adding an edge, performing a breadth-first-traversal (bfs) and performing a depth-first-traversal (dfs). Initially, the program could make up for unwieghted directed graphs only, but now I've introduced another array to synchronously contain the weights of the edges..... and it should work fine as far as I can see till now........ I think a little addition will equip my code to deal with the undirected graphs also..... or might the already there code might be sufficient....... I still need to check and might be to modify it....... One thing really interesting happened........ Ravi and Subhash fortunately happened to visit my room and have a very exhaustive discussion over the working and correctness and also on what all could be added possibly to the code to enhance it....... I explained the internals and the working algorithm of my code to them and it was really enjoying....... I think this is the best method we all could apply to carry our code-development activity at a rapid pace........ because you know nobody in this place in willing to help in any way..... and each student is expected to develop such complex logics by himself and that even when the classes are not at all good enough to help us understand the concepts and get ourselves comfortable coding those concepts........ I have yet not been able to get a good cover on the B-Tree..... I've only coded the search function for the B-Tree; and the insert function and the delete function are still remaining....... and they are really tough stuff to code because insert function involves breaking nodes.................. while delete function requires joining nodes......... and these breakings and joinings are really tough as far as I see to it till now...... You need to see whether there is room for the new node to be inserted....., if yes do the insertion in the proper node without involving any breakings...... if not...... insert the node and find the median element in the node....... shift it one level up...... and break the node into two at the point of the median element........ and follow the same procedure way up to the root............................................... and do you why so much pain in implementing the B-Trees.......... because they grow not at the bottom like the Binary Search Tree (BST)..........................., but at the top.................. You can never create a leaf node in a B-Tree to insert a new value..... you simply insert the value in the appropriate place and if the node has more values than could be allowed......... travel the median value up the node and repeat the process untill you are over upto the root of the B-Tree....... For now, I've planned to code the rest of the algorithms on Graphs.............. and I am to start with them......Bye....

Saturday, October 6, 2007

A big challange ahead........

Now, after the MGPA's are over, the big challenge ahead is the first MGPT (Machine Graded Programming Test). It's surely tougher than the MGPA's and as far as I know it's really going to be a big oracle for all of us...............
There are four MGPT's over the year...... and this is the first among them......
Each MGPT consists of two questions - one from OOPJ and the other from DSAL...... one can solve either or both of the questions......... In all, there are eight questions out of four MGPT's, of which one needs to clear at least two..... Till the last batch it was necessary to clear just two questions..... both could be from the OOPJ or both could be from DSAL..... but I've heard that this time it might be like at least one from OOPJ and one from DSAL must be cleared...
The topics that are expected in the MGPT are general OOPJ problem solving; and DSAL structures like AVL trees, B-Trees, Graph and algorithms related to Graphs......

I am done with topics upto the BST, but after that I'm still on the way to implement the rest of the topics like B-Trees, Graph and the rest of the algorithms...... I did generate the code for the AVL tree last night; and the search function for the B-Tree today morning....

I hope I should be over with the B-Tree by tonight; and I should complete Graphs by tomorrow night.....
However, I'm finding it very difficult to generate the code for these because seldom of the books, be it those I brought from home or be it those in the library of NCST, describe the topics in an appreciable way or provide a proper coding approach to the problem......
I even asked Sachin Sir to name any such book.... He suggested one book from the library but.... yet he said that no book can appreciably get one that much satisfaction..... The only thing one could do is to try understanding the code by oneself and try developing the code by himself.... So let me try coding and see what all happens....

One thing sure......, the course is now really gearing up in a rapid manner....., but the only hard thing about it is that you need to help yourself........ nobody is going to help you a single bit at all...... It's all about do it yourselves.......

A tryst with 'Failure'........................

Today it was the tenth and the last MGPA (Machine Graded Programming Assignments ) here at CDAC, Bangalore......... and it sadly came out to be a failure for me. I was already fearing of the dreaded event this time because graph among other topics was probable to come for the test........ And this time..... like the last one..... one of the assignments of the OPAD handbook was to come for the test.... I could find three of them based on graphs...... ..... one concerning the 'Deadlock Detection', next the one for finding the shortest path according to water level, and the last one regarding the Consistency of prerequisite couses........ But I was not expecting graphs.... simply because everytime there used to be such a great hype and what all used to come....... a silly problem which took not more than 10 or 15 minutes of coding..... and no more than 10 or 15 minutes to type and submit the problems at all...... all this gave me the illussion that it was really very annoying to work so hard till late night..... and most of the time keeping awake the whole night even before the days of the MGPA's..... to find a solution to some probable problems ........ and to my utter disappointment no such problem of that kind did ever come for the MGPA..

Instead, I revised all other DSAL assignments which I had already done before but was finding them blurred in my memory....... and also developed several others that I found possible to tackle on the night just before the current MGPA..... Then after working for the whole night....... I felt I should work for the 50th and the 51st problems also...... and I did....... but by then I was so tired of coding..... and that too.... on paper..... that I could afford only to write the crucial parts of the logic that I could develop for both of the problems in the meanwhile...... .... And by the time I appeared for the MGPA, I was poised to see the same 50th assignment before me......

I wasted no time.... and started coding down whatever logic I had developed the previous night...... It was a long piece of code because it included the most details required............ and it, I could assume, should have run run successfully..... and should have passed the PARIKSHAK.... but you never know it perfectly until you actually implement it and submit it to the PARIKSHAK......

In the machine session, my fear exactly came to surface and I was caught in my program clogged in the PARIKSHAK.... with two out of 5 X's and 3 Y's .....

Friday, September 28, 2007

Today it was the 9th MGPA.....

It was the 9th MGPA today...... and it was already intimated that one of the Student Assessment Assignments(SAA) was to come for the test...... At one extreme, it was a matter to be happy about..... because these problems were already worked upon and I was familiar with them...... but at the other extreme, some of the problems like the 14th, 15th and the 16th assignment problems... I still have difficulty in solving them.... But then.... nobody has yet solved the 15th and the 16th one..... They are really tough stuff... and must be out of place if given in MGPAs......!!!!!!!
I've heard that some people have got over the 14th one.... but still that stuff is yet too good for MGPA.. In the rest of the assignment problems I found the 8th one (permutation problem) really wierdy.... because I got the recursive code from the DSAL book and yet it didn't work fine at all....!!!!!!!! The 12th problem (Maze problem) is somewhat tricky, yet managable.
Yesterday I kept praying and guessed that the last three problems should not come in the MGPA9.. I revised code of all the OOPJ programs I had done so far.... and then I mugged up Sushant's logic for the 8th problem (Permutation problem) and Ravi's logic for the 12th problem (maze problem)..... and went to sleep not quite late at night....... because 'Gyanesh Sir' did warn me in the previous MGPA not to look sleepy in the class..........
It was the today morning..... and as usual, I woke up around 9'O clock.... I got ready for the test. It was so nice to see that it was problem number 7 (Removing zero rows and zero columns from a given matrix...) it was so easy that it took just 12 to 13 minutes to solve it...... the rest of the time I had to again sit idle in the lecture hall and wait until it was 11'O clock....
After that all of us came down to the lab at ground floor..... I typed my program... but not in a hurry..... I didn't want to repeat the mistake I made earlier.... then I compiled it for it might contain typing errors.... but all was well... then I hit a submit on it.... and it simple came out with all the Y's......
Now I have 9 MGPAs on my record..... and I feel I have a good impression on Raman Sir... All this necessarily work good for my future....

What rubbish are we getting for our meals ????????

It's really a mess out here in CDAC as far as the meals are concerned..... Could you imagine getting meals of such a bad quality in the mess that I have had been vomiting regularly for the last two weeks and.... not only me..... most of the others are experiencing the same...... The meals... whether in the afternoon or at night..... are never upto the mark..... they are simply rubbish.... Especially today night......., I couldn't at afford to go for the meal after having the very first sight of the ingredients ....... there was something bloody-red....., (nobody ever could guess what all are they given to eat.... it's simply put..... close your eyes and have it inside..... without applying any thought or reasoning....... because it's the mess of CDAC......) and something grassy..... and CHAPATIs like PAPPADs ....... and PAPPADs like CHAPATIs............ and watery DAHI (curd)................
Oh.......! It's simply toooooooooooooooooooo.............................. good to nibble and get inside.......
I'm taking medicines all the way to keep up my digestive system....... but alas.........! it's not working..... but how could it actually work.......????? After all the food must be something like that for the humans.... not the hoofed creatures........

I certainly need to go ahead and make a complaint against all this..... oh.....! but today it's friday.....!!!!!!!!!
Need to wait another two days..... because it is the weekend and nobody would be there to make a heed to what I and the others have got to say.......
Ok....... let's see.................

Friday, September 21, 2007

Mam's superb presentation......

Today was a very busy friday..... as we had classes right from the morning.... MFCS class in the first session..... then the DSAL class ....... and then somebody came up saying there was to be a TCOM session too..... I was so tired and so unwiling that I just did not want the TCOM session to happen that day at all...... Then some students opted to go and ask the admin staff if the TCOM session could be postponed to some other day.... probably the very next day if possible..... and lo......... Uma ma'm came up and declared that it was meant for the staff only.... however any student if interested could very well attend the presentation and that Sawani Ma'm was to the one who was to give the presentation... and the topic of her presentation was "Rhetoric Structure Theory"..... that is the relation among various sentences of a whole paragraph, in fact, a whole lot of text.....
Now, this was something irresistible at all..... firstly because Sawani Ma'm was to give away the presentation... and secondly it was related to the "Artificial Intelligence". The session was concerned with "Natural Language Processing" through computers....
A lot of this I could infer from the presentation at all..... that there can be sentences or even parts of sentence.... and they may be related to each other in different forms depending upon the intent of the author.... what all the author wants to convey....
A single piece of text could be broken down and a binary tree could be constructed as according to importance and precedence of its parts...
Then I came to know about what is called..... nucleus and the satellite. nucleus is the central idea or the theme that the author want to emphasise upon...... while satelite is that part of the sentence or a different sentence at all... which may be present to support that central idea....
And what could be the cause behind all such things that Ma'm said was to help computers be able to translate not only sentences from one language to the other, but also to translate the ideas of the author into the target language.....
It was really.... an informative session..... and I think it's quite a loss for those who didn't attend the session..... They could have learnt so much out of it that it can never be accomodated in this blog.....

Thursday, September 20, 2007

A little hurry... got it all down......

Yes, it was all in a hurry..... and what a bad luck.... I could better not do what i did....
Last week, I was short ofone blog... and what more happened was that the gnyan server went out for the whole days right on saturday and sunday.... the days on which I used to devote time for writing blogs......
However, on Sunday night, it became available for sometime..... and it was the time I and every other student in CDAC could do his or her blog-writing..... But I was so sort of words, in fact, I was not able to think ofany topic I could blog upon.....
Finally, I decided to try google search on some random words.... because the time was running out..... and I had to have completed my blog....
I tried some words arbitrarily.... to see if I could find some good stuff on it. Finally, I found some really good and informative stuff by searching for the word 'confidence'.
I was really fascinated by whatever was written about it. Ithought this could serve the purpose well.... and what I did was that I copied the content and pasted it in my blog.
But, now I can see that copying is no way going to yield anything other than harm as far as TCOM assignments are concerned..... even if there are reasons for it.

Yet, I can see the ground beneath this harshness and which is very much justified... if I stand on the other side of the table.....

I should really appreciate the way Sawani Ma'm handles things and the way she answers questions put to her is so nicely placed that it really wins her listeners..

At times, I feel that that if I were in her place, might be that I couldn't tolerate some of the incidents that take place and the way they take place.......

Really, tolerence grows with experience...... and this is very very evident from Sawani Ma'm....