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

Should most entries have no Theta() time complexity set listed? #128

Open
D-Zimarev opened this issue Feb 20, 2018 · 2 comments
Open

Should most entries have no Theta() time complexity set listed? #128

D-Zimarev opened this issue Feb 20, 2018 · 2 comments

Comments

@D-Zimarev
Copy link

D-Zimarev commented Feb 20, 2018

  • In set terms Theta() is the intersection of O() and Omega() [more info at the highest ranked answer in this complexity question on stackoverflow].
  • Very few algorithms have Theta() (merge sort being one of the few examples), however all algorithms in the cheatsheet seem to have entries).
  • There also seems to be mixing between best, average, worst and the mathematical concepts of big Omega, Theta, O.
@D-Zimarev D-Zimarev changed the title Should most entries not have a Big Theta() listed? Should most entries have no Big Theta() listed? Feb 20, 2018
@D-Zimarev D-Zimarev changed the title Should most entries have no Big Theta() listed? Should most entries have no Theta() time complexity set listed? Feb 20, 2018
@glebec
Copy link

glebec commented Jul 1, 2018

Just saw that the cheat sheet has conflated the ideas of best/average/worst input case vs Big Omega / Theta / O. I’m disappointed, these are NOT the same concepts at all. The sheet as it stands is incorrect.

Related to #124

Huntz256 added a commit to Huntz256/BigOCheatSheet that referenced this issue Jul 25, 2018
@umanwizard
Copy link

Very few algorithms have Theta()

This is still a misunderstanding. You are still confusing big-Theta and big-O with average vs. worst case. Big-whatever has nothing to do with probability! Quicksort for example is Theta(n * log(n)) average case, Theta(n^2) worst case.

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

No branches or pull requests

3 participants