Back to marketplace

data structures

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)

stack

Back (Answer)

data can be added or removed from one location - the TOP of the stack LIFO (last in first out) structure

#2
Front (Question)

stack operations

Back (Answer)

push() - add an item to the top of the stack pop() - take an item from the top\

#3
Front (Question)

limitations on stack operations

Back (Answer)

cant push if stack full cant pop if stack empty

#4
Front (Question)

how push() stack operation is carried out

Back (Answer)

push - add an item at the top pointer and then move the top pointer up by one

#5
Front (Question)

how pop() stack operation is carried out

Back (Answer)

pop - return the value at the top pointer then move the top pointer down by one

#6
Front (Question)

evaluate the stack

Back (Answer)

traverse or insert is not possible big-O value of all stack operations is one no wasted space

#7
Front (Question)

when stack is used

Back (Answer)

• undo button • recursive function

#8
Front (Question)

queue

Back (Answer)

data can be added at the end/ tail of the queue can be removed at the front/ head of the queue FIFO ( first in first out) structure

#9
Front (Question)

queue operations

Back (Answer)

Enqueue - add item to end of queue Dequeue - take an item from front of queue

#10
Front (Question)

how enqueue() queue operation is carried out

Back (Answer)

add an item at the end marker move it forward by one

#11
Front (Question)

how dequeue() queue operation is carried out

Back (Answer)

return value at front marker and move it forward by one

#12
Front (Question)

limitations of queue operations

Back (Answer)

• queue moves along in available space as changes are made • to avoid running out of space it can be made circular. if the end of the queue catches up w the front, no more items can be added

#13
Front (Question)

evaluate queue

Back (Answer)

traverse insert not possible big- O value of all queue operations is 1 no wasted space

#14
Front (Question)

when queue is used

Back (Answer)

print queue

#15
Front (Question)

linked list

Back (Answer)

made of nodes each node contains an item of data and a pointer to the next node

#16
Front (Question)

how to traverse a linked list

Back (Answer)

start at header follow pointers until reach node with no pointers

#17
Front (Question)

how to insert items to a linked list

Back (Answer)

add the item in an empty space change pointers to include item in the list

#18
Front (Question)

how to delete items from a linked list

Back (Answer)

change pointers so that the list skips over the deleted item

#19
Front (Question)

What does the free space pointer do

Back (Answer)

computer remembers the location of an empty storage space this is where new nodes can be added after adding a new node the free space pointer is updated

#20
Front (Question)

evaluate linked list

Back (Answer)

• wide range of operations possible. traverse, search , insert, sort, delete etc. • most operations have O(n) - linear complexity, making the linked list slower than a stack or queue

#21
Front (Question)

when to use a linked list

Back (Answer)

list data type in python

#22
Front (Question)

tree data structure

Back (Answer)

made of nodes each node holds one data value and more than one pointer

#23
Front (Question)

parts of a tree data structure

Back (Answer)

root - start value branches - nodes to left and right of root leaf node- a node with no branches

#24
Front (Question)

binary tree

Back (Answer)

made of nodes with two pointers