Chapter 01 — Why Data Structures Matter

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/12

encourage image

There's no tags or description

Looks like no tags are added yet.

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

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards
Data structure
A way to organize data so operations can be performed efficiently
2
New cards
Array
An ordered list of values stored by index
3
New cards
Index
The position of a value in an array, usually starting at 0
4
New cards
Read from array
O(1), because the computer can jump directly to an index
5
New cards
Search array
O(N), because values may need to be checked one by one
6
New cards
Insert at end of array
O(1), if no shifting is needed
7
New cards
Insert at beginning of array
O(N), because existing values must shift right
8
New cards
Delete at end of array
O(1), because no shifting is needed
9
New cards
Delete at beginning of array
O(N), because remaining values must shift left
10
New cards
Set
A data structure that does not allow duplicate values
11
New cards
Array vs set
Arrays allow duplicates; sets prevent duplicates
12
New cards
Set insertion
Slower than array insertion because the set must check for duplicates first
13
New cards
Main OA clue
Know read, search, insert, and delete step counts for arrays and se