Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
aa:lab:5 [2023/11/11 19:02]
maria.tudosie
aa:lab:5 [2024/11/18 14:08] (current)
dmihai
Line 1: Line 1:
 ====== Notații asimptotice ====== ====== Notații asimptotice ======
  
-<note important>​Solutii:​[[https://​drive.google.com/​file/​d/​1FZro37pN3XaHOAZUK2ttSy1VR1yKMz83/​view?​usp=sharing]]</​note>​+
  
 $ \Theta(f(n)) = \{ g: \mathbb{R}^{+} \rightarrow \mathbb{R}^{+}\ |\  $ \Theta(f(n)) = \{ g: \mathbb{R}^{+} \rightarrow \mathbb{R}^{+}\ |\ 
Line 81: Line 81:
 ===== Exerciții ===== ===== Exerciții =====
 <​note>​ <​note>​
-În continuare, aveti un {{:aa:lab:lab5notatii.pdf|}} pentru a va ajuta la rezolvări.+În continuare, aveti un {{:aa:lab:cheetsheet-lab05.pdf|}} pentru a va ajuta la rezolvări.
 </​note>​ </​note>​
  
Line 106: Line 106:
   * $ f(n) = \Omega(f(n)\cdot g(n))$   * $ f(n) = \Omega(f(n)\cdot g(n))$
   * $ f(n) = \Theta(g(n)) + \Omega(g^2(n))$   * $ f(n) = \Theta(g(n)) + \Omega(g^2(n))$
 +
  
 4. Verificați valoarea de adevăr a următoarelor propoziții:​ 4. Verificați valoarea de adevăr a următoarelor propoziții:​
  
-  * $ \sqrt{n} \in O(log(n))$ +  * $ \sqrt{n} \in O(\log{n})$ 
-  * $ log(n\in O(log(log(n)))$ +  * $ \log{n\in O(\log{(\log{n})})$ 
-  * $ n \in O(log(n)\cdot\sqrt{n})$ +  * $ n \in O(\sqrt{n}\cdot\log{n})$ 
-  * $ n + log(n\in \Theta(n)$ +  * $ n + \log{n\in \Theta(n)$ 
-  * $\log(n\cdot \log(n))\in\Thet +  * $ \log{(n\cdot \log{n})}\in\Theta(\log{n})$ 
-a(log(n))$ +  * $ \sqrt{n}\in\omega(\log{n})$ 
-  * $\sqrt{n}\in\omega(\log(n))$+
  
 ==== Exerciții - syntactic sugars ==== ==== Exerciții - syntactic sugars ====
Line 130: Line 131:
   * $ f(n) = \Omega(g(n)) \land g(n)=O(n^2) \implies \frac{g(n)}{f(n)}=O(n)$   * $ f(n) = \Omega(g(n)) \land g(n)=O(n^2) \implies \frac{g(n)}{f(n)}=O(n)$
  
 +
 +<​note>​
 +Soluțiile acestui laborator se găsesc [[https://​ocw.cs.pub.ro/​ppcarte/​doku.php?​id=aa:​lab:​sol:​5|aici]]
 +</​note>​