Algorithms and Complexity Flashcards

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

1/11

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts from the Algorithms and Complexity lecture, including algorithm definitions, representations, examples, and the basics of space and time complexity.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Algorithm

An effective method for solving a class of problems, represented by a finite list of instructions that terminate and produce the correct output when executed on a valid input.

2
New cards

Algorithm Representations

Computer code, pseudocode, flow charts, and text/sentences.

3
New cards

Sorting algorithms

Used to sort the data in a particular format such as quicksort and mergesort.

4
New cards

Searching algorithms

Used to find a value or record that user requests such as Linear search and binary search.

5
New cards

Graph Algorithms

Used to find solutions to problems such as finding the shortest path between cities, e.g. breadth-first search, Dijkstra’s algorithm, etc.

6
New cards

Space complexity

How much memory it takes to solve a problem.

7
New cards

Time complexity

How many steps (relative to input size) it takes to solve a problem.

8
New cards

Space complexity

The amount of memory required by an algorithm to run to completion.

9
New cards

Fixed Part (Space Complexity)

The size required to store certain data/variables, that is independent of the size of the problem.

10
New cards

Variable Part (Space Complexity)

Space needed by variables, whose size is dependent on the size of the problem.

11
New cards

Optimal Algorithm

Less space in memory and also takes less time to compute the output

12
New cards

The running time

Depends on the size and the organization of the input, optimal operating temperature, number of processor cores