yes that is what Im thinking. So, then my algorithm for this would be just a series of
if variable is less than previous variable,
then move onto the next variable
It would keep doing that until it got to the comparison between 4 and 5 (this is assuming I start at -5). With the pattern Im going, the numbers keep decreasing until it reaches its lowest point of 4, then when it gets to 5 the value is larger than the previous. at this point it might looking something like this:
if variable is less than previous variable,
then move onto the next variable
else this variable is the minimum point
Do you follow what Im saying?