What is Consensus Algorithm

consensus
algorithm

#1

What is a consensus algorithm? Why different blockchain technologies use different consensus algorithms?