16
After leaving the club, Su Hao didn't return to the dorms, but instead headed straight for the Information Science section of the school Library.
'What a deeply fascinating language!'
After completely opening up his programming meridians with his terrifying logical deduction ability...
he already knew precisely what fields of knowledge reserves he needed to supplement in order to perfectly solve this multi-objective laundry room game theory problem.
Weaving between the bookshelves, he unhesitatingly pulled out three massive tomes:
"Operating Systems and Process Scheduling"
"Computer Networks"
"Game Theory and Algorithm Design"
Returning to the dorm.
Night fell, and outside the window there was only the faint chirping of insects.
Su Hao lined up the heavy books and densely packed draft notes across his desk, then flipped open his laptop screen.
Hum——
The cooling fan emitted a faint buzzing sound.
"Alright, let's begin. Let me see just how far I can take this." Su Hao's eyes narrowed slightly.
Tap, tap. Tap, tap.
His fingers tapped against the keyboard, producing a crisp rhythm.
First, building the overall framework of the underlying algorithm.
In his mind, those massive and complex mathematical theories flashed and emerged like stars in the night sky...
Then they were precisely plucked down by him, transforming into lines of highly orderly code on the screen.
Tap tap, tap tap, tap tap tap...
The night grew deeper, and all was silent outside the window, yet the sound of the keyboard tapping grew increasingly continuous and dense.
'Having just a basic framework isn't enough; what conditions are still needed to restrain the hooligan behavior of those students?'
He began trying to directly integrate several ingenious ideas he had swept from the books into this small laundry room app.
To prevent a massive concurrent rush of reservations by the whole school during peak hours, which would cause server crashes and permission conflicts, he directly introduced a Poisson distribution-based 【random delay simulation module】 at the bottom layer;
To handle the "ghost calls" complaints flooding the forum where people made reservations but failed to show up, he hand-crafted a ruthless 【immediate response event handler】.
'Punishment alone won't work, a compensation mechanism must also be introduced!'
The more Su Hao wrote, the more excited he became, and the faster he hammered away at the keyboard.
He established a 【credit score model】 in the background, utilizing the principles of incentive mechanisms in game theory to invisibly regulate and guide the behavioral choices of all students across the school.
Not coming to wash? Deduct credit points!
Washing late at night? Add credit points!
And the level of credit points directly affected the allocation weight of the queue!
After completing the final string of code for the preliminary design, looking at the perfectly running simulation program on the screen, Su Hao let out a long sigh of relief and revealed a satisfied smile.
...
Three days later.
"Bit Forge" activity room.
Su Hao seemed like a completely different person.
If a week ago he was still a novice staring blankly at code, then now, he was a tyrant on the keyboard!
Tap tap tap tap tap tap——!
The high-speed keyboard tapping sounded like a violent storm, continuously exploding within the room.
On the screen, dazzling code modules poured down like a waterfall from the nine heavens.
Club President Li Xiangyu, standing behind him, was currently staring fixedly at Su Hao's screen, cold sweat trickling down his forehead drop by drop, completely dumbfounded!
Although Club President Li Xiangyu looked like a slovenly teenage student on the surface, he was nonetheless a veteran with years of practical development experience and multiple national-level informatics Olympiad awards!
Yet at this very moment, facing the algorithm logic written by Su Hao, he actually felt a sense of despair as if his IQ was being pinned to the ground and frantically rubbed against it!
'Holy crap! Holy crap!! How the fck is this possible?!
He clearly only just found out what Python was a week ago!'
Club President Li Xiangyu felt his worldview collapsing.
Su Hao's slender, fair fingers danced agilely across the mechanical keyboard, every strike without the slightest pause or hesitation, his posture resembling a conductor playing a grand symphony on black and white keys...
That fluid, high-level oppressive aura pressed down so hard that even a "veteran" like Club President Li Xiangyu didn't dare to breathe heavily.
Creak——
The door was pushed open.
"Are you ready? Which step has the progress reached?"
Student Council President Fang Jun and Vice President Liu Jie walked in drenched in sweat, their tones tinged with anxiety.
Hearing the sound, Su Hao stopped his hands, spun his chair around, and faced the room full of people holding their breath.
Without any pleasantries or fishing for credit, he spoke in a matter-of-fact, calm tone:
"The deduction process is a bit complicated. To save everyone's time, let's talk about the conclusion first."
That calm aura of natural authority caused the two people who were the president and vice president of the Student Union to involuntarily freeze for a moment.
Afterwards, reacting like a conditioned reflex, they took out their carried notebooks, preparing to record like elementary school students listening to a lecture.
"First, in complex social resource allocation, absolute, perfect fairness does not exist in reality."
Su Hao slowly opened his mouth, his tone carrying a trace of philosophical depth,
"However... through game theory algorithm adjustments, we can achieve a dynamic equilibrium state where 'although it is not absolutely equal, no one will feel a clear sense of loss'.
This in the intersecting fields of higher mathematics and game theory is called EF1, which is Envy-Freeness up to one item, single-item envy-free fairness."
"...EF1?" Student Council President Fang Jun's pen tip paused, looking completely bewildered.
What kind of alien language was this?
Su Hao turned the monitor around.
On the screen, instead of dry code, groups of densely packed dynamic charts and big data simulation results were presented.
"Yes. Simply put, under the high-speed calculations of this system...
As long as any one of the students makes even a minor concession under the system's allocation, such as accepting a slightly unpopular time slot, the system will give him excessive compensation in the next reservation.
Through this precise calculation, the'sense of inequality' between people is tended to be smoothed out on the mathematical model.
In the long run, everyone's chance of obtaining prime time slots is absolutely equal in probability!
At the same time, because conflicts are eliminated, the washing machines' operating efficiency can also be maintained at a peak value all the time, preventing situations where machines are completely empty in the middle of the night and people fight tooth and nail during the day."
Club President Li Xiangyu's pupils suddenly contracted, and he abruptly leaned close to the screen, almost pressing his face against the chart, his voice cracking severely due to extreme shock:
"This... this level of academic theory can really be implemented on our crappy laundry room app?"
He felt like he was going crazy.
Others might not know, but how could a competition veteran like him not know?
This was clearly a heaven-defying difficulty that even veteran professors in top universities, leading a team and burning through half their lives to write a top-tier paper, might not necessarily be able to solve!
Yet the youth in front of him spoke of it as casually and lightheartedly as discussing what to eat for lunch delivery?!
"What's so difficult about this?"
Su Hao shrugged, that Versailles-style nonchalance driving people even crazier,
"So-called fairness can be completely dynamically adjusted at the bottom layer through probability weighting functions and credit compensation structures.
Combining these two through a specific matrix naturally allows one to balance efficiency and fairness under a rational state. It's very simple."
It's very simple.
It's very simple...
Club President Li Xiangyu laughed out loud in anger, tears of despair even welling up at the corners of his eyes:
"Come on, big bro, you actually used the god-tier EF1 algorithm to manage a crappy laundry room with only ten washing machines?!
What's the difference between this and using a nuclear bomb to blow up a mosquito?!"
The male student next to him who had been slumped in his chair wearing headphones over the past few days also bolted upright as if electrocuted, his headphones dropping down to his collarbone:
"Holy crap... If this scheduling model can really run successfully, we could just slap some high-end shell on it and enter national or even global programming competitions, and winning a grand prize would be as easy as taking something out of our pocket!"
"From an engineering implementation perspective, it is indeed extremely difficult, but as long as the logic is rigorous, it is completely feasible, and it holds extremely high practical application significance.
Of course, the premise is that the developer of this algorithm must possess mathematical dominion capabilities that surpass everyone else; ordinary people shouldn't even think about it!"
Zhang Man in the corner pulled down the brim of her hat, her face filled with a fanaticism like that of a believer witnessing a miracle, staring fixedly at the glowing Su Hao sitting in the chair.
The entire room fell into a dead silence.
Only the roaring sound of the host fan echoed.
Meanwhile, Student Council President Fang Jun and Vice President Liu Jie, who were completely dumbfounded, were currently staring blankly at the entire set of visual simulation charts prepared by Su Hao.
In the accelerated simulation footage, 10 washing machines and 12 dryers were operating in perfect synchronous efficiency, resembling the precision gears of a clock.
Next to it, the bar chart representing the queue sequence was being precisely cut and shunted by the algorithm like a scalpel, rapidly shortening.
At the bottom right corner of the screen, the crimson block representing the "unfairness grievance index" was rapidly dissipating and dissolving under the suppression of this algorithm, ultimately stabilizing firmly at an extremely low level close to zero.
"After the overhaul... the overall average waiting time has actually been directly shortened by 45%?"
Vice President Liu Jie stared at that glaring data, his voice echoing in the silent room.
The surroundings were pin-drop silent.
No one answered him, because everyone's psychological defense had been completely shattered by this number!
"As expected of our Duck God!!"
Zhang Man crossed her arms in front of her chest, letting out an expression of incomparable adoration.
