in reply to Sloooooow algo in Perl
Yeah, and while you're at it, give us typical values for the inputs (@a, @sigmainit, @dinit, and whatever else this algorithm needs to run).
the lowliest monk