Predicates and Quantifiers
UG
BMLabs Mathematics
REPOSITORY
SCAN TO READ FULL UNIT
Discrete MathematicsMathematical LogicPredicates and Quantifiers
Quantifiers in Programming Statements
Quantifiers in Arrays and Loops
After recognising explicit and implicit quantifiers, we now apply them to programming statements. Arrays and loops naturally create finite universes of discourse, such as index sets . A universal quantifier describes a property of every array entry, while an existential quantifier describes at least one entry with a property. In this lesson, quantifiers in programming statements will translate array properties into precise logical form.
DEFINITION : Quantified Programming Statement
A \textbf{quantified programming statement} is a logical statement involving arrays, loops, or indexed data that can be written using quantifiers. A universal quantifier is used when a property holds for all entries. An existential quantifier is used when a property holds for at least one entry.
BMLABS MATHEMATICS REPOSITORY
mathematics.bmlabs.co.in
Author
Dr. Bivash Majumder
Assistant Professor in Mathematics
Prabhat Kumar College, Contai