Data Structure Review

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

flashcard set

Earn XP

Description and Tags

These flashcards review key concepts and definitions related to data structures, their types, advantages, and applications.

Last updated 5:10 PM on 4/17/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

What is a data structure?

A method used to organize and store data in a computer for efficient access and updates.

2
New cards

Why are data structures important?

They support fast storage and retrieval, make problem-solving systematic, and improve memory usage and execution speed.

3
New cards

What is the difference between data and information?

Data is raw and unorganized facts; information is processed and meaningful data.

4
New cards

Give an example of a primitive data type.

Integer, float, character, or boolean.

5
New cards

What is a linked list?

A data structure where elements are connected using links, allowing efficient insertion and deletion.

6
New cards

What is the purpose of a hash table?

To store data as key-value pairs for very fast searching.

7
New cards

What characterizes static data structures?

They have a fixed size determined at compile time.

8
New cards

What are dynamic data structures?

Structures that can grow or shrink in size during runtime.

9
New cards

What does Big-O notation describe?

It describes how the execution time of an algorithm grows as the input size increases.

10
New cards

What is an example of O(1) complexity?

Accessing an array element.

11
New cards

What does a stack data structure operate on?

Last In, First Out (LIFO) principle.

12
New cards

What is the time complexity of searching in an unsorted array?

O(n) complexity.

13
New cards

What are advantages of using data structures?

They provide efficient data management, optimized memory usage, improved performance, scalability, reusability, and abstraction.

14
New cards

What is an array?

A data structure that stores elements in continuous memory locations and allows fast access via an index.

15
New cards

What describes linear data structures?

Items are arranged in a linear or sequential format.

16
New cards

What is an example of a tree application?

File systems or database indexing.

17
New cards

What type of complexity does a binary search tree typically have?

O(log n) for search, insert, and delete operations.

18
New cards

How do queues operate?

They follow the First In, First Out (FIFO) principle.

19
New cards

What are custom data structures?

Data structures designed to fit specific needs and can be reused across projects.

20
New cards

What benefit does abstraction provide in data structures?

It allows the client to use the data structure without needing implementation details.

21
New cards

What is the execution time of an operation?

The amount of time a program or operation takes to complete.

22
New cards

What factors affect execution time?

Hardware speed, input size, and efficiency of data structure and algorithm.

23
New cards

Why learn data structures in C++?

C++ provides low-level memory control and has a Standard Template Library (STL) for built-in data structures.

24
New cards

Give an example of a non-linear data structure.

Graphs or trees.

25
New cards

How do dynamic arrays optimize memory usage?

They allocate memory dynamically as needed.

26
New cards

What is an example of O(n^2) complexity?

Nested loops.

27
New cards

What is a stack's application?

Undo mechanisms, expression evaluation.

28
New cards

In C++, what is a structure (struct)?

A way to group several related variables into one place.

29
New cards

How can data structures promote reusability?

By providing standard and custom data structures that can be reused in different projects.

30
New cards

What is the complexity of searching in a balanced binary search tree?

O(log n).

31
New cards

What type of data do non-primitive data types store?

Groups of values, derived from primitive data types.