We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3c3d17 commit 41d14adCopy full SHA for 41d14ad
chap02_computational_complexity/basics.txt
@@ -0,0 +1,17 @@
1
+Facts
2
+- Acessing a memory location or storing a val in a memory location is O(1).
3
+- Acessing a value or stroing a value in a list is O(1) as well.
4
+- The size doesn't change the time needed to access/store the val in mem/lst.
5
+
6
+Here's some operations that take constant time to execute.
7
+- Add two numbers
8
+- Multiplication of two numbers
9
+- Comparing two values
10
11
+Basically, any arithmetic calculation or comparison can be
12
+considered as a constant time operation.
13
14
+Space/Time
15
+- Space: the amount of RAM needed to solve a problem
16
+- Time : measure how the number of operations grow as data size grows
17
0 commit comments