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.

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to