Introduction to Data Structures

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

1/22

flashcard set

Earn XP

Description and Tags

These flashcards cover essential definitions and concepts related to data structures and algorithms from the provided lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards

Data Structure

A defined format for managing, assessing, retrieving, and storing data.

2
New cards

Primitive Data Structures

Basic data structures that can be operated on machine and data instructions directly, like integers and pointers.

3
New cards

Non-Primitive Data Structures

Data structures derived from primitive data structures, such as stacks, graphs, and trees.

4
New cards

Traversing

The process of visiting each element of a data structure to perform operations like searching or sorting.

5
New cards

Insertion

The process of adding elements to a data structure at any location.

6
New cards

Deletion

The removal of an element from a data structure.

7
New cards

Searching

Detecting the location of an element within a data structure.

8
New cards

Sorting

The organization of data in a particular order.

9
New cards

Merging

The process of combining two lists of elements to form a new list.

10
New cards

Pointer

A derived data type that stores the address of another variable.

11
New cards

Dereferencing

The process of retrieving the value stored at the location referenced by a pointer.

12
New cards

Dynamic Memory Allocation

A programming technique where memory is allocated during runtime, enabling flexible data structure management.

13
New cards

Malloc() Function

Allocates a single block of requested memory.

14
New cards

Calloc() Function

Allocates multiple blocks of requested memory and initializes all bytes to zero.

15
New cards

Realloc() Function

Changes the size of previously allocated memory.

16
New cards

Free() Function

Deallocates memory previously allocated with malloc() or calloc().

17
New cards

Union

A user-defined data type that can store different data types in the same memory location.

18
New cards

Algorithm

A finite sequence of instructions that can be performed in a finite amount of time.

19
New cards

Input Specification

The well-defined data that an algorithm needs to process to generate output.

20
New cards

Output Specification

The well-defined data that results from the computation of an algorithm.

21
New cards

Effectiveness of Algorithm

Ensures outputs are feasible with available resources and avoids unnecessary steps.

22
New cards

Finiteness

An algorithm should terminate after a finite number of steps.

23
New cards

Definiteness

Each step of the algorithm must be clearly defined and unambiguous.