[GAP Forum] Ascending selection sort algorithm ERROR
    Gordon Royle 
    gordon.royle at uwa.edu.au
       
    Fri Nov 15 00:23:52 GMT 2013
    
    
  
This part is an infinite loop because x is not changed.
Anyway, surely you should just use Gap's sorting functionality.
On 15/11/2013, at 8:15 AM, sam johnson <liveat1892 at gmail.com<mailto:liveat1892 at gmail.com>> wrote:
*         while x > 0 do*
*             if L[x] > max  then*
*                  max := L[x];*
*             fi;*
*         od;*
Professor Gordon Royle
School of Mathematics and Statistics
University of Western Australia
Gordon.Royle at uwa.edu.au<mailto:Gordon.Royle at uwa.edu.au>
    
    
More information about the Forum
mailing list