Knowlegde Zen
Posts
Post has attachment
**
Here is my solution to the node colouring problem I posted here some time back Hope the image is clear and readable.
Post has attachment
**
Here is an interesting puzzle (graph colouring problem!): In figure below, it shows 5 circular nodes connected by lines. Assuming you have three colours to colour these nodes(One node can use one colour, same colour can be used by any other node subject to ...
Post has attachment
**
Here is the solution for the puzzle cards in envelopes  as some time back here. Its a snapshot of hand written solution on a piece of paper. Hope the image is sharp enough to be readable.
Post has attachment
Cards inside envelopes
Here is a combinatorics related puzzle. We have 6 envelopes numbered from 1 to 6.  Likewise we have 6 cards numbered 1 to 6. You have to put each card in one envelop(it would have only 1 card), such that the card number is never the same as the number of th...
Post has attachment
Solution to the puzzle of Same number of coin tosses
Here is my solution to the probability puzzle asked last week about finding the probability of 2 people tossing a fair coin 6 times independently, and coming up with same number of heads or (tails) I had written it on a paper, so decided to put a image snap...
Post has attachment
**
Here is a nice puzzle about Probability theory. If two people toss 6 fair coins independently at same time, what is the probability that they have same number of tails come up.
Post has attachment
Programming Puzzle to solve
Here is a good programming puzzle I solved over the weekend just to "sharpen my code axe" ------------------------------------------------------------------------------------------------------------------- Ropes and Weights In a room there are N ropes and N...
Post has attachment
17 world changing equations.
Mathematical Equations That Changed the World pic.twitter.com/0He57IQyzk — news.yc Popular (@newsycombinator) March 9, 2014
Post has attachment
All permutations of numbers in Python
Just recently, I was looking to fill an excel sheet with all possible permutations of five numbers : 1,2,3,4,5 . One permutation in each cell. The excel sheet was a test case document and each permutation meant to go in each cell was a test case. Writing al...
Post has attachment
Commands for various tools to do Static Code analysis of C C++ source
Static code analysis is a very important step that every software developer, organisation should carry out to check if the code has any subtle possible issues which could cause bugs in the code. A static code analysis of code using various tools can detect ...