[algogeeks] Re: Cards collection problem

2009-02-23 Thread Miroslav Balaz
Yes but you mus be careful with c+r. p you should use c*X+r, where X is large enough number. If you X is 2 to 16,(16th power of two), the you get the same as using first two bytes for collection and second for number, but you can use. The radix sort is good idea. But i suppose not to keep data

[algogeeks] Re: Cards collection problem

2009-02-23 Thread Luciano Pinheiro
Ok, Mr. Balaz. 2009/2/23 Miroslav Balaz gpsla...@googlemail.com: Yes but you mus be careful with c+r. p you should use c*X+r, where X is large enough number. If you X is 2 to 16,(16th power of two), the you get the same as using first two bytes for collection and second for number, but you