Back to marketplace

1.1

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

Data Structure

Back (Answer)

A data structure is a group / set / collection of related data items / elements

#2
Front (Question)

Data Structure Advantages

Back (Answer)

Convenient / best way of organising data relating to a real problem An efficient way to deal with various elements as one item

#3
Front (Question)

Data Structure Disadvantage

Back (Answer)

More Complex to program

#4
Front (Question)

Array

Back (Answer)

• An array is a data structure which is a set of data elements of the same data type • Elements are accessed using an index • Has a pre determined number of elements

#5
Front (Question)

2D Array

Back (Answer)

A 2D array is a grid-like structure which can hold both rows and columns of the same data type.

#6
Front (Question)

Record

Back (Answer)

• A record is a set of data items related to a single individual / entity • It can contain data of different data types • Can be processed as one item by a computer

#7
Front (Question)

Linked List

Back (Answer)

• Nodes in a list contain the data itself and address of the next node (pointer) • First element is head node, list has to be traveresed from start. • Dynamic structure (can grow/shrink) • Last node points to null

#8
Front (Question)

Searching Linked List

Back (Answer)

UNORDERED Can’t be terminated until all items have been inspected ORDERED Can be terminated when a value greater than search is found

#9
Front (Question)

Linked List Advantages

Back (Answer)

• New items can be inserted without rearranging the other elements • Uses memory more efficiently as is dynamic and can shrink/grow

#10
Front (Question)

Linked List Disadvantages

Back (Answer)

• More complex to program • Can only be accessed in a linear manner • Use more memory as store pointer aswell as data

#11
Front (Question)

Stack

Back (Answer)

• Data Structure where items can only be added and removed from the top • Last in first out (LIFO) • Push (add), Pop (remove) • Limited access, can only be accessed from the top • Can be used as a recursive data structure

#12
Front (Question)

Stack Underflow and Overflow

Back (Answer)

UNDERFLOW Attempt to POP an empty stack OVERFLOW Attempt to PUSH a full stack

#13
Front (Question)

Binary Tree

Back (Answer)

• Each node has a max of 2 children • Everything on the left is less than or equal to the root • Everything on the right is greater than the root

#14
Front (Question)

Binary Tree nodes contain…

Back (Answer)

• Data • Left Node • Right Node • Leaf nodes (no children) point to null

#15
Front (Question)

Delete a Binary Tree node

Back (Answer)

DELETE ROOT Replace root with highest value from left side of tree 1 CHILD Replace node with child 2 CHILDREN Replace node with child at left pointer

#16
Front (Question)

Pre Order Traversal Use

Back (Answer)

Clone a tree e.g. make a copy of files in a hierarchical file structure ROOT -> LEFT -> RIGHT

#17
Front (Question)

In Order Traversal Use

Back (Answer)

Outputting node content in order LEFT -> ROOT -> RIGHT

#18
Front (Question)

Post Order Traversal Use

Back (Answer)

Deleting all of the node contents LEFT -> RIGHT -> ROOT

#19
Front (Question)

Binary Tree Comparisons with Array and Linked List

Back (Answer)

ARRAY ADVANTAGE Faster to search/ add (in order) a value ARRAY DISADVANTAGE More complex to program tree LINKED LIST ADVANTAGE Faster to access data in tree LINKED LIST DISADVANTAGE Binary tree has 2 pointers, list has 1

#20
Front (Question)

Hash Table

Back (Answer)

• Provides direct access to an item via its index and performance is not affected by the number of items stored • Index is a numeric value calculated from the value • Data can be retrieved using the key/index and hashing algorithm to return the value • Stores data in an associative array

#21
Front (Question)

Hashing Table: Chaining

Back (Answer)

• Original table has dynamic data strucutre for each location • After collision new node on linked list is created • Slow down finding data • Doesnt require prior knowledge of how many elements

#22
Front (Question)

Hashing Table: Progressive Overflow

Back (Answer)

• If location is occupied, use the next available location • wrap to start if end is reached • easy to maintain • not very efficient (could search through whole file) • Records are likely to be stored close to the calculated location • If blank is reached, not in file • Less total storage space • Fixed max capacity of the main file

#23
Front (Question)

Hashing Algorithm: Overflow

Back (Answer)

• Seperate pre-allocated file • Flag original block • Move data into overflow area • Overflow area uses linear seach • Re organisation/ bigger file will eventually be needed

#24
Front (Question)

Queue

Back (Answer)

• Processing order is first in first out (FIFO) • 2 pointers, front and rear (rear points to next empty position) • Enqueue: insert a value • Dequeue: remove a value from front