Pratiquer les mathématiques discrètes

Relations and Functions

Relation properties, function rules, and inverse-style reasoning.

12 lessons · 56 questions

Relations and Functions

Relation properties, function rules, and inverse-style reasoning.

12 lessons · 56 questions

Databases And State

1 lessons · 5 questions

Least You Need to Know: Relations in Databases and State Machines

Relations are not only abstract sets of ordered pairs. They appear in foreign-key links, join tables, dependency graphs, and state-transition systems used all over software engineering.

Ouvrir la leçon

Equivalence Relations

1 lessons · 3 questions

Least You Need to Know: Equivalence Relations

An equivalence relation groups objects into classes using three properties: reflexive, symmetric, and transitive.

Ouvrir la leçon

Function Composition Inverse

1 lessons · 5 questions

Least You Need to Know: Composition and Inverses

Function composition means applying one function and then another. A function has an inverse only when each output comes from exactly one input.

Ouvrir la leçon

Function Types

1 lessons · 4 questions

Least You Need to Know: Injective, Surjective, and Bijective Functions

A function can fail by hitting two inputs with the same output, by missing outputs in the codomain, or by doing both.

Ouvrir la leçon

Functions

1 lessons · 5 questions

Least You Need to Know: Functions

A function gives **exactly one output** for each input in its domain. The key is checking repeated inputs carefully.

Ouvrir la leçon

Partial Orders

1 lessons · 4 questions

Least You Need to Know: Partial Orders

A partial order is reflexive, antisymmetric, and transitive. Unlike equivalence relations, not every pair must be comparable.

Ouvrir la leçon

Poset Extrema

1 lessons · 5 questions

Least You Need to Know: Minimal, Maximal, Least, and Greatest

In a poset, **least** and **greatest** are stronger than **minimal** and **maximal**. Least means below everything; minimal only means nothing is strictly below it.

Ouvrir la leçon

Relation Properties

1 lessons · 5 questions

Least You Need to Know: Relation Properties

A relation can be **reflexive**, **symmetric**, **antisymmetric**, or **transitive**. The skill is recognizing what each word really asks you to check.

Ouvrir la leçon

Sql Aggregation Nulls

1 lessons · 5 questions

Least You Need to Know: GROUP BY, Aggregation, and NULL Semantics

Aggregation questions are about partitioning rows into groups, then summarizing each group carefully. The common traps are filtering at the wrong stage, forgetting how `NULL` behaves, and accidentally duplicating rows before aggregating.

Ouvrir la leçon

Sql Indexing Cardinality

1 lessons · 5 questions

Least You Need to Know: Indexes, Selectivity, and Cardinality Intuition

Index and query-plan interview questions are mostly about search-space pruning. Good indexes cut down candidate rows quickly; bad selectivity, tiny tables, or the wrong leading columns can erase that advantage.

Ouvrir la leçon

Sql Join Reasoning

1 lessons · 5 questions

Least You Need to Know: SQL Joins as Relation Operations

SQL joins are concrete relation operations. Interview questions about joins usually reduce to three ideas: which rows survive, when rows duplicate, and when missing matches turn into `NULL` values.

Ouvrir la leçon

Sql Keys Constraints

1 lessons · 5 questions

Least You Need to Know: Keys, Functional Dependencies, and Constraints

Database design questions are relation questions wearing engineering clothes. Keys identify tuples, foreign keys connect relations, and functional dependencies explain when one set of attributes determines another.

Ouvrir la leçon