Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: how sort works

by tilly (Archbishop)
on Mar 08, 2011 at 07:35 UTC ( #891962=note: print w/replies, xml ) Need Help??

in reply to Re^2: how sort works
in thread how sort works

Do you know whether Perl's mergesort has borrowed a lot of ideas from Python's timsort?

Replies are listed 'Best First'.
Re^4: how sort works
by JavaFan (Canon) on Mar 08, 2011 at 10:19 UTC
    I do not think so. John P. Linderman ported a C implementation of "Optimistic Merge Sort" by Peter M. Mcilroy to Perl. The comment in pp_sort.c says that this was presented at SODA '92, but that seems a typo. The ACM portal claims it was SODA '93. Citation. The article itself is downloadable - for a fee.

    Now it may very well be that timsort implemented the same algorithm, but I do not recall ever hearing any reference to timsort on the p5p mailing list.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://891962]
[thao4]: thao4
[hippo]: Indeed you are.
[thao4]: Hi all, I am new in perl. I need do somthing in perl: exemple: - search a patern "CADRE 1.1 CPU" in one file.txt - incremente +30 lines from the line with the patern found - replace the patern "Model Regle" by "Heath Rule A" in this new line (30 line

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2018-02-21 09:38 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (276 votes). Check out past polls.