1/45
Vocabulary practice flashcards covering data structure types, algorithm complexity classes, abstract data types, arrays, basic cryptography, object-oriented constructors, and stack operations.
Data Structure
A specialized format for organizing, processing, retrieving, and storing data in a way that is suited for a specific task.
Algorithm
A step-by-step procedure or set of rules to perform a specific task, dictating what a computer does with a data structure.
Array-Based Data Structure
A collection of elements stored contiguously in memory that permits direct random access to elements using an index.
Static Array
An array whose size is fixed once created and cannot change at runtime.
Linked List
A dynamic data structure consisting of nodes, where each node stores a data value and a pointer (reference) to the address of the next node.
Linear Data Structure
A data structure where elements are arranged sequentially (one after another) and every element has a unique predecessor and successor, except the first and last.
Hierarchical Data Structure
A data structure where elements are organized in a parent–child hierarchy, featuring one root element and other descendant elements.
Graph Data Structure
A collection of nodes (vertices) connected by links (edges) that represents relationships between entities.
Set Data Structure
A collection of distinct, unordered elements, typically used to test membership or remove duplicate items.
Time Complexity
A measure of how fast an algorithm runs relative to the size of the input (n) by quantifying the number of basic operations it performs.
Space Complexity
A measure of the total amount of memory an algorithm consumes, including memory for variables, data structures, recursion, and input storage.
Constant Time (O(1))
A time complexity where execution time remains fixed and independent of the input size, such as accessing an array element by index.
Logarithmic Time (O(log(n)))
A time complexity where execution time scales logarithmically relative to input size, typical of binary search.
Linear Time (O(n))
A time complexity where execution time scales in direct proportion to input size, such as looping through an array once.
Log-Linear Time (O(nlog(n)))
A time complexity characteristic of efficient sorting algorithms such as Merge Sort and the average case of Quick Sort.
Quadratic Time (O(n2))
A time complexity where execution time is proportional to the square of the input size, typically found in nested loops.
Exponential Time (O(2n))
A time complexity that doubles with each additional element in the input, typical of solving the traveling salesman problem via brute force.
Factorial Time (O(n!))
A time complexity that grows factorially with input size, such as generating all permutations of a set.
Abstract Data Type (ADT)
A collection of data together with a specification of a set of operations on that data, hiding implementation details.
Atomic Values
Values made up of non-decomposable or primitive elements that cannot be subdivided further.
Composite Types
Data types that can be further divided into smaller elements, also referred to as data structures.
Data Encapsulation
The process of packaging together a collection of data values alongside the operations that can be performed on them.
Information Hiding
Masking the internal implementation of an ADT so that users do not need to know the underlying technical details and can interact only with accessible operations.
One-Dimensional Array
A simple list of elements arranged in a single row that is accessed using a single index.
Multidimensional Array
An array structured as a table with rows and columns, where elements are accessed using multiple indices such as row and column.
Ragged (Jagged) Array
A multidimensional array where inner arrays can have different lengths, meaning not all rows have the same number of columns.
Cryptography
The science of securing information so that only the intended recipient can read it, converting readable plain text into unreadable cipher text.
Plain Text
The original, readable form of text before it is encrypted.
Cipher Text
The unreadable, encrypted output produced after plain text has been processed by an encryption algorithm.
Caesar Cipher
A cipher that encrypts messages by shifting every letter in the plain text by the same fixed numerical value.
Vigenère Cipher
A cipher that applies multiple Caesar ciphers in sequence, shifting each letter differently based on a repeating keyword.
Substitution Cipher
A cipher that replaces each letter of the alphabet with another letter based on a random mapping key.
Constructor
A special class member having the same name as the class and no return type, automatically invoked upon object instantiation to initialize its state.
No-Argument Constructor
A constructor explicitly written without parameters that assigns default values to an object's fields.
Parameterized Constructor
A constructor that accepts parameters to assign specific initial values to an object's fields upon creation.
this Keyword
A keyword that refers to the current object instance, commonly used to distinguish an object's fields from identically named constructor parameters.
Constructor Overloading
The practice of defining multiple constructors within the same class using different parameter lists to provide various ways to initialize an object.
Destructor
A method called when an object is destroyed to release resources such as memory, file handles, or network connections; in Java, memory is automatically managed by the garbage collector instead.
Stack
A linear data structure where elements are added and removed from the same end, called the top, following the Last-In, First-Out (LIFO) principle.
Last-In, First-Out (LIFO)
A principle where the most recently added element in a structure is the first one to be removed.
push()
A stack operation that adds an element to the top of the stack with O(1) time complexity.
pop()
A stack operation that removes and returns the element at the top of the stack with O(1) time complexity.
peek()
A stack operation that returns the top element without removing it with O(1) time complexity.
isEmpty()
A stack operation that checks whether the stack contains any elements with O(1) time complexity.
Stack Underflow
A condition that occurs when an operation attempts to remove or access an element from an empty stack.
Stack Overflow
A condition that occurs when an insertion is attempted on a full stack that has reached its fixed capacity.