Data Structures & Algorithms

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

1/14

flashcard set

Earn XP

Description and Tags

Flashcards about data structures and algorithms.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

What is a data structure?

A way of storing data in a computer so that it can be used efficiently.

2
New cards

What does advance knowledge about the relationship between data items allow?

Designing efficient algorithms for the manipulation of data.

3
New cards

What does a well-designed data structure allow?

Allows a variety of critical operations to be performed using as little resources, both execution time and memory space, as possible.

4
New cards

Give two examples of how data structures are suited to specific applications.

B-trees are well-suited for databases, while compiler implementations usually use hash tables.

5
New cards

Why are data structures important in computer science?

To manage huge amounts of data efficiently, such as large databases and internet indexing services.

6
New cards

According to Niklaus Emil Wirth, what equation defines programs?

Algorithms + Data Structures = Programs

7
New cards

What are some basic types of data structures?

Files, lists, arrays, records, trees, and tables.

8
New cards

What is an algorithm?

A formula or set of steps for solving a particular problem.

9
New cards

From whose name does the word 'algorithm' derive?

The mathematician Abu Ja'far Mohammed ibn-Musa al-Khwarizmi.

10
New cards

What are the key properties of an algorithm?

Input, output, finiteness, definiteness, effectiveness, and generality.

11
New cards

What are the disadvantages of using natural languages to represent algorithms?

Too verbose and context-sensitive.

12
New cards

What are the disadvantages of using formal programming languages to represent algorithms?

Too low level and requires dealing with complicated syntax.

13
New cards

What is pseudo-code?

Natural language constructs modeled to look like statements available in many programming languages.

14
New cards

What is a flowchart?

Represents an algorithm or process, showing the steps as boxes connected with arrows.

15
New cards

What are some methods of a Collection Abstract Data Type (ADT)?

Constructor/Destructor, Add/Edit/Delete, Find, Sort.