Re: [algogeeks] which is the right data structure to use for a given problem ?

2011-12-24 Thread Swati Ahuja
TREE On 24 December 2011 13:20, atul007 atul.87fri...@gmail.com wrote: If you want to instant search a contact number of person from a phone book. one must be able to use any one of them to search(person name or contact number). for eg : given phone number as input it should return name

Re: [algogeeks] Coprime Numbers

2011-10-28 Thread Swati Ahuja
Any natural no can be written as a product of powers of primes N = a^m × b^n × c^l where a, b , c are prime no.s for given N= 8 × 33 N= 2^3 × 3^1 × 11^1 now we can use combinatorics to find 2 distinct factors a × b such that (a,m)=1 i.e. they are co-primes On 28 October 2011 20:21, SAMMM