Help:=proc() print(`min1(A), NaiveS(A),randL(L,M)`): print(`QSp(A)`): end: #randL(L,M): a random list of length L drawn from [0,M] randL:=proc(L,M) local i,ra: ra:=rand(0..M): [ seq(ra(),i=1..L)]: end: #min1(A): the minimal entry of a list A #followed by the rest min1:=proc(A) local i,ch,L,cu: L:=1: ch:=A[1]: for i from 2 to nops(A) do cu:=A[i]: if cu