[algogeeks] Re: Division into 2 sets

2009-08-14 Thread Ajinkya Kale
is: 1,2,3,4 I divide it into 2 sets {1,4} and {2,3} such that the difference of their sum (1+4=)5 - (2+3=)5 = 0 This is the least possible difference. Pls help. -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed

[algogeeks] Re: Division into 2 sets

2009-08-14 Thread Ajinkya Kale
sorry i meant =0 .. or are negative differences allowed ? On Fri, Aug 14, 2009 at 7:02 PM, Ajinkya Kale kaleajin...@gmail.com wrote: Should the difference be = 0 always ? On Fri, Aug 14, 2009 at 6:57 PM, fundoonick fundoon...@yahoo.co.inwrote: Problem: I have a set of positive integers. I

[algogeeks] Re: Missing numbers

2009-07-29 Thread Ajinkya Kale
use hashing. On Wed, Jul 29, 2009 at 4:50 PM, Vijayasarathy K vijaykan@gmail.comwrote: Consider an array of 'n' elements which contains all except 2 numbers from 1(n + 2). How can we find the 2 missing elements? -- Ciao, Ajinkya

[algogeeks] Re: permuting the elements of an array

2009-06-23 Thread Ajinkya Kale
of an implentation of the spine tree decomposition data structure. It will be released (in Squeak at least) under the MIT license. Thanks for any help provided. Ralph Boland -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you

[algogeeks] Re:

2009-06-02 Thread Ajinkya Kale
, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to algogeeks+unsubscr

[algogeeks] Re:

2009-06-02 Thread Ajinkya Kale
attached* * * * * *Best Regards* *Aminooo.com* http://www.aminooo.com -- Thanks Regards Vaibhav Jain | Product Engineer, Technology @ Rediff.Com India Limited | | E-mail :: vaibh...@rediff.co.in | | Cell :: +91-97691 67938| -- Ciao, Ajinkya

[algogeeks] Re: Semaphore

2009-05-31 Thread Ajinkya Kale
, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to algogeeks+unsubscr

[algogeeks] Re: Deciding on a project

2009-05-28 Thread Ajinkya Kale
. -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to algogeeks

[algogeeks] Re: Deciding on a project

2009-05-28 Thread Ajinkya Kale
code a || tracks.never ever insult industry programmers.. On Thu, May 28, 2009 at 8:48 PM, Ajinkya Kale kaleajin...@gmail.comwrote: Yeah .. I am a programmer too and industry coding sucks most of the times.. You should not opt for real world programming at this age .. make your basics

[algogeeks] Re: Deciding on a project

2009-05-25 Thread Ajinkya Kale
should try to solve some problems fromhttp://www.spoj.pl/or acm.sgu.ru Okay, but I'd like an idea of real-world programming and not just trying to solve hard problems under timed conditions. Any ideas? -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received

[algogeeks] Re: Deciding on a project

2009-05-24 Thread Ajinkya Kale
and is something I can go on with? Other than competing in USACO... Thanks Albert -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

[algogeeks] Re: crossword solver using the exact cover problem (algorithm X)

2009-05-19 Thread Ajinkya Kale
, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to algogeeks+unsubscr

[algogeeks] Re: Algorithmic challenge?

2009-05-08 Thread Ajinkya Kale
spiderc...@yahoo.co.uk As per my previous post, is there anybody who can explain section 3 to me from the PDF mentioned in this link: http://groups.google.com/group/algogeeks/t/6ccc544529b01d10 Any help would be great. A -- Ciao, Ajinkya

[algogeeks] Re: exact solution to this recursion equation

2009-04-02 Thread Ajinkya Kale
merge sort T(n)=2T(n/2)+n=2(2T(n/4)+n/2 )+n=4T(n/4)+2n=4(2T(n/8)+n/4 )+2n=8T(n/8)+3n there will be always only contains linear terms, however ... 2009/4/1 Ajinkya Kale kaleajin...@gmail.com The intuitive proof maybe that if you try to expand the recursion over a few steps

[algogeeks] Re: exact solution to this recursion equation

2009-04-01 Thread Ajinkya Kale
//ww.livejournal.com/users/arunachalam -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from

[algogeeks] Re: exact solution to this recursion equation

