Flashcard: Fundamentals of Algorithms and Data Structures — 24 carte

Tutte le carte

1Domanda

Algorithm — definition?

Risposta

Finite sequence of elementary operations solving a problem.

2Domanda

Algorithm expression — language?

Risposta

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

3Domanda

Program — concept?

Risposta

Sequence of instructions executed by hardware to perform tasks.

4Domanda

Complexity — focus?

Risposta

Measures time or resources needed, based on input size.

5Domanda

Search algorithms — example?

Risposta

Binary search, sequential search, etc.

6Domanda

Sorting algorithms — goal?

Risposta

Arrange data in a specific order based on keys.

7Domanda

Data structures — purpose?

Risposta

Organize and store data efficiently for algorithms.

8Domanda

Stack — principle?

Risposta

LIFO: Last-In-First-Out.

9Domanda

Queue — principle?

Risposta

FIFO: First-In-First-Out.

10Domanda

Linked list — structure?

Risposta

Nodes with data and pointer to next node.

11Domanda

Binary tree — max children?

Risposta

At most two children per node.

12Domanda

Graph — representation?

Risposta

Adjacency matrix or adjacency list.

13Domanda

Hash function — role?

Risposta

Maps keys to table indices for quick access.

14Domanda

Collision — meaning?

Risposta

Two keys hash to the same index.

15Domanda

Chaining — collision resolution?

Risposta

Store colliding elements in linked lists at each slot.

16Domanda

Open addressing — collision resolution?

Risposta

Find alternative slot via probing methods.

17Domanda

Double hashing — method?

Risposta

Uses two hash functions for probe sequences.

18Domanda

Algorithm complexity — notation?

Risposta

Big O notation describes growth rate.

19Domanda

Worst-case complexity — meaning?

Risposta

Maximum time for any input of size n.

20Domanda

Sequential search — complexity?

Risposta

O(n): linear in number of elements.

21Domanda

Bubble sort — property?

Risposta

Elementary, stable, in-place, quadratic time.

22Domanda

Data key — in records?

Risposta

Unique attribute used for identification or sorting.

23Domanda

Satellite data — in records?

Risposta

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

24Domanda

Array — characteristic?

Risposta

Contiguous memory, fast access, fixed size.

Metti alla prova te stesso con il quiz

Metti alla prova le tue conoscenze con 12 domande su 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?

Fai il quiz →

Leggi la scheda di revisione

Ripassa il corso completo nella scheda di revisione per Fundamentals of Algorithms and Data Structures.

Vedi la scheda di revisione →

Similar courses

Crea le tue flashcard

Importa il tuo corso e l'AI genera flashcard in 30 secondi.

Generatore di flashcard