Stacks

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

1/26

encourage image

There are no tags or description

Looks like no tags are added yet.

27 Terms

1
New cards

Abstract Data Type (ADT)

A formal description of a data structure, independent of any programming language.

2
New cards

Stack

A collection with access only to the last element inserted, following the Last In - First Out (LIFO) principle.

3
New cards

LIFO

Last In, First Out; refers to a type of data structure where the last element inserted is the first to be removed.

4
New cards

Push

An operation to add an item to the top of the stack.

5
New cards

Pop

An operation to remove the top item from the stack.

6
New cards

Enqueue

An operation to add an item to the end of a queue.

7
New cards

Dequeue

An operation to remove an item from the front of a queue.

8
New cards

Queue

A linear structure that follows the First In, First Out (FIFO) principle.

9
New cards

Deque

Double-ended queue that allows adding and removing elements from both ends.

10
New cards

Python List

A built-in data structure in Python that can be used to implement stacks and queues.

11
New cards

Encapsulation

The bundling of data with the methods that operate on that data, restricting direct access to some components.

12
New cards

Parenthesis Matching

The process of determining whether parentheses in an expression are correctly balanced.

13
New cards

Prefix Expression

An arithmetic expression format where the operator precedes its operands.

14
New cards

Postfix Expression

An arithmetic expression format where the operator follows its operands.

15
New cards

Infix Expression

An arithmetic expression format where the operator is between operands.

16
New cards

Operator Precedence

The rules that determine the order in which different types of operations are evaluated.

17
New cards

Time Complexity

A computational complexity that describes the amount of time it takes to run an algorithm as a function of the size of the input.

18
New cards

Traversal

The process of visiting each node or element in a data structure.

19
New cards

Maze Algorithm

An algorithm that uses a stack to find paths through a maze by storing unvisited paths.

20
New cards

History Stack

A stack used by web browsers to keep track of pages visited, allowing the user to navigate backward.

21
New cards

Stack Implementation

The way a stack is implemented using a programming language, including methods such as push, pop, and peek.

22
New cards

Functional Testing

Testing the features and operations of the stack to ensure they work as intended.

23
New cards

Conversion Algorithm

A systematic method for transforming one arithmetic expression format to another, such as from infix to postfix.

24
New cards

Evaluation

The process of computing the value of an expression.

25
New cards

Stack Overflow

An error that occurs when too much memory is used on the call stack.

26
New cards

Stack Underflow

An error that occurs when attempting to pop an item from an empty stack.

27
New cards

If I successively store a, b, c, and d in a stack, when I retrieve them I get back:

d, then c, then b, then a.