Sunday, 30 January 2011

Sudoku and Java Fundamentals

This week was actually quiet long it seems. TO start of, we worked on something new called the Sudoku game. Its a number puzzle game which requires great deal of algorithms if you are familiar with the game. I was not so it was not the easiest thing for me to get through. SO I worked with Gershon in class on that project. Well basically our first task was to create a 9x9 board and completely randomize the 81 set of numbers so that they do not end up next to each other. And we had to set up a method of count which would indicate what are the chances of randomly throwing numbers on the board, without any form or use or algorithm and achieve a fully solved Sudoku board. The chance of that happening... when Gerson tried the count went up to 7 million.. yes 7 million and the count still did not reach a number so we had to shut down the machine. But the Sudoku board is very premature at this moment right now. All though all the numbers might be different in each row and column with no repetitions, they might not satisfy the criteria for unique set of numbers in each 3x3 box. So we need to work on that because that is a major issue. Any ways that was the first project.
Over the weekend we were supposed to answer 24 multiple choice questions from the book. It was not easy because I did not know what hexadecimal digits are so I had go through the review but I understand it completely now and I feel confident about it. I got 22 multiple choices right but it took me a while because I had to go through the review.

Sunday, 23 January 2011

One Dimensional Plus 2D Arrays

So for the weekend, which was very busy, because of Hockey Marathon and all, we were expected to answer 37 questions of multiple choice from the book. I got 30 out of 37 multiple choice right but in general there was little trouble in understanding the concepts in the book, so that was a plus side but they took a while because they were long and time consuming, not that they were hard but you need a lot of time to figure out and work the questions out. Also on Sunday, when I was tired as hell, I tried to brush up on some Recursion problems in JavaBat and I did like 8 JavaBat's which was good.

Sunday, 16 January 2011

Searching and Sorting Exercise

So for the weekend, we had to complete 33 multiple choice questions. I understood them all well, but it took me nearly 2 hours to do them, because they got a little confusing and I took brakes in middle. Also for the ArrayDemo exercise that we had been working on throughout the week, but I started doing them on Friday when i got back home. I got most of the methods done.But I am still getting used to working with the two Sorting Methods, because they are quiet confusing at times. Also we talked about BinarySearch in class, which is a Search method, which made clear sense. But in class when Gerson started explaining about the whole move method and stuff with the coding for the Towers of Hanoi, just looking at the code made sense, but the algorithm really got to me because I could not get the block to physically move inside my head. But the code looks much simpler. So that is something I need to work with before the test. And also I have like 4 methods of the ArrayDemo which I will complete by Monday night. I just solved like 4 JavaBat recursion questions so I need to work on that aswell.

Sunday, 9 January 2011

Recursions & Diagnostic Test

Over the weekend, I got the chance to start working on recursions on  Java Bat. I needed some external help, so I asked Uri T. for some help, but it was alright. I also got to work on 21 multiple choice from the Diagnostic Test in the Barron's Book. Easy to say, it was not that fun. I got 14 out of 21 right. It was actually quiet challenging and i tried looking at the explanation and it varied, for some I understood my mistake but for the others, it just confused me more so I left the questions. Especially questions 12, 14 and 20, I remain clueless about. I figured that I had problems with questions where there can be more then 2 possibilities to the answer like in question 12 and you have to verify each option one by one. I really need to practice on those questions. Also, question 18, which deals with the output being a numerical value, I could not comprehend the methods and thus I messed up. Overall, its was alright. Further I took a brake from the test and went to Java to work on Recursions while i was taking a brake. I think I understand string-recursion related problems well, so I should be able to do them smoothly.