why float("infinity") is best to calculate closest value while traversing in a tree? please explain it with example. for ex:
closest value = infinit