Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Challenge: sort weekdays in week-order (elegantly and efficiently)

by kcott (Archbishop)
on Jul 26, 2022 at 19:59 UTC ( #11145769=note: print w/replies, xml ) Need Help??


in reply to Re^2: Challenge: sort weekdays in week-order (elegantly and efficiently)
in thread Challenge: sort weekdays in week-order (elegantly and efficiently)

G'day Rolf,

"I have trouble finding a canonical explanation of Orcish Manoeuvre, ..."

"A Fresh Look at Efficient Perl Sorting" describes many sorting techniques. The section on OM points to a footnote with details of a book by the inventor of this algorithm. I don't own, nor have I read, this book, so I can't comment further.

"... but isn't Memoize faster in this case?"

Try Benchmark to answer that. Please post your results: I, and no doubt others, would be interested.

— Ken

  • Comment on Re^3: Challenge: sort weekdays in week-order (elegantly and efficiently)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145769]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-09-30 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (126 votes). Check out past polls.

    Notices?