Can you help in answering the following questions:-
1. What is the actual algorithm?
2. I'm told a coin is mined every ten minutes, how is this controlled since the number of people mining varies during each day?
3.Why / how does the algorithm become more difficult with time?
4. If new coins are being mined or discovered, I take it not all 21 million currently exist?
5.If 21 million don't exist at present how can we be sure they actually exist and who knows what they are?
6. Why can't it go beyond 21 million, surely there is another solution to the 21 millionth blockchain?
First and most importantly, mining is the process of validating transactions and adding them to the blockchain.
1. The explanation of mining as "running complicated algorithms to solve a puzzle" is just wrong. It really works more like a lottery. Part of mining involves repeatedly guessing a number that must meet a certain criteria. When a miner guesses a number that meets the criteria, they are allowed to add the transactions to the block chain and receive the block reward and fees.
2 & 3. A block is added every ten minutes
on average. The difficulty of the criteria is adjusted every 2016 blocks (approximately every two weeks) to maintain that average. If the actual time during the previous 2016 blocks averaged less than 10 minutes, then the difficulty is increased. If the actual time averaged more than 10 minutes, then the difficulty is lowered. Since all the miners are guessing at the same time, the amount of time to guess a good number depends on the number of miners and their total "hash rate".
4. The meaning of "exist" can be ambiguous. For example, you could say that 21 million exist, but only 12 million have been made available so far.
5 & 6. The bitcoin protocol is set up so that fewer and fewer bitcoins are created as time goes on. Eventually, the block reward goes to 0 around the time that there are 21 million bitcoins in circulation.