Skip to content

Commit 41d14ad

Browse files
committedJan 2, 2020
A tiny bit of the notes
1 parent b3c3d17 commit 41d14ad

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.