Saturday, June 19, 2004

A Trip down memory lane

I visited my native place after a period of 8 years. I realised for the
first time, how deep routed relegion in my country (India) is. In the 10 days
I had, I travelled, travelled, met people, and travelled. Aah! what a good
break from my routine work!

Saturday, May 22, 2004

Golden Ratio

Of late, I have read a lot about Golden Ratio and why it is also called
the devine number. For example, Golden Ratio hashing is among the best
known hash algorithms. Don Knuth, in chapter 2 of Metafont draws an
'A' the area of the upper half to lower half is 0.618. The same ratio
occurs all throughout our skeleton structure - see Dan Brown - "Da
Vince Code"

Sunday, May 16, 2004

Infinite number of twin primes

I think I have a proof of the fact that there are indeed
an infinite number of twin primes. But I am not
a professional mathematician and shy about my proof.
The proof seems so simple, that I wonder why nobody else
discovered it so far (Am I correct about this one?). That
makes me doubt my proof.

Can anybody help review it?
Here comes the answer

The C99 draft specification says section 6.10.3.4

If the name of the macro being replaced is found during this scan of the replacement list (not including the rest of the source file s preprocessing tokens), it is not replaced.

Sunday, April 25, 2004

Updates and the C question

Its been extremely long since I posted something. I have been extremely
busy with a lot of things. I think I found a proof for the fact that there exist
an infinite number of twin primes. I am not sure if this proof has been
discovered at all.

I have been working with mathematical analysis on my own and I am
stuck with Topology, Bolzano Weierstrass theorem.

Enough of mathematics, I found a very interesting thing about
the C PreProcessor

Lets say, you have the following code


#define a b
#define b a

int
main(void)
{
int a, b;
return 0;
}


What do you expect a and b to be replaced as?

Answer in the next blog

Ranking and Unranking permutations

I've been a big fan of Skiena's Algorithm Design Manual , I recently found my first edition of the book (although I own the third ed...