Flashcards: Fundamentals of Algorithms and Data Structures — 24 cartões

Todos os cartões

1Pergunta

Algorithm — definition?

Resposta

Finite sequence of elementary operations solving a problem.

2Pergunta

Algorithm expression — language?

Resposta

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

3Pergunta

Program — concept?

Resposta

Sequence of instructions executed by hardware to perform tasks.

4Pergunta

Complexity — focus?

Resposta

Measures time or resources needed, based on input size.

5Pergunta

Search algorithms — example?

Resposta

Binary search, sequential search, etc.

6Pergunta

Sorting algorithms — goal?

Resposta

Arrange data in a specific order based on keys.

7Pergunta

Data structures — purpose?

Resposta

Organize and store data efficiently for algorithms.

8Pergunta

Stack — principle?

Resposta

LIFO: Last-In-First-Out.

9Pergunta

Queue — principle?

Resposta

FIFO: First-In-First-Out.

10Pergunta

Linked list — structure?

Resposta

Nodes with data and pointer to next node.

11Pergunta

Binary tree — max children?

Resposta

At most two children per node.

12Pergunta

Graph — representation?

Resposta

Adjacency matrix or adjacency list.

13Pergunta

Hash function — role?

Resposta

Maps keys to table indices for quick access.

14Pergunta

Collision — meaning?

Resposta

Two keys hash to the same index.

15Pergunta

Chaining — collision resolution?

Resposta

Store colliding elements in linked lists at each slot.

16Pergunta

Open addressing — collision resolution?

Resposta

Find alternative slot via probing methods.

17Pergunta

Double hashing — method?

Resposta

Uses two hash functions for probe sequences.

18Pergunta

Algorithm complexity — notation?

Resposta

Big O notation describes growth rate.

19Pergunta

Worst-case complexity — meaning?

Resposta

Maximum time for any input of size n.

20Pergunta

Sequential search — complexity?

Resposta

O(n): linear in number of elements.

21Pergunta

Bubble sort — property?

Resposta

Elementary, stable, in-place, quadratic time.

22Pergunta

Data key — in records?

Resposta

Unique attribute used for identification or sorting.

23Pergunta

Satellite data — in records?

Resposta

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

24Pergunta

Array — characteristic?

Resposta

Contiguous memory, fast access, fixed size.

Teste-se com o quiz

Teste seu conhecimento com 12 perguntas sobre 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?

Faça o quiz →

Leia a ficha de revisão

Revise o curso completo na ficha de revisão para Fundamentals of Algorithms and Data Structures.

Veja a ficha de revisão →

Similar courses

Crie seus próprios flashcards

Importe seu curso e a IA gera flashcards em 30 segundos.

Gerador de flashcards