What are the key differences between flagship, mid-range and budget smartphones?

Camera sensor size, sustained chipset speed under load, and software update windows: these are the three places flagship, mid-range and budget phones differ.