練習離散數學

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程

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.

開啟課程