In computer science, an "algorithm" can be defined as:
A) A programming language syntax
B) A sequence of instructions to solve a problem
C) A hardware component in a computer
D) A data structure used for storage