The resetting of a master combination lock without the code can be done by using a database system.
<h3>What is a database system?</h3>
A database-management system is made up of a compilation of interconnected data and a set of tools that allow you to access that data. The information pertains to a particular enterprise.
A database-management system's major purpose is to offer individuals a system that is both efficient and convenient for obtaining and recording information.
In order to do this, there are keys that need to be unlocked to access these data. Hence, the use of a master combination lock is required.
Let's assume we have the image below, the way to unlock the code is as follows:
- Okay, so we have the numbers {6,8,2,1,4,0,7,3}
Let's take a quick look at the fourth hint, we have the eliminate 8, 7, and 3.
- The returned values = {6, 2, 1, 4, 0}
From the first and second hints, we can deduce that 6 is out of it since is in the same position and it cannot be wrongly and correctly placed at the same time.
- Returned Values = { 2, 1, 4, 0}
The third hint says two numbers are correct but wrongly placed, but the first hint let us know that one number is correct and correctly placed. This confirms that 2 is in the last position of our key.
Now, we have:
- Returned values ={0,1, 4}
- Output ={<u> </u>, <u> </u> , 2}
We use an analogy here i.e. in database system hierarchy, data types are arranged in hierarchical order(H.O) except when an exception is being made.
Now, hint three told us that two numbers are correct i.e. 0 and 2 since 6 is out. However, hint five helps us to confirm that 0 is part of our output values.
- Returned values = {1,4}
- Output = {0, __, 2}...... (H.O) with exception of 2 being the last digit.
From hint two, one number is correct but wrongly placed, we are still looking for the middle number but since it is wrongly placed, it cannot be 1, hence, it is 4.
- Returned values = {1,4}
- Output = {0, 4, 2}
Therefore, the master combination lock of our code for the password is {0, 4, 2}
Learn more about the database system here:
brainly.com/question/26096799