In computer science, which of the following best defines an "algorithm"?
A) A set of data structures used for organizing information
B) A detailed description of a process to solve a problem or perform a task
C) A programming language used to write software
D) A specific hardware component used to execute instructions