Re: [Tutor] Sorting large numbers of co-ordinate pairs

2009-03-12 Thread Lie Ryan
Dinesh B Vadhia wrote: Have a large number (> 1bn) of integer co-ordinates (i, j). The i are ordered and the j unordered. I want to create (j, i) with j ordered and i unordered ie. from: ... 6940, 22886 6940, 38277 6940, 43788 ... to: ... 38277, 567 38277, 90023 38277, 6940 ... I've

Re: [Tutor] Sorting large numbers of co-ordinate pairs

2009-03-12 Thread Alan Gauld
"Dinesh B Vadhia" wrote Have a large number (> 1bn) of integer co-ordinates (i, j). I want to create (j, i) with j ordered and i unordered ie. I've tried the dictionary route and it works perfectly for small set of co-ordinate pairs but not for large sets as it hits memory capacity. One

Re: [Tutor] Sorting large numbers of co-ordinate pairs

2009-03-12 Thread Kent Johnson
On Thu, Mar 12, 2009 at 9:43 AM, Dinesh B Vadhia wrote: > Have a large number (> 1bn) of integer co-ordinates (i, j).  The i are > ordered and the j unordered. > > I want to create (j, i) with j ordered and i unordered ie. > > from: > > ... > 6940, 22886 > 6940, 38277 > 6940, 43788 > ... > > to: >

[Tutor] Sorting large numbers of co-ordinate pairs

2009-03-12 Thread Dinesh B Vadhia
Have a large number (> 1bn) of integer co-ordinates (i, j). The i are ordered and the j unordered. I want to create (j, i) with j ordered and i unordered ie. from: ... 6940, 22886 6940, 38277 6940, 43788 ... to: ... 38277, 567 38277, 90023 38277, 6940 ... I've tried the dictionary route and