Data Structures and Algorithms - Key Terms Flashcards

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

1/34

flashcard set

Earn XP

Description and Tags

A comprehensive set of Q&A flashcards covering core data structures and algorithms concepts from the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

35 Terms

1
New cards

A mathematical model for a class of data structures with similar behavior, defining operations that can be performed but not how they are implemented.

Abstract Data Type (ADT)

2
New cards

A finite sequence of simple, definite steps for accomplishing a computational task that must terminate and produce an output.

Algorithm

3
New cards

A fixed-length, ordered collection of values of the same type stored in contiguous memory locations, with each element identified by at least one array index.

Array

4
New cards

The actual value or variable stored at a specific index within an array.

Array Element

5
New cards

A key used to identify and access a specific element within an array.

Array Index

6
New cards

The automatic conversion that the Java compiler makes between primitive types (like int) and their corresponding object wrapper classes (like Integer).

Autoboxing

7
New cards

A self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees (the balance factor) for any node is no more than 1.

AVL Tree

8
New cards

In an AVL tree, the value Height(Left Subtree) - Height(Right Subtree) for a node; it must be -1, 0, or +1 to keep the tree balanced.

Balance Factor

9
New cards

A binary tree with a strict ordering rule: keys in the left subtree are less than the node's key, and keys in the right subtree are greater; duplicates are not allowed.

Binary Search Tree (BST)

10
New cards

A tree data structure in which each node has at most two children, referred to as the left child and the right child.

Binary Tree

11
New cards

A tree traversal method that visits nodes level by level, starting from the root. Also known as Level Order Traversal.

Breadth-First Traversal (BFT)

12
New cards

A particular way of organizing data in a computer to be used efficiently; the arrangement of data in memory to represent values of an abstract data type.

Data Structures

13
New cards

A tree traversal method that explores as far as possible along each branch before backtracking. Includes Inorder, Preorder, and Postorder traversals.

Depth-First Traversal (DFT)

14
New cards

A queue operation that removes the first element from the front of the queue.

Dequeue

15
New cards

A linked list in which each node contains a data field and two pointers, one pointing to the next node and one pointing to the previous node, allowing traversal in both directions.

Doubly Linked List

16
New cards

A resizable array that can change its size during runtime, with memory allocated on the heap (e.g., Java's ArrayList).

Dynamic Array

17
New cards

A queue operation that adds an entity to the rear terminal position of a queue.

Enqueue

18
New cards

A principle where the first element added to a data structure (like a queue) will be the first one to be removed.

First-In-First-Out (FIFO)

19
New cards

A type of diagram that represents an algorithm or process, showing the steps as boxes of various kinds and their order by connecting them with arrows.

Flowchart

20
New cards

A method for storing and retrieving records from a database by performing a computation on a search key to identify its position in a hash table.

Hashing

21
New cards

A function that performs a calculation on a search key to identify a position (slot) in a hash table.

Hash Function

22
New cards

An array used in a hash system to store records.

Hash Table

23
New cards

A depth-first traversal method where nodes are visited in the order: left subtree, root node, right subtree. For BSTs, this returns nodes in sorted order.

Inorder Traversal

24
New cards

A principle where the last element added to a data structure must be the first one to be removed.

Last-In-First-Out (LIFO)

25
New cards

A node in a tree that has no children.

Leaf Node

26
New cards

A data structure where elements are organized sequentially, and traversal typically follows one direction from start to end (e.g., arrays, linked lists).

Linear Data Structure

27
New cards

A data structure consisting of a chain of nodes, where each node contains data and a reference (a link) to the next node in the sequence.

Linked List

28
New cards

An abstract data type that represents a finite sequence of values, where the same value may occur more than once.

List

29
New cards

A fundamental component in data structures like linked lists and trees that contains information (data) and one or more links to other nodes.

Node

30
New cards

A language feature where a copy of a variable's value is passed to a method; the original variable is not modified by the method.

Pass-by-Value

31
New cards

A stack operation that returns the value of the top element without removing it.

Peek / Top in a Stack

32
New cards

A bit string representing a memory address that can be stored in memory and manipulated by a program.

Pointer

33
New cards

A stack operation that removes and returns the entity from the top of the stack.

Pop in a Stack

34
New cards

A depth-first traversal where nodes are visited in the order: left subtree, right subtree, root node.

Postorder Traversal

35
New cards

A depth-first traversal where nodes are visited in the order: root node, left subtree, right subtree.

Preorder Traversal