data structures and algorithms

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:37 PM on 8/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

37 Terms

1
New cards

data structure

way of structing data inside the ram

2
New cards

random access memory

where all the data is stored longterm

3
New cards

what does the random indicate in RAM?

can jump to any address in the same amount of time

4
New cards

what is ram measured in

bytes

5
New cards

a byte is how many bits?

8

6
New cards

bit

a position that can store either 1 or 0

7
New cards

Integers are represented with how many bytes

4 bytes or 32 bits ex:1 is represented by 31 0s and one 1

8
New cards

address

value stored in distinct location

9
New cards

arrays are stored in RAM in what way?

Contiguous

10
New cards

ASCII characters take up how many bytes?

one byte

11
New cards

address = start +(index*size) is what time complexity

o(1) because it plugs the index of desired into the formula and automatically gets it

12
New cards

linked list are stored in what way?

non-contiguous( stored across address with pointers connecting them

13
New cards

call stack

region of ram that tracks where you are in the programs chain of function calls

14
New cards

what happens in the call stack when a function is called?

pushes a stack frame onto the call stack

15
New cards

StackOverFlow

recursion with no base case

16
New cards

Heap

holds dynamically allocated data that needs to outlive the function that created it

17
New cards

CPU(central processing unit)

brain of computer

18
New cards

register

handful of storage spots (16- 32) built directly into the cpu

19
New cards

ALU(arithmetic logic unit)

does actual math and logic

20
New cards

control unit

located in the cpu; reads instruction one at a time and orchestrates everything

21
New cards

clock

a timer that paces every step in the cpu

22
New cards

cache locality

pool of memory that sits between the CPU and RAM

23
New cards

L1 cache

tiny(tens of KB) 1ns access

24
New cards

L2 cache

biggers than L1(hundreds of KB) 3-10ns access

25
New cards

L3 Cache

bigger than L2 cache (severalMB) and 10-20ns access

26
New cards

how much time does it take to access RAM

100ns access

27
New cards

how many bytes of data does the CPU fetch and then store in cache

64 bytes

28
New cards

when grabing arr[0] it also grabs arr[0] to arr[7] what does this explain

why sequential is faster

29
New cards

what flavor of cache locality has to do with pulling data near what you just accessed?

spatial locality

30
New cards

what flavor of cache locality has to do with accessing same data again

temporal locality

31
New cards
32
New cards
33
New cards
34
New cards
35
New cards
36
New cards
37
New cards