Skip to content

Improved the time complexity of _rec_curve from O(N^2) to O(NlogN)#10

Open
b-mohebali wants to merge 1 commit intoamirhessam88:masterfrom
b-mohebali:master
Open

Improved the time complexity of _rec_curve from O(N^2) to O(NlogN)#10
b-mohebali wants to merge 1 commit intoamirhessam88:masterfrom
b-mohebali:master

Conversation

@b-mohebali
Copy link
Copy Markdown

The nested loop that was used to calculate the number of times that the norm is less than deviation was improved by sorting the norm and using binary search (bisect_left) to find the number of elements smaller than a given deviation in the norms vector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant