Please help me find what's wrong with my code. For academic honesty I am just sharing the output right now but can provide if needed and the algorithm for binary search and selection sort which are as follows : BINARY SEARCH
Not sure if I'm interpreting your pseudo-code correctly.
In selection sort, make sure to keep track of the index of the smallest element, you'll need it for swapping. Swap two array elements, not an array element and a variable or maybe even two variables.
Also: Do not
min = values[i]; within the loop, as this might reset
min even if it had been less.