Data Structures and Algorithms Overview

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/29

flashcard set

Earn XP

Description and Tags

These flashcards provide key vocabulary and definitions related to data structures and algorithms.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

30 Terms

1
New cards

Data Structure

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

2
New cards

Algorithm

A finite sequence of instructions that produces an output based on given inputs.

3
New cards

Linear Data Structure

A structure where data items are arranged in a sequential manner, like arrays.

4
New cards

Non-linear Data Structure

A structure where data items are not arranged in a sequential manner, such as graphs.

5
New cards

Homogeneous Data Structure

A structure where all data items are of the same type.

6
New cards

Static Data Structure

A data structure with fixed sizes and memory locations at compile time.

7
New cards

Dynamic Data Structure

A data structure that can change in size and structure during execution.

8
New cards

Array

A collection of items stored at contiguous memory locations, allowing easy access.

9
New cards

Stack

A linear collection of items where the last added item is the first to be removed (LIFO).

10
New cards

Queue

A linear collection of items where the first added item is the first to be removed (FIFO).

11
New cards

Linked List

A collection of items where each item points to the next, forming a sequence.

12
New cards

Tree

A hierarchical data structure where nodes are linked in a parent-child relationship.

13
New cards

Graph

A non-linear structure consisting of nodes (vertices) connected by edges.

14
New cards

Trie

A data structure that stores strings in a visual tree-like format.

15
New cards

Hash Table

An associative array that maps keys to values using a hash function.

16
New cards

Time Complexity

The amount of computer time needed by an algorithm as a function of problem size.

17
New cards

Space Complexity

The amount of memory needed by a program to run to completion.

18
New cards

Best Case Complexity

The minimum possible running time of an algorithm for any input.

19
New cards

Worst Case Complexity

The maximum running time of an algorithm for any possible input.

20
New cards

Effectiveness

every instruction must be sufficiently basic that it can in principle be carried out by a person using only pencil and paper. It is not enough that each operation be definite, but it must also be feasible.

21
New cards

Finiteness

if we trace out the instructions of an algorithm, then for all cases the algorithm will terminate after a finite number of steps.  

22
New cards

Definiteness

each instruction must be clear and unambiguous

23
New cards

Input

there are zero or more quantities, which are externally supplied.

24
New cards

output

at least one quantity is produced

25
New cards

Operation of heap tree

Insertion

Deletion

Merging

26
New cards

Instruction space

the space needed to store the compiled version of the program instructions.


27
New cards

Data space

space needed to store all constant and variable values. Data space has two components:

28
New cards

Average Case

The expected value of f(n).

29
New cards

Try to save Time

Try to save Space

Try to save Face

Algorithm Design Goals The three basic design goals that one should strive for in a program are:

30
New cards

Performance of a program

the amount of computer memory and time needed to run a program.