Flashcards: Fundamentals of Algorithms and Data Structures — 24 cards

All cards

1Question

Algorithm — definition?

Answer

Finite sequence of elementary operations solving a problem.

2Question

Algorithm expression — language?

Answer

Language-independent; describes *what* to do, not *how*.

3Question

Program — concept?

Answer

Sequence of instructions executed by hardware to perform tasks.

4Question

Complexity — focus?

Answer

Measures time or resources needed, based on input size.

5Question

Search algorithms — example?

Answer

Binary search, sequential search, etc.

6Question

Sorting algorithms — goal?

Answer

Arrange data in a specific order based on keys.

7Question

Data structures — purpose?

Answer

Organize and store data efficiently for algorithms.

8Question

Stack — principle?

Answer

LIFO: Last-In-First-Out.

9Question

Queue — principle?

Answer

FIFO: First-In-First-Out.

10Question

Linked list — structure?

Answer

Nodes with data and pointer to next node.

11Question

Binary tree — max children?

Answer

At most two children per node.

12Question

Graph — representation?

Answer

Adjacency matrix or adjacency list.

13Question

Hash function — role?

Answer

Maps keys to table indices for quick access.

14Question

Collision — meaning?

Answer

Two keys hash to the same index.

15Question

Chaining — collision resolution?

Answer

Store colliding elements in linked lists at each slot.

16Question

Open addressing — collision resolution?

Answer

Find alternative slot via probing methods.

17Question

Double hashing — method?

Answer

Uses two hash functions for probe sequences.

18Question

Algorithm complexity — notation?

Answer

Big O notation describes growth rate.

19Question

Worst-case complexity — meaning?

Answer

Maximum time for any input of size n.

20Question

Sequential search — complexity?

Answer

O(n): linear in number of elements.

21Question

Bubble sort — property?

Answer

Elementary, stable, in-place, quadratic time.

22Question

Data key — in records?

Answer

Unique attribute used for identification or sorting.

23Question

Satellite data — in records?

Answer

Additional info linked to the key, not used for sorting.

24Question

Array — characteristic?

Answer

Contiguous memory, fast access, fixed size.

Test yourself with the quiz

Test your knowledge with 12 questions on Fundamentals of Algorithms and Data Structures.

1. What is an algorithm primarily characterized as?

2. Who is the historical figure from whom the term 'algorithm' is derived?

Take the quiz →

Read the revision sheet

Review the complete course in the revision sheet for Fundamentals of Algorithms and Data Structures.

See revision sheet →

Similar courses

Create your own flashcards

Import your course and AI generates flashcards in 30 seconds.

Flashcard generator