Browse Source

Update 'lista4.md'

capella 7 years ago
parent
commit
5742eb0b2c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lista4.md

+ 4 - 1
lista4.md

@@ -114,4 +114,7 @@ puts (v1+v2).sort[size-1, 2].join(" ")
 
 Vamos provar que é $O(lg n)$.
 
-$$T(n) = T(\lceil x/2 \rceil) + O(1)$$
+$$T(0) = 1$$
+$$T(n) = T(\lceil x/2 \rceil) + O(1)$$
+$$T(n) = T(\lceil x/2^i \rceil) + i$$
+