Dec-16-2018, 12:23 PM
(Dec-16-2018, 05:14 AM)Skaperen Wrote: are you giving it away, anywhere?
i am looking to modify a sort command to sort by keys of IP addresses.
That was years ago, I'd could maybe find it, but it would be a pain. But I don't think it would be a good idea. Python's sort uses Timsort, which is a more efficient combination of merge and insertion sort. But Timsort is not covered in Introduction to Algorithms, so anything I did would be less efficient regardless of implementation issues. But there are implementation issues, as my sorts were pure Python, and Python's sort is implemented in C, a much faster language.
I would expect that Python's sort with a proper key function would be faster than anything I had implemented.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures