Skip to main content
edited tags
Link
Raphael
  • 72.9k
  • 30
  • 181
  • 393
deleted 18 characters in body
Source Link
Raphael
  • 72.9k
  • 30
  • 181
  • 393

In real world applications is there a concrete benefit when using O(log(log(n))$\mathcal{O}(\log(\log(n))$ instead of O(log(n))$\mathcal{O}(\log(n))$ algorithms ?

This is the case when one use for instance van Emde Boas trees instead of more conventional binary search tree implementations. But for example, if we take n < 10^6$n < 10^6$ then in the best case the double logarithmic algorithm outperforms the logarithmic one by (approximately) a factor of 5$5$. And also in general the implementation is more tricky and complex.

Given that I personally prefer BST over VEB-trees, what do you think ?

One could easily demonstrate that :

enter image description here$\qquad \displaystyle \forall n < 10^6.\ \frac{\log n}{\log(\log(n))} < 5.26146$

In real world applications is there a concrete benefit when using O(log(log(n)) instead of O(log(n)) algorithms ?

This is the case when one use for instance van Emde Boas trees instead of more conventional binary search tree implementations. But for example, if we take n < 10^6 then in the best case the double logarithmic algorithm outperforms the logarithmic one by (approximately) a factor of 5. And also in general the implementation is more tricky and complex.

Given that I personally prefer BST over VEB-trees, what do you think ?

One could easily demonstrate that :

enter image description here

In real world applications is there a concrete benefit when using $\mathcal{O}(\log(\log(n))$ instead of $\mathcal{O}(\log(n))$ algorithms ?

This is the case when one use for instance van Emde Boas trees instead of more conventional binary search tree implementations. But for example, if we take $n < 10^6$ then in the best case the double logarithmic algorithm outperforms the logarithmic one by (approximately) a factor of $5$. And also in general the implementation is more tricky and complex.

Given that I personally prefer BST over VEB-trees, what do you think ?

One could easily demonstrate that :

$\qquad \displaystyle \forall n < 10^6.\ \frac{\log n}{\log(\log(n))} < 5.26146$

Source Link

Logarithmic vs double logarithmic time complexity

In real world applications is there a concrete benefit when using O(log(log(n)) instead of O(log(n)) algorithms ?

This is the case when one use for instance van Emde Boas trees instead of more conventional binary search tree implementations. But for example, if we take n < 10^6 then in the best case the double logarithmic algorithm outperforms the logarithmic one by (approximately) a factor of 5. And also in general the implementation is more tricky and complex.

Given that I personally prefer BST over VEB-trees, what do you think ?

One could easily demonstrate that :

enter image description here