FROM : Daniel Child
DATE : Fri Mar 14 18:46:49 2008
Great suggestion. Thanks.
On Mar 13, 2008, at 5:00 PM, Ben Trumbull wrote:
> One nice thing about sorting, is that this is easy to do: merge
> sort. You can break up the problem as much as you want, and use any
> handy sort function, and then merge the pieces together.
>
> Algorithms for merging are readily available on the net. Ask
> google. It's about 1 page of code to use qsort_r() and a hand
> written merge function.
>
> Merge sort is trivially parallelizable with NSOperationQueue, so
> you can speed things up more when you're ready to tackle that.
> It's 1 page of code to allocate, build dependencies, and run a
> fully concurrent merge sort this way.
DATE : Fri Mar 14 18:46:49 2008
Great suggestion. Thanks.
On Mar 13, 2008, at 5:00 PM, Ben Trumbull wrote:
> One nice thing about sorting, is that this is easy to do: merge
> sort. You can break up the problem as much as you want, and use any
> handy sort function, and then merge the pieces together.
>
> Algorithms for merging are readily available on the net. Ask
> google. It's about 1 page of code to use qsort_r() and a hand
> written merge function.
>
> Merge sort is trivially parallelizable with NSOperationQueue, so
> you can speed things up more when you're ready to tackle that.
> It's 1 page of code to allocate, build dependencies, and run a
> fully concurrent merge sort this way.
| Related mails | Author | Date |
|---|---|---|
| Daniel Child | Mar 13, 16:52 | |
| Jens Alfke | Mar 13, 17:12 | |
| Keary Suska | Mar 13, 17:22 | |
| Daniel Child | Mar 13, 21:42 | |
| Ben Trumbull | Mar 13, 22:00 | |
| Jens Alfke | Mar 13, 23:24 | |
| Ben Trumbull | Mar 14, 02:42 | |
| Daniel Child | Mar 14, 04:34 | |
| Dave Hersey | Mar 14, 05:06 | |
| Nir Soffer | Mar 14, 05:41 | |
| Jens Alfke | Mar 14, 06:00 | |
| Daniel Child | Mar 14, 18:46 | |
| Daniel Child | Mar 14, 18:50 |






Cocoa mail archive

