script-find-secret-code.mp4
- It is quite common for systems to use 6-digit secret codes to authenticate users.
- Delivery usually via email or SMS
- For example: 435 657
- In this algorithm, using parallelism, the algorithm uses the 8 available CPUs in parallel here on my machine.
- I made a logic so that each worker processes an amount of equal numbers.
- Example: if I have 32 possible numbers to check, each worker will check 4 different numbers, in parallel, at the same time.
- When one of the workers finds the secret code, it sends a message to the master cluster of the 8 workers to finish the work of all of them.
- I made this algorithm for didactic purposes, and for pure curiosity/technical interest.