Flashcards : Fundamentals of Algorithms and Data Structures — 24 cartes

Toutes les cartes

1Question

Algorithm — definition?

Réponse

Finite sequence of elementary operations solving a problem.

2Question

Algorithm expression — language?

Réponse

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

3Question

Program — concept?

Réponse

Sequence of instructions executed by hardware to perform tasks.

4Question

Complexity — focus?

Réponse

Measures time or resources needed, based on input size.

5Question

Search algorithms — example?

Réponse

Binary search, sequential search, etc.

6Question

Sorting algorithms — goal?

Réponse

Arrange data in a specific order based on keys.

7Question

Data structures — purpose?

Réponse

Organize and store data efficiently for algorithms.

8Question

Stack — principle?

Réponse

LIFO: Last-In-First-Out.

9Question

Queue — principle?

Réponse

FIFO: First-In-First-Out.

10Question

Linked list — structure?

Réponse

Nodes with data and pointer to next node.

11Question

Binary tree — max children?

Réponse

At most two children per node.

12Question

Graph — representation?

Réponse

Adjacency matrix or adjacency list.

13Question

Hash function — role?

Réponse

Maps keys to table indices for quick access.

14Question

Collision — meaning?

Réponse

Two keys hash to the same index.

15Question

Chaining — collision resolution?

Réponse

Store colliding elements in linked lists at each slot.

16Question

Open addressing — collision resolution?

Réponse

Find alternative slot via probing methods.

17Question

Double hashing — method?

Réponse

Uses two hash functions for probe sequences.

18Question

Algorithm complexity — notation?

Réponse

Big O notation describes growth rate.

19Question

Worst-case complexity — meaning?

Réponse

Maximum time for any input of size n.

20Question

Sequential search — complexity?

Réponse

O(n): linear in number of elements.

21Question

Bubble sort — property?

Réponse

Elementary, stable, in-place, quadratic time.

22Question

Data key — in records?

Réponse

Unique attribute used for identification or sorting.

23Question

Satellite data — in records?

Réponse

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

24Question

Array — characteristic?

Réponse

Contiguous memory, fast access, fixed size.

Testez-vous avec le QCM

Testez vos connaissances avec un QCM de 12 questions sur 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?

Faire le QCM →

Consultez la fiche

Révisez le cours complet dans la fiche de révision de Fundamentals of Algorithms and Data Structures.

Voir la fiche →

Cours similaires

Crée tes propres flashcards

Importe ton cours et l'IA génère des flashcards en 30 secondes.

Générateur de flashcards