3 ms·
In computer science, an invariant is a logical assertion that is always held to be true during a certain phase of execution of a computer program. For example,
by valbaca 3y ago
In computer science, an invariant is a logical assertion that is always held to be true during a certain phase of execution of a computer program. For example, a loop invariant is a condition that is true at the beginning and the end of every iteration of a loop.
https://en.wikipedia.org/wiki/Invariant_(mathematics)#Invariants_in_computer_science https://en.wikipedia.org/wiki/Invariant_(mathematics)#Invari...
- dr_dshiv 3y agoSounds really Platonic — like, a loop invariant maintains the Platonic form of a loop?