Skip to content
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

Adjust input array for Big O test case #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daniel-dawson
Copy link

@daniel-dawson daniel-dawson commented Jun 21, 2020

Increase number of elements in input array from 1000 to 10000.

Previously benchmarks showed that an input array of 1000 elements was
too small to make a simple nested for loop structure (that is to say, a
Big O(n ^2) time complexity) time out. The increase to 10000 not only
makes the test fail as intended, but gives padding to account for more
powerful machines running the tests inherently faster.

The previous code also shows a comment that seems to show the tests
were intended to equal 10000, which makes it seem as if 10000 was the
intended value all along.

#2

Increase number of elements in input array from 1000 to 10000.

Previously benchmarks showed that an input array of 1000 elements was
too small to make a simple nested for loop structure (that is to say, a
Big O(n ^2) time complexity) time out. The increase to 10000 not only
makes the test fail as intended, but gives padding to account for more
powerful machines running the tests inherently faster.

The previous code also shows a comment that seems to show the tests
were intended to equal 10000, which makes it seem as if 10000 was the
intended value all along.
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