There are many questions and answers, each question has these attributes id, content ,..., difficulty (difficulty), total_times (number of answers), and correct_times (correct number of times) want to assign difficulty to each question based on the number of answers and the correct number of times. There are many other users. each user has a property id, answer_to... there are many questions and answers, each question has these attributes
Id, content,..., difficulty (difficulty), total_times (number of answers), correct_times (correct Times)
You want to assign difficulty to each question based on the number of answers and the correct number of times.
There are many other users, each with attributes
Id, answer_total_times (number of answers), answer_correct_times (correct answers), difficulity (corresponding to difficulty level )...
Calculate the user difficulty level based on the total number of user answers and the correct number of times.
Then, select the corresponding difficulty level question based on the user's difficulty level.
The difficulty level of the current question is used
$difficulty = ceil((1-($quiz->correct_times / $quiz->total_times))*10);
The user used
$user_difficulty = ceil(($user->answer_correct_times / $user->answer_total_times) * 10);
I feel very frustrated. I have a prompt to familiarize myself with the design. thank you.
Supplement:
The difficulty of the initial question is 1, the difficulty of the initial user is 1, and the difficulty coefficient is reset only after the question is made for 1000 times.
The difficulty value is regularly changed (corrected.
Reply content:
There are many questions and answers, each question has these attributes
Id, content,..., difficulty (difficulty), total_times (number of answers), correct_times (correct Times)
You want to assign difficulty to each question based on the number of answers and the correct number of times.
There are many other users, each with attributes
Id, answer_total_times (number of answers), answer_correct_times (correct answers), difficulity (corresponding to difficulty level )...
Calculate the user difficulty level based on the total number of user answers and the correct number of times.
Then, select the corresponding difficulty level question based on the user's difficulty level.
The difficulty level of the current question is used
$difficulty = ceil((1-($quiz->correct_times / $quiz->total_times))*10);
The user used
$user_difficulty = ceil(($user->answer_correct_times / $user->answer_total_times) * 10);
I feel very frustrated. I have a prompt to familiarize myself with the design. thank you.
Supplement:
The difficulty of the initial question is 1, the difficulty of the initial user is 1, and the difficulty coefficient is reset only after the question is made for 1000 times.
The difficulty value is regularly changed (corrected.
There is a problem with the rules, and the design personnel are not awake. The most simple problem is that if a question is made for 1000 times and no one is correct, what is the difficulty level? if 1000 people are correct, what is the difficulty level?
In fact, the number of people can only reflect the difficulty from the aspect. the actual difficulty should be specified by the person who asked the question. if you do not know the difficulty, the person who gave the question is not professional.
Have you rehearsed this rule? I am a user and want to get a high score, so I only want to solve difficult problems. After doing so, you may share the information, so that others will know the answer, so that they prefer the high score of cheating. as a result, the original difficult question is reassessed as low difficulty, as a result, my score is also affected. As a result, the system does not have any problems, and users cannot take the difficulties. The results obviously do not conform to your expectations, but also consider the use of algorithms.
Conclusion: do not think about business logic independently from reality. Because the business logic is used by people, since it has an impact on people, people must find a way to avoid the impact, or try to make the impact trend as beneficial as possible, if all participants have no benefits or share the same benefits, what is attractive if there is no competition mechanism?