OCR Computer Science AS Level - 1.4.2 Data Structures

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/23

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards for OCR Computer Science AS Level 1.4.2 Data Structures

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

Array

An ordered, finite set of elements of a single type.

2
New cards

Linear Array

A one dimensional array.

3
New cards

Two Dimensional Array

You can visualise it as a spreadsheet/table.

4
New cards

Three Dimensional Array

A three dimensional array can be visualised as a multi-page spreadsheet.

5
New cards

Record

A row in a file

6
New cards

Record

A record is made up of fields.

7
New cards

Identifying a field from a record using programming

recordName.fieldName

8
New cards

List

A data structure consisting of a number of items, where the items can occur more than once.

9
New cards

Differences between arrays and lists

  • Lists can store data non-contiguously whereas arrays store data in order. - Lists can store data of more than one data type.
10
New cards

Tuple

An immutable, ordered set of values of any type.

11
New cards

Difference between a tuple and an array

Tuples are initialised using regular brackets instead of square brackets.

12
New cards

Stack

A last in first out data structure, where items can only be removed from and added to the top of the list

13
New cards

Example of where stacks may be used

  • Back button in a web page - Undo buttons
14
New cards

Queue

A first in first out data structure, where items are added to the end of the queue and removed from the front of the queue.

15
New cards

isEmpty() operation (Stacks)

Checks to see if the stack is empty

16
New cards

push(value) operation (Stacks)

Adds a new value to the top of the stack

17
New cards

peek() operation (Stacks)

Returns the top value of the stack without removing it

18
New cards

pop() operation (Stacks)

Returns and removes the value at the top of the stack

19
New cards

size() operation (Stacks)

It returns the size of the stack

20
New cards

isFull() operation (Stacks)

Checks to see if the stack is full.

21
New cards

enQueue(value) operation (Queues)

Adds the value to the end of the queue

22
New cards

deQueue() operation (Queues)

Removes the item from the end of the queue

23
New cards

isEmpty() operation (Queues)

It checks to see if the queue is empty

24
New cards

isFull() operation (Queues)

Checks to see if the queue is full