Stack Flashcards

1
Q

Wat is een stack, 4 operaties

A

Stack = Stapel. Data structure where only
the most recently added element is
available
● LIFO: Last In First Out
● Basic operations:
○ push()
○ pop()
○ top()
○ isEmpty()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Waar staat tos voor

A

Top of Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Stack: Wat is LIFO

A

Last In First Out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Wat is een Queue

A

A data structure in which only the first added
element is available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

3 operations van een queue

A

Operations:
○ enqueue()
○ dequeue()
○ getFront()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Queue: Wat is FIFO

A

New elements come to the back of the row.
○ FIFO: First In First Out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Wat is een priority Queue

A

A queue that returns the lowest value every
time(priority)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

3 operations van een priority Queue

A

Operations insert(), findMin(), deleteMin()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly