Complexity and algorithms

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 25

flashcard set

Earn XP

26 Terms

1

Algorithm

A finite set of precise instructions for performing a computation or solving a problem.

New cards
2

Complexity Analysis

The determination of the computational complexity of algorithms, including time and space requirements.

New cards
3

Asymptotic Complexity

Analysis of the upper and average complexity bounds of an algorithm as input size approaches infinity.

New cards
4

Pseudocode

A notation resembling a simplified programming language, used to design algorithms.

New cards
5

Time Complexity

A function that relates the length of an algorithm's input to the number of steps it takes to complete.

New cards
6

Space Complexity

A function that relates the length of an algorithm's input to the number of memory locations it uses.

New cards
7

Efficiency of Algorithms

The measurement of how fast an algorithm runs and how much memory it uses.

New cards
8

Best-case Analysis

The minimum number of steps taken on any instance of size A.

New cards
9

Worst-case Analysis

The maximum number of steps taken on any instance of size A.

New cards
10

Bubble Sort

A simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.

New cards
11

Merge Sort

A divide-and-conquer algorithm that sorts a list by recursively dividing it into sublists and merging sorted sublists.

New cards
12

Recursion

The process in which a function calls itself directly or indirectly to solve a problem.

New cards
13

Input Size

The amount of data or number of elements that an algorithm processes.

New cards
14

Hash Table

A data structure that implements an associative array abstract data type, a structure that can map keys to values.

New cards
15

Binary Search

An efficient algorithm for finding an item from a sorted list of items, reducing the search space in half with each step.

New cards
16

Graph Representation

The method of implementing graph structures through various means such as adjacency lists or matrices.

New cards
17

What is an algorithm?

An algorithm is a finite set of precise instructions for performing a computation or solving a problem.

New cards
18

What is complexity analysis?

Complexity analysis is the determination of the computational complexity of algorithms, including time and space requirements.

New cards
19

What does asymptotic complexity refer to?

Asymptotic complexity analyses the upper and average complexity bounds of an algorithm as input size approaches infinity.

New cards
20

What is pseudocode?

Pseudocode is a notation resembling a simplified programming language, used to design algorithms.

New cards
21

What is time complexity?

Time complexity is a function that relates the length of an algorithm's input to the number of steps it takes to complete.

New cards
22

What is space complexity?

Space complexity is a function that relates the length of an algorithm's input to the number of memory locations it uses.

New cards
23

How is efficiency of algorithms measured?

The efficiency of algorithms is measured by how fast an algorithm runs and how much memory it uses.

New cards
24

What is best-case analysis?

Best-case analysis is the minimum number of steps taken on any instance of size A.

New cards
25

What does worst-case analysis entail?

Worst-case analysis is the maximum number of steps taken on any instance of size A.

New cards
26

What is bubble sort?

Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.

New cards
robot