Data Structures

Section quiz

Contents

Contents

Data Structures

0 of 116 complete

Section quiz

How to think about data structures

Four questions on trades, costs and what the notation actually claims.

Questions are shuffled within each part, and so are the answers. You can retake it as often as you like.

0 of 4 answered

Ideas

Question 1

Which statement best describes what a data structure is?

Question 2

An operation takes 3n + 50 steps on n items. What is its growth described as?

Reading a cost claim

Question 3

Adding to a list is usually one step, but occasionally copies everything. Averaged over a long run it is constant. What is that called?

Question 4

You are writing audio code where every single operation must finish before the next sample is due. Which cost matters most?

4 questions left to answer.