HHC 2015 RPL Programming Contest
|
10-24-2015, 12:23 AM
Post: #11
|
|||
|
|||
RE: HHC 2015 RPL Programming Contest
(10-21-2015 07:16 AM)Werner Wrote: The only thing missing is units support, and that will most probably never make it, the 'sort engine' can't support it. Good to hear you did some work with LSort, and IMHO unit support isn't a big deal, others may disagree. Unfortunately I am of no help regarding your wordsize query within ASM. Did you manage to implement a "natural" order sorting algorithm for strings? Much later after our discussions it dawned on me that if I wanted a more "natural" order for strings (especially for strings containing numeric values) I could simply pad all the strings with spaces (or any character really) so that the content is right justified with empty place holders to the left, then the standard sting sorting algorithms would probably handle them just fine and result in a sort order that I would prefer. One would simply need to check for the longest string, then pad all other strings to the same length. After sort, removing spaces and be done with it. I never got around to benchmarking such a implementation with System RPL, but in theory it shouldn't take that long even for 1000 elements in a list. Jacob |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HHC 2015 RPL Programming Contest - David Hayden - 10-05-2015, 01:48 PM
RE: HHC 2015 RPL Programming Contest - David Hayden - 10-07-2015, 01:59 PM
RE: HHC 2015 RPL Programming Contest - C.Ret - 10-07-2015, 04:59 PM
RE: HHC 2015 RPL Programming Contest - Joe Horn - 10-08-2015, 04:42 AM
RE: HHC 2015 RPL Programming Contest - C.Ret - 10-08-2015, 03:57 PM
RE: HHC 2015 RPL Programming Contest - David Hayden - 10-20-2015, 02:18 AM
RE: HHC 2015 RPL Programming Contest - Claudio L. - 10-20-2015, 01:03 PM
RE: HHC 2015 RPL Programming Contest - Gerald H - 10-20-2015, 02:47 PM
RE: HHC 2015 RPL Programming Contest - Jacob Wall - 10-20-2015, 11:28 PM
RE: HHC 2015 RPL Programming Contest - Werner - 10-21-2015, 07:16 AM
RE: HHC 2015 RPL Programming Contest - Jacob Wall - 10-24-2015 12:23 AM
|
User(s) browsing this thread: 2 Guest(s)