Short answer: either a bucket sort, radix sort or a merge sort depending on the size and range of the data, see https://github.com/jsoftware/jsource/blob/master/jsrc/vg.c
[https://avatars0.githubusercontent.com/u/583748?s=400&v=4]<https://github.com/jsoftware/jsource/blob/master/jsrc/vg.c> jsource/vg.c at master · jsoftware/jsource · GitHub<https://github.com/jsoftware/jsource/blob/master/jsrc/vg.c> github.com GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects. ________________________________ From: Chat <[email protected]> on behalf of alexgian via Chat <[email protected]> Sent: Monday, May 21, 2018 3:47:16 PM To: [email protected] Subject: [Jchat] Implementation of grade up / grade down HI - Can anyone tell me offhand what algorithm is used to implement 'grade up' in J (and I assume also APL). Or any link to the subject appreciated. Thanks! ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
