Data Structures

0.0(0)
studied byStudied by 0 people
0.0(0)
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:55 PM on 1/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

What are four characteristics of arrays?

  • Static

  • Mutable

  • Only store 1 data types

  • Can have multiple dimensions

2
New cards

What are four characteristics of lists?

  • Dynamic

  • Mutable

  • Can store multiple data types

  • Can have multiple dimensions

3
New cards

What are two characteristics of records?

  • Collection of related fields

  • Can store multiple data types

  • e.g Car record has make, model + price fields

4
New cards

What are three characteristics of tuples?

  • Static

  • Immutable

  • Can store multiple data types

5
New cards

What is an abstract data type?

Made by the programmer rather than defined by the language (e.g queues, stacks, graphs)

6
New cards

What is a stack?

Last In, First Out (LIFO) data structure - items added to the top + removed from the top (like a stack of plates)

7
New cards

What are two applications of stacks?

  • Hold addresses when subroutines called

  • Back button on browsers

8
New cards

How to implement stacks?

  • Use an array

  • Two variables - one pointer to the top of the stack + other for max size of array

9
New cards

What five operations are needed for stacks?

  • push(item) - add item to the top of the stack

  • pop() - remove + return item on the top of the stack

  • peek() - return item on the top of the stack

  • isEmpty() - checks if stack is empty

  • isFull() - checks if stack is full

10
New cards

What is a queue?

First In, First Out (FIFO) data structure - new items added to the end of the queue + items retrieved from the front (like a supermarket queue)

11
New cards

What are two applications of queues?

  • Printer queue

  • Character typed held in a queue in a keyboard buffer

12
New cards

How to implement queues?

  • Use an array

  • Two variables - front pointer + back pointer

13
New cards

What four operations are needed for queues?

  • enQueue(item) - add an item to the back

  • deQueue() - remove item from the front + return

  • isEmpty()

  • isFull()

Explore top flashcards