Computer science

Algorithms

Estimates of comparisons, operations and execution time.

Computer science

Linear search comparisons

Cworst = n→
Computer science

Binary search comparisons

Cworst = ⌈log₂(n+1)⌉→
Computer science

Bubble sort comparisons

C = n(n−1)/2→
Computer science

Operation execution time

t = N / R→
Computer science

n log₂n estimate

C = n log₂n→
Computer science

Linear algorithm

C = c × n→
Computer science

Quadratic algorithm

C = c × n²→
Computer science

Parallel speedup

S = T₁ / Tₚ→
Computer science

Amdahl's law

S = 1 / ((1 − p) + p/n)→
Computer science

Parallel efficiency

E = S / n→
Computer science

Hash table load factor

α = n / m→
Computer science

Balanced search tree height

h = log₂n→