Since computers were created, users have devised programsSequences of instructions for a computer., many of which, in part, needed to do the same thing. As a result, common algorithmA sequence of logical instructions for carrying out a task. In computing, algorithms are needed to design computer programs. have evolved and been adopted in many programs.
Two algorithms often used are searchAn algorithm that searches through a data set to find an item. and sortAn algorithm that puts items in a data set into order.:
searches allow dataUnits of information. In computing there can be different data types, including integers, characters and Boolean. Data is often acted on by instructions. sets to be examined and for specific items to be found