2009-04-01 Thread Ajinkya Kale
, for that.i alsow see from first sight that it is O(n^2), but i wane just fo verify that. 2009/4/1 Ajinkya Kale kaleajin...@gmail.com I dont think you even need to solve the recursion .. by looking at it it seems to be O(n^2) right ? On Wed, Apr 1, 2009 at 2:18 PM, Miroslav Balaz gpsla

[algogeeks] Re: Need Help in a new problem

2009-03-14 Thread Ajinkya Kale
/13 Ajinkya Kale kaleajin...@gmail.com If i am not wrong there is a parameterized algorithm for this which is in P On Fri, Mar 13, 2009 at 3:40 AM, Miroslav Balaz gpsla...@googlemail.com wrote: Ok this is NP-comlete... so no fast algorithm is known 2009/3/12 Amina Maarouf

[algogeeks] Re: Find SquareRoot of a number

2009-02-09 Thread Ajinkya Kale
, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to algogeeks+unsubscr

[algogeeks] Re: Backtracking algorithm

2008-11-04 Thread Ajinkya Kale
to indicate to me ? Sincerely, Luciano Soares Pinheiro Jr. Analista desenvolvedor Sr. -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group

[algogeeks] Re: recurrence relation

2008-09-15 Thread Ajinkya Kale
, and the second case shall hold. Where did you get this question from, if I may ask? On Sep 14, 10:00 pm, Ajinkya Kale [EMAIL PROTECTED] wrote: Actually there is one more condition to it but i thought it will be more complicated to mention it, at each step we subtract 2^(ceil(log n) if n

[algogeeks] Re: recurrence relation

2008-09-14 Thread Ajinkya Kale
Sorry i forgot, it is ceil(log n) so n-2^( ceil(log n) ) is not equal to zero.. On Sun, Sep 14, 2008 at 8:57 AM, Karthik Singaram Lakshmanan [EMAIL PROTECTED] wrote: Isn't n-2^logn = 0? since 2^logn = n if you are talking about log base 2 -- Ciao, Ajinkya

[algogeeks] Re: finding whether the number is prime or not ...

2008-06-28 Thread Ajinkya Kale
, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options

[algogeeks] Re: algo for finding the union of two sets ...

2008-06-23 Thread Ajinkya Kale
Yup there are . Refer horowitz sahani book on algorithms called fundamentals of algorithms On Mon, Jun 23, 2008 at 4:36 PM, zee [EMAIL PROTECTED] wrote: do we have an algo for finding the union of two sets ??? data structure suitable for set operations -- Ciao, Ajinkya

[algogeeks] recurrence equation

2008-06-04 Thread Ajinkya Kale
How do we solve recurrence relations of the form: T(c) = T( | c - 2^ceil(log_2(c)) | ) + O( 2^ceil(log_2c) ) What will be the approximate outcome of this equation if not exact ? -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you

[algogeeks] Re: recurrence equation

2008-06-04 Thread Ajinkya Kale
)) | will be 0 if log is base 2. Obviously I am missing something, could you throw some light on that expression? On Wed, Jun 4, 2008 at 10:26 AM, Ajinkya Kale [EMAIL PROTECTED] wrote: How do we solve recurrence relations of the form: T(c) = T( | c - 2^ceil(log_2(c)) | ) + O( 2^ceil(log_2c) ) What

[algogeeks] Re: Empty Binary tree???

2008-06-03 Thread Ajinkya Kale
significance of this? Thanks, Vinodh -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe

[algogeeks] Re: Empty Binary tree???

2008-06-03 Thread Ajinkya Kale
because someone in one subtree of that person married someone in anther subtree many generations later. Dave On Jun 3, 10:48 am, Ajinkya Kale [EMAIL PROTECTED] wrote: On Tue, Jun 3, 2008 at 1:35 PM, Dave [EMAIL PROTECTED] wrote: The definition is recursive. The empty binary tree

[algogeeks] Re: Empty Binary tree???

2008-06-03 Thread Ajinkya Kale
. This happened because someone in one subtree of that person married someone in anther subtree many generations later. Dave On Jun 3, 10:48 am, Ajinkya Kale [EMAIL PROTECTED] wrote: On Tue, Jun 3, 2008 at 1:35 PM, Dave [EMAIL PROTECTED] wrote: The definition is recursive

