[algogeeks] Re: An interesting problem from Code4bill second round

2006-02-02 Thread prick
hey everybody we all know that we love programming and certainly all are appearing fro code4bill so instead of mugging in a small place why dont we move to a group like CODE4BILL ASPIRANTS. we can discuss problem better there

[algogeeks] Re: An interesting problem from Code4bill second round

2006-02-02 Thread himanshu
hi every1 , I m Himanshu Sawhney , MCA student from D.U. Just joined this group . I've formed a sol. plz chk it out mark_last_cell(start,end,number) { if(start==end) a[start]=1 return mid=(start+end)/2 mark_last(start,mid-1,number-1)

[algogeeks] Re: Generating a Sequence Subject To Constraints

2006-02-02 Thread Gene
A general approach to problems like this is to find an algorithm that maps the integers 0..N-1 to the N possible sequences that satisfy the constraints. Then the problem reduces to finding a random integer.

[algogeeks] Re: round2 result...

2006-02-02 Thread raja
Me also got Promoted. Round 3 is technical. Don't know C++ good. Will rely on C.

[algogeeks] Re: dynamic programming in tree

2006-02-02 Thread Gene
Yes. You can cast the program as a DP, but the memo table may well have size exponential in the number of weights due to the NP hardness. I.e. in general the "DP" degenerates into an exhaustive search. Trees with internal isomorphisms (including A(j) values) improve efficiency. The DP is of the

[algogeeks] Generating a Sequence Subject To Constraints

2006-02-02 Thread [EMAIL PROTECTED]
I've got a problem that's roughly like this: i've got a finite set of objects each of which has the same set of properties describing its current state. I want to create a random ordered list of these objects, but the sequence is subject to certain rules. As an example, suppose that you want to

[algogeeks] Re: Online Programming Contests

2006-02-02 Thread Terry
Only posts related to online programming contests can be posted there , others will be moderated down. You need not be a member of gmail or have an google account. Anyone can post the message.

[algogeeks] Online Programming Contests

2006-02-02 Thread Terry
Hi, I have started a new group for posting online programming contests. Please do post of any online programming contest there , if not please cc. http://groups.google.com/group/iopc Regards Terry.

[algogeeks] Re: dynamic programming in tree

2006-02-02 Thread [EMAIL PROTECTED]
it is NP, but I am have this feeling that there is a dynamic programming to solve it.

[algogeeks] Re: dynamic programming in tree

2006-02-02 Thread [EMAIL PROTECTED]
[a,b] is user input. weights should be inside the interval. if outside, it will be a violation and we would like to minimize it.

[algogeeks] Fwd: IOPC 2006 - The International Online Programming Contest

2006-02-02 Thread Sridhar Ratna
-- Forwarded message --IIT Kanpur, as a part of its technical festival, Techkriti, is organizing IOPC - The international Online Programing Contest The contest will be held on 18th February, 2006, and will run for 18 hours. IOPC provides you a platform to compete with the best aroun

[algogeeks] Re: An interesting problem from Code4bill second round

2006-02-02 Thread Richa Minda
thanx for telling me my mistake i have understand where the probelm liesĀ  well then i wonder how this problem will be solved also i am not very familiar with Dyanamic programming -- Richa

[algogeeks] Re: donald knuth ..

2006-02-02 Thread Vikram Venkatesan
Richa, In your algoritm's second iteration, you can't flip cell 15..beacuse, cell 14 is not 1 by that time..it has already been flipped back to 0... The same holds for all your later iterations.. You might have generalized the result from the first iteration..but, its not so...because, the 1st ite

[algogeeks] donald knuth ..

2006-02-02 Thread SUDARSHAN IYENGAR
Dear friends, I believe there is a separate group focussing on solving all the problems as given in donald knuths' AOCP. Please let me know if there is any such thing. regards, sudarshan