how analog input works? (from an electric point of view)

Like an analog quicksort so to speak?

Binary chop