Does anybody know what means doubled-star in complexity algorithm like this O(N**3)
? I found that one in PHP's similar_text() function and do not understand it.
thx
** means power. Hence, n**3 means n^3. Complexity is of the order n^3 or O(n^3)
This double star is the exponentiation operator in PHP(^ operator in general for exponentiation).
As per PHP manual,
$a ** $b ---- Exponentiation Operator
Result of raising $a to the $b'th power. Introduced in PHP 5.6.
hence, here the complexity is O(n^3),i.e., O of (n raised to power 3) OR cubic complexity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With