Re: [algogeeks] Re: Saving and restoring Binary trees in files

2013-11-08 Thread Vishnu
> >> >> >> >> >> >> >> >> >> >> >> >> Regards, >> Kumar Raja. >> > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To unsubscribe fr

Re: [algogeeks] os ques about paging

2011-09-24 Thread Vishnu Ganth
oup, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- ~VISHNU~ -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post

Re: [algogeeks] Amazon question SDE

2011-09-20 Thread vishnu VR
This can be done using binary indexed tree. Thanks and Regards, Vishnu Vardan Reddy Onteddu Software Engineer KeyPoint Technologies India Pvt Ltd. 9Q1A, 9th Floor, Cyber Towers, HITEC City, Madhapur, Hyderabad – 500081. T: +91 40 40337000 Extn 70__ F: +91 40 40337070 www.keypoint-tech.com

Re: [algogeeks] main function

2011-07-25 Thread Vishnu Ganth
Output will be 5 4 3 2 1 as static variable will be initialized only once. -- 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 algog

[algogeeks] Re: Need to compare large and adhoc files in Java

2011-06-09 Thread vishnu madiga
Cant see my mail going out On Fri, Jun 10, 2011 at 12:26 AM, vishnu madiga wrote: > > > > > Need to compare large and adhoc files (the files may have 1 milliion rows) > in java. > So need to load these files in a datastructure and based on a set of rules > , need to r

[algogeeks] Need to compare large and adhoc files in Java

2011-06-09 Thread vishnu madiga
Need to compare large and adhoc files (the files may have 1 milliion rows) in java. So need to load these files in a datastructure and based on a set of rules , need to realign and compare these rows. Can you advice which datastructure/Collection class is best fit. Or anyway I need to custom code t

[algogeeks] Java DataStructure advice needed - Need to compare large and adhoc files (the files may have 1 milliion rows)

2011-06-09 Thread vishnu madiga
Need to compare large and adhoc files (the files may have 1 milliion rows) in java. So need to load these files in a datastructure and based on a set of rules , need to realign and compare these rows. Can you advice which datastructure/Collection class is best fit. Or anyway I need to custom code t

[algogeeks] Java DataStructure advice needed - Need to compare large and adhoc files (the files may have 1 milliion rows)

2011-06-09 Thread vishnu madiga
Need to compare large and adhoc files (the files may have 1 milliion rows) in java. So need to load these files in a datastructure and based on a set of rules , need to realign and compare these rows. Can you advice which datastructure/Collection class is best fit. Or anyway I need to custom code t

Re: [algogeeks] challenging problem , looking for a quick and a best algorithm

2011-06-07 Thread vishnu madiga
Frns, Any more tries / suggestions? On Tue, Jun 7, 2011 at 11:26 PM, vishnu madiga wrote: > Good suggestion Navneet.. I had a similar solution but am looking for > something more faster. > Performance is a major consideration to me. The possible permutations for a > large set o

Re: [algogeeks] challenging problem , looking for a quick and a best algorithm

2011-06-07 Thread vishnu madiga
a design choice whether you want to have a single > DS like above to contain both Credit and Debit based calculations or > have separate multi-lists for Debits and Credits. > > > On Tue, Jun 7, 2011 at 7:39 PM, vishnu madiga > wrote: > > find a combination of credits and debits

[algogeeks] Re: challenging problem , looking for a quick and a best algorithm

2011-06-07 Thread vishnu madiga
Generally we will have random set of credits and debits (which can have many to many matchings). We need to find a match such that we are left with minimum possible credit/debit which is unmatched. On Tue, Jun 7, 2011 at 11:09 PM, vishnu madiga wrote: > find a combination of credits and deb

[algogeeks] challenging problem , looking for a quick and a best algorithm

2011-06-07 Thread vishnu madiga
find a combination of credits and debits which will sum out to zero in a given set of credit and debit values. It's not necessary to have a one to one match between a debit and credit. For example, the parent may lend $25 and $75 to its subsidiary and receive back 3 payments of $20, $40 and $40. T

[algogeeks] Re: Finding the distance between two permutations of a string of length N

2006-05-18 Thread vishnu priya
Let the string be str1. Sort that string and form a map of sorted string and their positions in the original string .   example :consider string "computer"    sorted map will contain c 1 e 7 m 3 o  2 p 4 r  8 t 6 u 5   Let the permuted string be  "comtepur