josem / bigoref Goto Github PK
View Code? Open in Web Editor NEWBig O Reference of common algorithms and data structures
License: MIT License
Big O Reference of common algorithms and data structures
License: MIT License
It would be nice to split comparison sorts from other sorting algorithms. Because putting the n log(n)
complexity in orange is misleading as it's the best possible complexity for a comparison sorts. It should clearly be green. Splitting (and maybe explaining the difference) could clarify this problem.
bigoref.com lists the average time complexity of Extract Max for a Binary Heap as O(n log(n)), but it should apparently be O(log(n), as it is on bigocheatsheet.com and in wikipedia:
https://en.wikipedia.org/wiki/Binary_heap#Extract
The other time complexities for binary heap seem wrong too. And for Binomial Heap too, I think,
bigoref.com has the worst case space for bucket sort as O(n + k). Wikipedia lists it as O(nk), which makes more sense to me:
https://en.wikipedia.org/wiki/Bucket_sort
O(log n) time seems odd for any sort algorithm. Wikipedia lists shell sort's best case as O(n log n):
https://en.wikipedia.org/wiki/Shellsort
I wonder why you have included Ternary Tree, but not a regular Trie (Prefix Tree).
It might be good to have Suffix Tree there too.
When the graph is a weighted directed acyclic graph, we can use topological sort to get an O(|V| + |E|) algorithm instead of using Dikstra's O(|V|²) algorithm. Maybe this should be mentioned.
https://en.wikipedia.org/wiki/Topological_sorting#Application_to_shortest_path_finding
Would good to make it more clear that one can update the site via this repo. Additionally http://bigocheatsheet.com/ has finally been updated with new details.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.