Array Properties and Time Complexities

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

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:23 PM on 7/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards

What is an Array's strength?


O(1) random access by index.

2
New cards

Is an Array fixed or dynamic?


Fixed size in traditional arrays; dynamic arrays can resize.

3
New cards

Array Access


O(1)

4
New cards

Array Search


O(n) - Must scan through elements unless already sorted.

5
New cards

Array Insert


Beginning/Middle: O(n) because elements must be shifted.

End: O(1) if space available

6
New cards

Array Delete


End: O(1); Beginning/Middle: O(n) because elements must be shifted.

7
New cards

Does an Array preserve order?


Yes. Elements remain in insertion/index order.

8
New cards

Array Weaknesses


Slow insertions and deletions in the middle; traditional arrays have fixed size.

9
New cards

Common Array Use Cases


Indexing, iteration, matrices, lookup tables.

10
New cards

Does an Array preserve order?


Yes. Elements remain in their index/insertion order.

11
New cards

Does an Array allow duplicates?


Yes.