An algorithm is a finite set of well-defined instructions used to solve a problem or perform a computation. It is fundamental to computer science and underpins the operation of software and hardware systems, impacting fields from data processing to artificial intelligence.