Skip to content

raphamorim/algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithms

Big O

We can analyze how efficient an algorithm is from the amount of time, storage, other resources it takes to run the algorithm, and a change in the input size. Big O Notation in Data Structure tells us how well an algorithm will perform in a particular situation. In other words, it gives an algorithm's upper-bound runtime or worst-case complexity.

The performance of an algorithm can change with a change in the input size. That is where Asymptotic Notations like Big O Notation comes into play. Asymptotic Notations can describe an algorithm's run time when the input tends toward a specific or limiting value. Asymptotic analysis helps to analyze the algorithm performance change in the order of input size.

Big O Notation in Data Structure is used to express algorithmic complexity using algebraic terms. It describes the upper bound of an algorithm's runtime and calculates the time and amount of memory needed to execute the algorithm for an input value.

Good resources:

--

Sorts

Good resources:

--

Problems

Solution Avg Time Time Complexity
JavaScript #1 424.484ms A1^3
JavaScript #2 7.486ms 2(A1 + A2)
JavaScript #3 9.745ms log A1
Solution Avg Time Time Complexity
JavaScript #1 9.745ms log A1
Solution Avg Time Time Complexity
JavaScript #1 9.745ms log A1

Running

Running Rust exercises

make run lang=rust name=valid-anagram

Running JavaScript exercises

make run lang=js name=valid-anagram

About

Well, it is algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published