Data Structures and Algorithms

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

1/19

flashcard set

Earn XP

Description and Tags

These flashcards cover key vocabulary terms and concepts related to data structures and algorithms as outlined in the lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

20 Terms

1
New cards

Data structure

A specialized format for organizing, processing, retrieving and storing data.

2
New cards

Linear or non-linear

Describes whether data items are arranged in sequence (linear) or unordered (non-linear).

3
New cards

Homogeneous or non-homogeneous

Describes whether all data items are of the same type (homogeneous) or of various types (non-homogeneous).

4
New cards

Static or dynamic

Describes whether a data structure has fixed sizes and memory locations (static) or can change size and structure (dynamic).

5
New cards

Array

A data structure that stores a collection of items at adjoining memory locations, typically of the same type.

6
New cards

Stack

A data structure that stores items in a linear order that can be last in first out (LIFO) or first in first out (FIFO).

7
New cards

Queue

A data structure that stores items in a first in first out order.

8
New cards

Linked list

A data structure that stores a collection of items in linear order, where each item contains a reference to the next item.

9
New cards

Tree

A hierarchical data structure where each node is linked to other nodes and can have multiple sub-values.

10
New cards

Graph

A non-linear data structure made up of nodes (vertices) connected by edges.

11
New cards

Trie

A data structure that organizes strings as data items in a visual graph.

12
New cards

Hash table

A data structure that stores items in an associative array, plotting keys to values using a hash function.

13
New cards

Algorithm

A finite sequence of clear, unambiguous instructions that terminates after executing a finite number of steps.

14
New cards

Time Complexity

The amount of computer time an algorithm needs to run to completion as a function of the size of a problem.

15
New cards

Space Complexity

The amount of memory a program needs to run to completion, including instruction and data space.

16
New cards

Algorithm Design Goals

The three basic goals: save Time, save Space, and save Face.

17
New cards

Complexity of Algorithms

A function that describes the running time and/or storage space requirement of an algorithm based on input size.

18
New cards

Worst Case

The maximum value of the complexity function for any possible input.

19
New cards

Best Case

The minimum possible value of the complexity function.

20
New cards

Average Case

The expected value of the complexity function.