levo

Data Structures

Choosing a data structure

  • 3 things to know
  • AS Unit 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

Fetch, , execute.
decodecompilestore

Blank Blitz makes facts automatic

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

AEncryption is reversible.
BThe stored form could be decrypted.
CA hash cannot be reversed.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

A bit is a single binary digit.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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