Data Structures, Algorithms, and Core Concepts

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

1/45

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering data structure types, algorithm complexity classes, abstract data types, arrays, basic cryptography, object-oriented constructors, and stack operations.

46 Terms

1
New cards

Data Structure

A specialized format for organizing, processing, retrieving, and storing data in a way that is suited for a specific task.

2
New cards

Algorithm

A step-by-step procedure or set of rules to perform a specific task, dictating what a computer does with a data structure.

3
New cards

Array-Based Data Structure

A collection of elements stored contiguously in memory that permits direct random access to elements using an index.

4
New cards

Static Array

An array whose size is fixed once created and cannot change at runtime.

5
New cards

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.

6
New cards

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.

7
New cards

Hierarchical Data Structure

A data structure where elements are organized in a parent–child hierarchy, featuring one root element and other descendant elements.

8
New cards

Graph Data Structure

A collection of nodes (vertices) connected by links (edges) that represents relationships between entities.

9
New cards

Set Data Structure

A collection of distinct, unordered elements, typically used to test membership or remove duplicate items.

10
New cards

Time Complexity

A measure of how fast an algorithm runs relative to the size of the input (nn) by quantifying the number of basic operations it performs.

11
New cards

Space Complexity

A measure of the total amount of memory an algorithm consumes, including memory for variables, data structures, recursion, and input storage.

12
New cards

Constant Time (O(1)O(1))

A time complexity where execution time remains fixed and independent of the input size, such as accessing an array element by index.

13
New cards

Logarithmic Time (O(log⁡(n))O(\log(n)))

A time complexity where execution time scales logarithmically relative to input size, typical of binary search.

14
New cards

Linear Time (O(n)O(n))

A time complexity where execution time scales in direct proportion to input size, such as looping through an array once.

15
New cards

Log-Linear Time (O(nlog⁡(n))O(n \log(n)))

A time complexity characteristic of efficient sorting algorithms such as Merge Sort and the average case of Quick Sort.

16
New cards

Quadratic Time (O(n2)O(n^2))

A time complexity where execution time is proportional to the square of the input size, typically found in nested loops.

17
New cards

Exponential Time (O(2n)O(2^n))

A time complexity that doubles with each additional element in the input, typical of solving the traveling salesman problem via brute force.

18
New cards

Factorial Time (O(n!)O(n!))

A time complexity that grows factorially with input size, such as generating all permutations of a set.

19
New cards

Abstract Data Type (ADT)

A collection of data together with a specification of a set of operations on that data, hiding implementation details.

20
New cards

Atomic Values

Values made up of non-decomposable or primitive elements that cannot be subdivided further.

21
New cards

Composite Types

Data types that can be further divided into smaller elements, also referred to as data structures.

22
New cards

Data Encapsulation

The process of packaging together a collection of data values alongside the operations that can be performed on them.

23
New cards

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.

24
New cards

One-Dimensional Array

A simple list of elements arranged in a single row that is accessed using a single index.

25
New cards

Multidimensional Array

An array structured as a table with rows and columns, where elements are accessed using multiple indices such as row and column.

26
New cards

Ragged (Jagged) Array

A multidimensional array where inner arrays can have different lengths, meaning not all rows have the same number of columns.

27
New cards

Cryptography

The science of securing information so that only the intended recipient can read it, converting readable plain text into unreadable cipher text.

28
New cards

Plain Text

The original, readable form of text before it is encrypted.

29
New cards

Cipher Text

The unreadable, encrypted output produced after plain text has been processed by an encryption algorithm.

30
New cards

Caesar Cipher

A cipher that encrypts messages by shifting every letter in the plain text by the same fixed numerical value.

31
New cards

Vigenère Cipher

A cipher that applies multiple Caesar ciphers in sequence, shifting each letter differently based on a repeating keyword.

32
New cards

Substitution Cipher

A cipher that replaces each letter of the alphabet with another letter based on a random mapping key.

33
New cards

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.

34
New cards

No-Argument Constructor

A constructor explicitly written without parameters that assigns default values to an object's fields.

35
New cards

Parameterized Constructor

A constructor that accepts parameters to assign specific initial values to an object's fields upon creation.

36
New cards

this Keyword

A keyword that refers to the current object instance, commonly used to distinguish an object's fields from identically named constructor parameters.

37
New cards

Constructor Overloading

The practice of defining multiple constructors within the same class using different parameter lists to provide various ways to initialize an object.

38
New cards

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.

39
New cards

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.

40
New cards

Last-In, First-Out (LIFO)

A principle where the most recently added element in a structure is the first one to be removed.

41
New cards

push()

A stack operation that adds an element to the top of the stack with O(1)O(1) time complexity.

42
New cards

pop()

A stack operation that removes and returns the element at the top of the stack with O(1)O(1) time complexity.

43
New cards

peek()

A stack operation that returns the top element without removing it with O(1)O(1) time complexity.

44
New cards

isEmpty()

A stack operation that checks whether the stack contains any elements with O(1)O(1) time complexity.

45
New cards

Stack Underflow

A condition that occurs when an operation attempts to remove or access an element from an empty stack.

46
New cards

Stack Overflow

A condition that occurs when an insertion is attempted on a full stack that has reached its fixed capacity.