explain algorithm and its characteristics - Search