Data Structures and Memory Management

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

1/39

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards related to Data Structures and Memory Management in C++.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

40 Terms

1
New cards

Data Structure

A structural representation of logical relationships between elements of data.

2
New cards

Algorithm

A step-by-step finite sequence of instructions to solve a well-defined computational problem.

3
New cards

Divide, Conquer, and Combine

Dividing a problem into sub-problems for easier solutions.

4
New cards

Storage Structure

The representation of a data structure in the computer's memory.

5
New cards

File Structure

A storage structure representation in auxiliary memory.

6
New cards

Stepwise Refinement Techniques

A method where a problem is converted to a program through several steps of refinement.

7
New cards

Modeling

Representing a problem using an appropriate mathematical model.

8
New cards

Formal Algorithm

Writing an algorithm in pseudo-language using programming language constructs and informal statements.

9
New cards

Modular Programming

Designing and writing programs as functions, each performing a single, well-defined function with minimal interaction.

10
New cards

Top-Down Algorithm Design

A programming approach where a program is divided into a main module and related sub-modules.

11
New cards

Bottom-Up Algorithm Design

A programming approach where an application is constructed starting with existing primitives and building more complex features.

12
New cards

Structured Programming

A programming style using sequence, conditional execution, looping, and structured subroutine calls.

13
New cards

Analysis of Algorithm

Analyzing an algorithm to check its correctness and predict its performance.

14
New cards

Space Complexity

The amount of memory an algorithm needs to run to completion.

15
New cards

Instruction space

Space needed to store the executable version of the program and it is fixed.

16
New cards

Data space

Space needed to store all constants, variable values.

17
New cards

Environment stack space

Space needed to store information to resume suspended functions, including return addresses and variable values.

18
New cards

Time Complexity

The amount of time an algorithm needs to run to completion.

19
New cards

Key operation

Operation that takes maximum time among all possible operations in the algorithm.

20
New cards

Amortized Complexity

The complexity calculated when instructions are executed.

21
New cards

Big “Oh” Notation

A characteristic scheme measuring algorithm complexity performance and/or memory requirements.

22
New cards

Primitive Data Structures

Basic data structures directly operated upon by machine instructions, such as integers and characters.

23
New cards

Non-Primitive Data Structures

Sophisticated data structures emphasizing the structuring of data items, like arrays and lists.

24
New cards

Array

A collection of homogeneous data elements described by a single name.

25
New cards

One Dimensional Array

An array referenced by a single subscript.

26
New cards

Multi Dimensional Array

Arrays referenced by two or more subscripts.

27
New cards

Sparse Array

An array where nearly all elements have the same value.

28
New cards

Vector

A one-dimensional ordered collection of numbers.

29
New cards

List

An ordered set consisting of a varying number of elements to which insertion and deletion can be made.

30
New cards

Record

A collection of information about a particular entity.

31
New cards

String

A sequence of characters.

32
New cards

Sub String

A group of consecutive characters in a string.

33
New cards

Memory management

Process in which management of a computer’s memory occurs.

34
New cards

Static variables

Variables that remain in use throughout the execution of a program.

35
New cards

Stack frame

A frame of data that contains the corresponding function’s local variables.

36
New cards

New Operator

Operator used to create an object.

37
New cards

Delete Operator

Operator used to delete the object.

38
New cards

malloc()

A function that allocates memory at runtime.

39
New cards

free() function

A function used in C++ to de-allocate the memory dynamically.

40
New cards

Dynamic Allocation

Memory Management