Post Reply 
Sorting Strings
07-14-2017, 07:02 AM
Post: #12
RE: Sorting Strings
I have reviewed Didier Lachieze's code more in depth and I am very impressed with it, I have not come up with any way to improve it yet, unfortunately. I say unfortunately because on a real calculator a speed test on a list of 1000 items ran at ~30 seconds. On a virtual calculator on my PC it is closer to ~1 second.

One thing I tried was to replace the CAS sort with a custom QuickSort algorithm that uses the Comp function from Didier. The result is essentially exactly the same as CAS sort for time when tested with the 1000 element list.

Possible ways to improve speed:
- Reduce the number of times the Chunk() function is called. Ideally just once for each element in the list, but overhead to maintain the indices of separate lists has looked to be too expensive. May return to this idea because I have a hunch that roughly half the time might be consumed by the repeated Chunk() calls at each iteration of the sort.
- Other?
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sorting Strings - Jacob Wall - 07-10-2017, 12:18 AM
RE: Sorting Strings - webmasterpdx - 07-10-2017, 04:58 AM
RE: Sorting Strings - Joe Horn - 07-10-2017, 07:22 AM
RE: Sorting Strings - Jacob Wall - 07-10-2017, 05:02 PM
RE: Sorting Strings - Tyann - 07-11-2017, 05:03 AM
RE: Sorting Strings - Tyann - 07-11-2017, 06:06 PM
RE: Sorting Strings - Jacob Wall - 07-11-2017, 06:21 PM
RE: Sorting Strings - Didier Lachieze - 07-11-2017, 11:32 PM
RE: Sorting Strings - Gilles59 - 07-12-2017, 08:28 PM
RE: Sorting Strings - Han - 07-12-2017, 12:32 AM
RE: Sorting Strings - Jacob Wall - 07-12-2017, 05:10 AM
RE: Sorting Strings - Jacob Wall - 07-14-2017 07:02 AM
RE: Sorting Strings - Didier Lachieze - 07-14-2017, 08:11 AM
RE: Sorting Strings - Jacob Wall - 07-15-2017, 03:00 AM



User(s) browsing this thread: 1 Guest(s)