levo

Data Structures

Choosing a data structure

  • 3 things to know
  • AS Unit 1
Start revising · £5/month

Overview

Recall questions on the questions a designer asks, when a single variable, a one- or two-dimensional array, a record or an array of records is right, worked justifications for a game board and a lending library, and the cost of oversizing an array.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What questions should be asked when choosing a data structure?

Key term

When is a single variable all that is needed?

Key term

Justify a two-dimensional array for a noughts and crosses board.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What questions should be asked when choosing a data structure?

    Model answer

    How many items there will be, whether that number is known in advance, whether all the items share one type, how they will be reached, and how often items are added or removed.

  2. 2

    When is a single variable all that is needed?

    Model answer

    When exactly one value of one type has to be held and there is no collection to loop over or search.

  3. 3

    When is a one-dimensional array the right choice?

    Model answer

    When there is a known number of items of a single type that are wanted in order and processed as a group, such as twelve monthly totals.

  4. 4

    When is a two-dimensional array the right choice?

    Model answer

    When the data falls naturally into rows and columns of a single type, such as a seating plan or a grid of marks by pupil and subject.

  5. 5

    When is a record the right choice?

    Model answer

    When several related items of different types describe one single thing, such as the details of one employee.

  6. 6

    When is an array of records the right choice?

    Model answer

    When there are many things of the same kind and each is described by several fields, such as every pupil in a year group.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Hardware: Architecture, Memory and Storage
Networks and Data Transmission
Logic Gates and Boolean Algebra
Data Representation and Data Types

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

Fetch, , execute.
decodecompilestore

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

A bit is a single binary digit.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Data Structures, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.