Maximal points

January 6, 2009 at 10:11 am (Unsolved)

Define a partial order in points on Rn based on their coordinates i.e. A>B iff all coordinates of A are greater than coordinates of B. Give an efficient algorithm to find the set of all maximal points from a given input set.

Permalink Leave a Comment

Closest pair problem

January 3, 2009 at 5:01 pm (Solved)

Given a set points in 2D give an algorithm to find the closest pair of points amongst them. Generalize for Rn.

I know a O(nlogn) solution for 2D. Hopefully it will generalize for Rn.

Permalink Leave a Comment

Convergence

December 25, 2008 at 7:14 am (Solved)

Consider sequence a1, a2,… with a1=1, a2=2, ak = smallest integer such that there is not 3-term AP in a1, a2,…,ak. Prove that \Sigma a_i converges.

This actually is almost true due to Erdős conjecture.

Permalink 1 Comment

Trees again

December 25, 2008 at 7:07 am (Solved)

What is the necessary and sufficient condition for a given tuple (g1, g1,…, gk) to be the degrees of the vertices of a tree? In case they are what is the number of labeled trees possible?

Permalink 2 Comments

IMO’08 Prob 3

December 24, 2008 at 12:03 pm (Solved)

Prove that there are infinitely many positive integers n such that  n2+1 has a prime divisor greater than 2n + √(2n).

Permalink 1 Comment

Hall’s theorem

December 23, 2008 at 6:55 pm (Solved)

Prove it.

Permalink 1 Comment

Trees

December 20, 2008 at 4:38 pm (Solved)

Prove that number of labeled trees with n vertices is nn-2.

Permalink 1 Comment

Bird watch

December 18, 2008 at 2:05 pm (Uncategorized)

“n” birds are sitting on (0,1). Each bird sees the nearest neighbor. Find the average number of birds being seen.

Permalink 1 Comment

Almost there

December 14, 2008 at 12:30 pm (Theory of computation)

Prove

2CNF \in P

‘think i found the proof. Here’s how it goes. We construct a graph out of the given statement. If there are n-symbols, then we have 2n vertices, corresponding to the symbols and their negations. Then we connect two vertices a to b with a directed edge iff the statement contains “~a or b”.  We remove all self loops. Create a matrix which stores the distances between each pair of vertices. That’s it!

Permalink Leave a Comment

Figure this out

December 9, 2008 at 6:07 pm (Theory of computation) (, )

Let P(n) denote the number of partitions of n then 

nP(n) = \Sigma_{<r,j>\in [1,n]*[1,n]} rP(n-jr)

If you do not get the notation, the pair <r,j> vary over [1,n]x[1,n] so take n2 values.

The proof turned out to be real nice. The left hand side is the sum of all the elements of the partitions. To get the RHS count the number of times “i” occurs and the number turns out to be P(n-i) + P(n-2i) + P(n-3i) + P(n-4i) + … QED

Permalink Leave a Comment

Next page »