[algogeeks] Re: A pair-selecting problem

2008-05-28 Thread Ajinkya Kale
-- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

[algogeeks] Re: Enumerating trees

2008-05-14 Thread Ajinkya Kale
on the actual topology of the graph. It should be possible to calculate an upper and lower bound, but for an accurate number for a given graph I think you're stuck with counting them. --- Geoff -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received

[algogeeks] Re: Red Black trees

2008-05-03 Thread Ajinkya Kale
to this group, Can anyone of you please tell me wen will we go for rotations in RedBlack Trees while inserting a new node apart from recoloring. Is there anyway to easily determine which Rotation to be used ? Right or left ??? Regards, Bindhiya -- Ciao, Ajinkya

[algogeeks] Re: An interesting graph problem

2008-02-24 Thread Ajinkya Kale
with a color is remained in the graph. Then use heuristic strategy for salesman problem. any other idea? -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] Re: permuttaion

2008-02-21 Thread Ajinkya Kale
have tried it many times.but not getting it...can anyone help me.. -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

[algogeeks] Re: Frog Problem

2008-02-11 Thread Ajinkya Kale
can choose while moving from A-K -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from

[algogeeks] Re: a non-recursive algorithm that prints all the nodes of a binary tree in O(n)

2008-02-11 Thread Ajinkya Kale
, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

[algogeeks] Re: road traffic

2008-01-25 Thread Ajinkya Kale
Hey I am interested too...pls do let me know what do we have to do.. On 1/24/08, Albert Sanchez [EMAIL PROTECTED] wrote: Hi, Anyone interested in road traffic strategies? Flow optimization, time dependent shortest paths problems? Albert -- Ciao, Ajinkya

[algogeeks] Re: 8 puzzle problem

2008-01-09 Thread Ajinkya Kale
suggest something? -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email

[algogeeks] Re: How is the Big O actually calculated, time wise?

2007-11-22 Thread Ajinkya Kale
these numbers?? I mean I understand it's a O(n^2) sort, but how do you approximate time taken?? Thanks in advance. -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] Re: array of 0s and 1s

2007-11-13 Thread Ajinkya Kale
keep them untouched. Do in ONE PASS without taking extra memory.(modify array in place) -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

[algogeeks] Re: Algo.. phone book

2007-11-09 Thread Ajinkya Kale
-- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

[algogeeks] Re: Finding the n integers given the set of sums.

2007-11-07 Thread Ajinkya Kale
by adding every possible pair. The task is to find the n integers given the set of sums. Any ideas? I've found out the solution but I doubt it the best one... -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you

[algogeeks] Re: Finding the n integers given the set of sums.

2007-11-07 Thread Ajinkya Kale
. Any ideas? I've found out the solution but I doubt it the best one... -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

[algogeeks] Re: Summation formules

2007-10-22 Thread Ajinkya Kale
of any till now. = Thanks Allysson -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

[algogeeks] Re: Spiral number

2007-10-21 Thread Ajinkya Kale
is (0,0) ie origin then coordinate of 11 will be (2,0) and so on . now my problem is if i give coordiante (2,-1) then my program should return 12 . thnkx in advance -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because

[algogeeks] Re: Doubt with summation

2007-10-20 Thread Ajinkya Kale
a explanation how I get the equation below true? Why lg(n-2i) became lg(2i)? Thanks in advance. Allysson -- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] Re: Doubt with summation

2007-10-19 Thread Ajinkya Kale
-- Ciao, Ajinkya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

[algogeeks] Programming-Challenges

2007-10-09 Thread Ajinkya
This is a good group discussing programming problems and algorithms to solve programming problems. http://groups.google.com/group/programming-challenges Check it out ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[algogeeks] Re: Programing problem

2007-10-07 Thread Ajinkya Kale
+ 3 + 0 2 + 2 + 3 - 3 - 1 + 2 + 3 + 3 + 1 - 3 + 2 - 1 + 0 2 + 2 - 1 - 1 + 1 + 3 + 3 + 2 - 2 - 4 - 4 + 2 + 2 + 1 - 1 - 2 + 1 + 1 - 1 + 7 + 2 - 1 + 0 Output 9 16 27 -- PRADEEP MACHARLA Ph:08040141194 -- Ciao, Ajinkya