I'm studying graphs and algorithms, most of the algorithms we're using (such as Prim's algorithm), have the need of a table with a symbol $\infty$. Which in some contexts mean that it is the biggest number of all - in my programming classes, whenever we needed such symbol, we've been taught to use an arbitrary large number, which wasn't general (given that we could always input values biggest than the assigned number) and the idea of a symbol that means biggest than all of them is a good thing. Is it possible to express this idea in programming languanges?
2026-04-01 08:05:45.1775030745
Is it possible to express the idea of a number bigger than any other number ($\infty$) in programming languanges?
91 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Of course this is possible. Pick one:
int.MaxValueandfloat.MaxValue.null.