Skip to content

The taste of selection_sort and merge_sort is not good. #299

@yesIamHasi

Description

@yesIamHasi

All the sorting algorithms are implemented in Python using C++ thinking which makes the code execution time too high.
The current selection sort algorithm is 65% slower, merge_sort algorithm is 10^4 times slower.
Here's timeit result.
screenshot from 2018-05-19 18-15-11
Here is a better taste of selection sort.
Here is a better taste of merge sort.
Tell me what you think about it?
Should I add it to TheAlgorithms/Python/sorts ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions