What is Discrete Mathematics?
Learn how discrete mathematics is related to programming.
We'll cover the following...
Introduction to discrete mathematics
We need to understand what discrete mathematics is and its relationship with computer science before we learn how to implement discrete mathematical concepts in the various fields of computer science.
As mentioned before, we’ve tried to implement discrete mathematical concepts in algorithms and data structures so we can better understand these concepts.
Discrete mathematics (DM) is a branch of mathematics. To be very particular, it’s the study of mathematical structures and objects that are discrete.
People, animals, chairs, and everything we see around us fall under this mathematical study. Why? Because they’re discrete and distinct. They’re not continuous.
Real numbers consist of rational and irrational numbers or a continuous number line, which is not a part of discrete mathematics. Instead, natural numbers (N), like 0, 1, 2, etc., which are discrete, fall under this category. Discrete mathematical conceptions handle distinct and separated values. The opposite of discrete mathematics is continuous mathematics, such as calculus or Euclidean geometry. However, the Euclidean algorithm that helps us find the greatest common divisor of two positive natural numbers (GCD) is discrete. We’ll see an example ...