Skip to content

Add quickselect #20

@camilne

Description

@camilne

Issue title

Add quickselect

Issue description

The quickselect algorithm is used to find the k-th smallest element in an unordered sequence.

Details:
Side effects: The sequence becomes partially sorted.
Average-case Time: O(n)
Worst-case Time: O(n^2) --very unlikely
Space: O(n)?, where n is the recursion depth

Checklist

  • Check for existing issue
  • Check for existing pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    algorithmThis relates to an algorithmenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions