Re: [algogeeks] Re: C o/p gud one try

2011-04-03 Thread DIPANKAR DUTTA
printf() is not so much strong in type conversion...it does not able to perform correct type conversion...:) On Thu, Mar 31, 2011 at 1:24 PM, sourabh jakhar wrote: > these kind of question are compiler dependent > > > if you are preparing for interview than these kind of questions are not > asked

Re: [algogeeks] How to Implement a HashMap

2011-04-03 Thread hammett
And amortization of growing the table when N reaches the capacity. On Sun, Apr 3, 2011 at 7:46 AM, vaibhav agrawal wrote: > For implementing a HashMap, I believe following things need to be > determined: > > 1. Good Hashing Function > 2. Allocation of an array of pointers containing the structure

[algogeeks] Constructor and Destructor

2011-04-03 Thread MANNU
Write a program to create an array of strings. Read and display the strings using constructor and destructor. Do not use member function. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegro

Re: [algogeeks] Re:

2011-04-03 Thread Raunak Agrawal
lol :P On Sun, Apr 3, 2011 at 9:32 PM, Carl Barton wrote: > Haha > > > On 3 April 2011 15:28, Arpit Sood wrote: > >> assignment problem ? haha >> >> >> On Sun, Apr 3, 2011 at 7:16 PM, Dr. Deepak Garg wrote: >> >>> Beta, puchna hi tha, to mujhse puchte! >>> Anyways, you will get the solution in

[algogeeks] Re: How to Implement a HashMap

2011-04-03 Thread rAun007
Hi Vaibhav, I perfectly understood your point but my question is: Which data structure will you use to implement the HashMap if you have to implement ur own HashMap. On Apr 3, 7:46 pm, vaibhav agrawal wrote: > For implementing a HashMap, I believe following things need to be > determined: > >

Re: [algogeeks] Re:

2011-04-03 Thread Carl Barton
Haha On 3 April 2011 15:28, Arpit Sood wrote: > assignment problem ? haha > > > On Sun, Apr 3, 2011 at 7:16 PM, Dr. Deepak Garg wrote: > >> Beta, puchna hi tha, to mujhse puchte! >> Anyways, you will get the solution in tomorrow's lecture @1pm. >> I have gone through your profile. See me in my c

Re: [algogeeks] DP sorting

2011-04-03 Thread Rahul Singal
Hey Samba, Check this solution dp[i][j]= cost required to get the sorted sequence from index i to index j dp[i][j]= min(dp[i+1][j] + (i-j)*indexof(i) in the sequence ,dp[i][j-1] + (i-j) *indexof(j) insequence) Since the current state depends on only previous 2 states so you can optimize space to

Re: [algogeeks] How to Implement a HashMap

2011-04-03 Thread vaibhav agrawal
For implementing a HashMap, I believe following things need to be determined: 1. Good Hashing Function 2. Allocation of an array of pointers containing the structure of the key and values to be stored. The size of array could be determined, based on the number of key/value pairs to be stored, and

[algogeeks] CFP with Extended Deadline of Apr. 10: The 2011 International Conference on Computer Graphics and Virtual Reality (CGVR'11), USA, July 18-21, 2011

2011-04-03 Thread A. M. G. Solo
Dear Colleagues: Please share the announcement below with those who may be interested. Thank you, Organizing Committee   CALL  FOR  PAPERS ===   Extended Paper Submission Deadline:  April 10, 2011    

Re: [algogeeks] Re:

2011-04-03 Thread Arpit Sood
assignment problem ? haha On Sun, Apr 3, 2011 at 7:16 PM, Dr. Deepak Garg wrote: > Beta, puchna hi tha, to mujhse puchte! > Anyways, you will get the solution in tomorrow's lecture @1pm. > I have gone through your profile. See me in my cabin after the class. > Make sure that you attend tomorrow'

[algogeeks] STUDENT SHOULD READ THIS AND PLEASE FORWARD THIS WE ARE STUDENTS LIKE YOU TOO

2011-04-03 Thread ArPiT BhAtNaGaR
MNIT JAIPUR PRESENTS YOU KAMPUSATTACK.COM Biggest Social Platform For Students by Students - Enjoy Spiced up Social Networking With Hot Features! - Get Connected To Constillation Of Young Brains Like You! - Access & share useful collection of Ebo

Re: [algogeeks] Re:

2011-04-03 Thread LALIT SHARMA
:P On Sun, Apr 3, 2011 at 9:46 AM, Dr. Deepak Garg wrote: > Beta, puchna hi tha, to mujhse puchte! > Anyways, you will get the solution in tomorrow's lecture @1pm. > I have gone through your profile. See me in my cabin after the class. > Make sure that you attend tomorrow's lecture. For now, stu

[algogeeks] Re:

2011-04-03 Thread Dr. Deepak Garg
Beta, puchna hi tha, to mujhse puchte! Anyways, you will get the solution in tomorrow's lecture @1pm. I have gone through your profile. See me in my cabin after the class. Make sure that you attend tomorrow's lecture. For now, study dynamic programming.. On Apr 3, 6:03 pm, SANDEEP AAMIN wrote: >

[algogeeks] How to Implement a HashMap

2011-04-03 Thread rAun007
Hi Geeks, I was trying to find a good approach to implement a Hash Map of your own but got confused by searching the answer on the net. It would be very much appreciated if we can discuss different approaches and the best way to implement the same. Regards, Raunak -- You received this messa

Re: [algogeeks] graphs

2011-04-03 Thread SANDEEP AAMIN
> > > QUESTION : input a number C , an output all of the ways that a group > of ascending positive numbers can be summed to give C. for e.g if > C=6,the output should be > 1+2+3 > 1+5 > 2+4 > [solve using dynamic programming] > > please tell me about this..d > -- You received this message becaus

[algogeeks]

2011-04-03 Thread SANDEEP AAMIN
hey guys please help me to solve this QUESTION : input a number C , an output all of the ways that a group of ascending positive numbers can be summed to give C. for e.g if C=6,the output should be 1+2+3 1+5 2+4 [solve using dynamic programming] please tell me about this.. -- You received this

Re: [algogeeks] Re: Microcontroller LED project

2011-04-03 Thread SANDEEP AAMIN
hey guys please help me to solve this QUESTION : input a number C , an output all of the ways that a group of ascending positive numbers can be summed to give C. for e.g if C=6,the output should be 1+2+3 1+5 2+4 [solve using dynamic programming] please tell me about this.. On Sun, Apr 3, 2011 a

[algogeeks]

2011-04-03 Thread SANDEEP AAMIN
question : A programmer wants to test whether or not n given conditions are all simultaneously true (e.g he may want to test whether both x>0 and yhttp://groups.google.com/group/algogeeks?hl=en.

[algogeeks] Re: Microcontroller LED project

2011-04-03 Thread bittu
In Hurray but after seeing ur post,i can tell you, you make code in Assembly Lang. , u can use 8085 Microprocessor & 51 micro-controller its very simple to code to display using assembly80 using 8085 ,i have done may programs in collage using 8085 assembly & don't remember now,,hope it will help

[algogeeks] DP sorting

2011-04-03 Thread ankit sambyal
Hey guys help me solve the following DP problem: An N-element permutation is an N-element sequence of distinct numbers from the set {1, 2, ...,n}. For example the sequence 2,1,4,5,3 is a 5-element permutation. P is an N-element permutation. Your task is to sort P in ascending order. But because it

Re: [algogeeks] graphs

2011-04-03 Thread Akash Mukherjee
wouldn't a modified dijkstra do the trick?? On 4/2/11, Tech id wrote: > Given a directed graph G, with V vertices and E edges. Each edge in E > is associated with a real number ‘r’,a reliabilty factor with r > between 0(exclusive) and 1(inclusive). You are also given a pair of > nodes u and v. Fi

[algogeeks] Microcontroller LED project

2011-04-03 Thread cegprakash
i've to do a project for my end semester.. its very urgent.. i'm going to construct a 10*10 LED board i've to display 2 digit numbers in the board by a micro controller also i donno which language i should code.. In a clear way i've to control all the LED's using a program. If you know any system

Re: [algogeeks] Popular Puzzle of the week

2011-04-03 Thread shady
we are already getting your feed on the algogeeks, and please don't keep on posting all kind of stuff. don't put puzzles, put algorithmic questions. one more thing, most of your puzzles are also not original. On Sun, Apr 3, 2011 at 1:18 PM, Lavesh Rawat wrote: > > Hi, > > Based on most comments,

[algogeeks] Popular Puzzle of the week

2011-04-03 Thread Lavesh Rawat
Hi, Based on most comments, The popular puzzle of the last week is http://dailybrainteaser.blogspot.com/2011/04/1april.html?lavesh=lavesh Please subscribe and follow this blog to show your liking to the blog. -- "Never explain yourself. Your friends don’t need it and your