-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize Median method from TC O(N log N) to Linear Time Complexity #23
Optimize Median method from TC O(N log N) to Linear Time Complexity #23
Conversation
…) to O(N) using IntroSort Algorithm Median now uses introSelect algorithm merging between quickSelect and medianOfMedians Algorithm feat[DataTomeUtils]: Adding dt_min helper function to get minimum value between two values and swap to swap two values resolves (AlexandreHiroyuki#18)
The CI broke with the following error:
You have to include some library to use the min function. |
…function instead of cpp std lib
New error:
It seems like the auto keyword is not supported on the version we need. |
Refactored dt_min and CI tests ran successfully |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
implementing IntroSelect algorithm which merges between quickSelect and medianOfMedians algorithms with utilities functions dt_min named after lib name to prevent conflict and swap.