Which of the following is an example of a simulation being used to solve a problem?
-
A
Sorting a list of names alphabetically
-
B
Modeling the spread of a disease to predict future infection rates
-
C
Compressing an image file to reduce its size
-
D
Encrypting a message with a secret key