《Making of a Genius [A Progression LitRPG]》Chapter 5 - The Duty of a Computer Science Student
Advertisement
What is the duty of a computer science student?
If you ask the system, it would say "the duty of a computer science student is, of course, to study computer science."
GPT3, a language artificial intelligence model, would agree. If you ask it the same question, it would reply, "the duty of a computer science student is to study the science of computers. This includes the hardware, software, and networks that make up a computer system."
Even a human like Arthur would say the same thing, perhaps adding that "a computer science student should learn to solve problems using computers."
Yes, to study computer science was the core duty of a computer science student.
"So why on earth have you taken a month and a half to even start learning computer science?" asked the system.
Lexus looked up from the current book that he was reading, "Introduction to Algorithms".
He was sitting in his usual seat at the library - tucked away in a corner, at the end of the long wooden table. This didn't mean that there wasn't anyone nearby though. From the corner of his eye, Lexus could count at least three others sat comfortably within hearing distance. All of them were staring at their laptop screens, and one or two of the even had their headphones on, but Lexus didn't want to take the risk of someone overhearing and so decided not to reply to the system's remark.
Verbally, that is. He simply stuck his tongue out, then continued with his work as if nothing had happened.
To Lexus, learning mathematics first seemed like the obvious choice. After reading his first book, "How to think like a mathematician", and discovering that the book he read determined the type of experience point he obtained, he decided to level up as quickly as possible by focusing his efforts on a single subject. Min-maxing is the way to go, he thought.
Now that he had exhausted all of the mathematics textbooks on the quest list the system gave him, he could refocus on learning computer science.
He was finally in his zone, like a fish that had to struggle on the edge of the beach to finally roll itself back into the water. It felt great to be learning things he was truly interested in.
"Introduction to Algorithms" was a book that he owned, unlike any of the previous books where he had to borrow them from the library. He had previously bought the book while in high school, but the looming threat of exams and university admissions meant that he never really had the time to sit down and read through the book in peace and quiet.
Now that he had this opportunity, he wasn't going to let anyone disturb him from reading this book, not even the system.
Poor timing for the system to start bugging him again. "Cat got your tongue?" The system sounded very proud of itself for learning how to use idioms.
"Shhhh, be quiet," Lexus whispered. "This is a library."
The system snorted. "You're the only one that can hear me."
"Yeah, but you're not the only one that can hear me."
Advertisement
"Then you can just keep quiet and listen to me talk," the system replied.
Why was Lexus even wasting his time trying to talk sense into the system? He shook his head and forced himself to focus, determined to completely ignore external distractions, which happened to include a voice inside his brain.
=====
"I knew you would be here." Arthur walked up to the table where Lexus was and sat down at the adjacent seat.
Lexus looked up from his work, and smiled. "Heya."
"Playing favourites, much?" the system muttered. Lexus ignored it.
Arthur leaned over and glanced at the textbook that Lexus was studying. "Ooh, CLRS. The crème de la crème of CS textbooks."
"Why, have you read it?" Lexus asked.
"I've skimmed a few chapters here and there, but not cover to cover. It doesn't really help much for competitive programming. Too much math, proofs and niche algorithms that aren't that helpful," Arthur replied.
Arthur loved competitive programming. He joined all of the programming competitions in high school, being a Codeforces grandmaster and IOI silver medalist. It was his go-to hobby, and he spent pretty much every waking minute doing it. Lexus was always astonished at the persistence and vigour with which Arthur pursued competitive programming, and admired him for it.
Lexus, on the other hand, never really delved deep into competitive programming. He had tried it out a couple of times, but never really saw the point and so gave up early. To Lexus, he enjoyed learning about the algorithms and the proofs behind them, but training for competitive programming felt a bit too much like practicing for an exam and not learning for the sake of learning. At the end of the day, Lexus didn't find much enjoyment in competitive programming, so there was no point training for it.
"Looks like a good book for me then," Lexus said.
Arthur chuckled. "Yeah, sounds like something you'll like."
Arthur settled down into the seat next to Lexus, pulled out his laptop and soon started typing away, presumably at one of his coding projects. Lexus also returned to reading "Introduction to Algorithms", and the atmosphere returned to silence.
=====
Lexus was taking an algorithms course this term, so much of the initial chapters of the book wasn't new to him. However, he made sure to learn the content thoroughly, completing all of the exercises and reading through each sentence carefully.
He knew that this wasn't the best way to earn as much experience as possible in the shortest amount of time, but he didn't care. Lexus was enjoying the process of thinking through the exercises, coming up with code, and proving that his algorithms were correct.
Consider the searching problem:
Input: A sequence of n numbers A = 1, a2,..., an> and a value v.
Output: An index i such that v = A[i] or the special value NIL if v does not appear in A.
Write code for linear search, which scans through the sequence, looking for v. Using a loop invariant, prove that your algorithm is correct.
It was a simple question meant to teach the principles of loop invariants, but Lexus completed it anyways. It served as good revision for the course, and it wouldn't take up a lot of time, so why not?
Advertisement
Lexus took out his laptop, and typed:
int LinearSearch(vector A, int v) {
for (int i=0; i if (A[i] == v) { return i; } } return NIL; } Loop invariant: at the start of each iteration of the for loop, the first i elements of the array A do not contain v. 1. Initialisation: at the start of the first loop, i=0. The first 0 elements of the array A, trivially, do not contain v. 2. Maintenance: If the next element is equal to v, then the termination condition is reached, at which point there is no next iteration. If the ith element is not equal to v, and we have shown that the first i-1 elements do not contain v, then before the next iteration the first i elements do not contain v, and the loop invariant still holds. 3. Termination: The loop terminates when the element at position i (i+1 when counting from 1) is equal to v or when i = A.size = n. The loop invariant states that the previous elements are all not equal to v, so the index output would be the index of the first element for which the value is equal to v. --- Computer Science EXP +1 --- The occasional experience point was nice, too. ===== The next day, Lexus headed alone to the ground floor study area, where Professor Emerson liked to have his supervisions. Arthur had a rowing competition that day and couldn't attend the supervision. Apparently that was the reason he went to find Lexus in the library, but then promptly forgot when he saw the book that Lexus was reading. Lexus waited for a few minutes for Professor Emerson to show up, and explained the reason for Arthur's absence. "Ah, no worries. I had something to talk to you about anyways," the professor said. Confused, Lexus waited for the professor to elaborate. Did he forget to do a problem sheet again? But that couldn't have been the case, he made sure to do the problem sheet each week after his previous ordeal. He didn't want to relive the experience of having to rush a problem sheet in a single afternoon having missed a lecture. "Lexus, you've made good improvement over the past few months," Professor Emerson said. Before Lexus could even open his mouth to answer, a cynical voice rang in his head. "Of course, if reading the whole of 'Discrete Mathematics', 'Mathematics for Computer Science' and 'A First Course in Probability' would't help I don't know what would." Even though he knew that the system couldn't hear him, Lexus mentally shouted a "shut up" before answering politely, "I've been reading a few books here and there, which helped a lot during my studies. And the problem sheets are still quite challenging for me, so they're very helpful." Lexus paused. The professor wasn't accusing him of cheating, was he? Sensing the change in Lexus' facial expression, the professor gave a small smile. "Relax. I know you've been working very hard, and it's good that your hard work paid off." He handed Lexus the marked problem sheet that Lexus had submitted for that week. "And it's not like you're getting everything right on these either, so there's still room for improvement." After Lexus obtained the Mathematics Level 1 feature [Right or Wrong], the number of careless mistakes in his work had decreased to essentially 0. He didn't want to seem too suspicious, so he decided to keep a few of his original mistakes in the work while gradually reducing the number of minor errors in each week's problem sheet. Was being too good also a sin? On the other hand, the feature did nothing to help Lexus when he got stuck on a question. For those, he relied on Professor Emerson to guide and teach him through it. One such question was this one: For a set A, prove that there is no injection P(A) → A. "For this question, there's an intermediate step where you have to prove a proposition involving an injection and a surjection," Professor Emerson explained. "If there is an injective function f:A → B, can you prove that there is a surjective function g:B → A"? Lexus paused and thought it through for a while. If an injective function exists then f(x)=f(y) implies x = y. So every element in B corresponds to exactly one element in A and vice versa. For a surjective function, for every y, there exists an x such that g(x) = y. So for every element in A, there exists an element in B for which the function g maps the element in B to the element in A. Wait. He just had to define a surjective function g which satisfies the conditions. Lexus picked up his pen, and started writing. Define g as follows: g(b) = f-1(b) when b ∈ Rf and g(b) = a when b ∉ Rf where a is some element in A and b is any element in B. Then g is a surjective function, therefore the proposition is true. "Good," said the professor. "What does this proposition then tell you about the relationship between A and P(A)?" Lexus looked back at the question, trying to reverse engineer his way to the solution. The question was asking him to prove that there is no injection from P(A) to A, so by the proposition that he just proved, it would mean that he would need to show that there was no surjection from A to P(A). Which, now that he thought about it, he always knew from Cantor's Theorem. Ding! --- Mathematics EXP +1 --- Lexus wrote down his thought process, but this time in reverse order so that it made sense logically. Going from Cantor's Theorem, proving the proposition, then showing that an injection did not exist, as if it did, it would contradict Cantor's Theorem. Lexus noted the tiny little screen that only he could see: --- Correct --- Proof complete.
Advertisement
-
In Serial8 Chapters
Soul Split
Due to a crazy experiment, Tom got sucked through a malfunctioning portal into the unknown. Upon waking, he realized his soul survived and was rebirthed in a new world. But due to the stress of transfer, the soul split into two and passed through the reincarnation cycle as two separate beings. Even as the united two had fully reawakened to their other selves, the future looks grim. Armed with a withering lineage, a broken wing and the knowledge of an aspiring engineer, they set out to explore the world, one crazy technological advancement at a time.
8 210 -
In Serial13 Chapters
War Of Mortal Gods
In the universe, twelve beings created everything, they then created the gods and gave them unique domains to rule and tasked them with overseeing and maintaining the natural equilibrium of the worlds containing sentient life, but restricted them from interacting with the worlds directly. The gods, who could only interact with souls that are crossing worlds in the reincarnation cycle discovered that there were two types of souls as well. There were normal mortal souls and unique souls that they called the heroes soul that are born at random. These gods then commincate with these unique souls after their first life ends and gives them a deal, either complete a certain number of tasks on various worlds to maintain the natural balance or go through the reincarnation cycle which will cleanse the soul and the memories they hold. This story is of heroes that sometimes must commit to maintaining the natural balance at any cost. There are times that these heroes save millions of innocent lifes and times that they must kill billions of innocent lifes to protect the natural balance, they arent always pure and righteous or corrupt and villaneous, these are just souls that walk the path of legendary figures and infamous killers, but who can save these heroes when they are broken and must suffer repeatedly from their role as defenders. This is the journey of a group of heroes and their growth as warriors, their traumas that make them mortal humans, and the moments that define then as immortal legends, but can they survive when faced with their greatest challenge to come that threatens to destroy whole worlds. This is the story of war that happens among mortals, Stories of wars on the inside and outside the realm of the soul, and war between mortal gods. Only one thing is certain, the side that loses the war, loses absolutely everything.
8 149 -
In Serial958 Chapters
Legend of the Lost Star
[More placeholder space for the next Writahon...] [Completed the October 2020 Royal Road Writathon challenge] [Completed the April 2020 Royal Road Writathon challenge] Book 1: First Light Synopsis: As a war of epic proportions enters a ceasefire, a soul from another world enters a dead boy's body. Without any memories of who he was, with only a little companion by his side, the lost soul begins his long, arduous journey to recover his memories, while unraveling the mysteries of a war-torn world. Why was he sent here? And where will he go now? Even he himself does not know. But one thing is for certain: the world will never be the same again. Book 2: Foredoomed to a Rendezvous Synopsis: As war continues to break out between the Five Lands, Gaius finds himself inheriting a legacy of ancient times. With the flames of battle spreading through the South once again, the lost soul throws himself into battle over and over, in an attempt to protect his home and those he holds dear. How will the boy, nearly unrivalled in martial might, fare in a web of conspiracies beyond his ken? Book 3: The Last and the Lost Synopsis: The boy has set himself an unbelievable target in a bid to save someone precious to him. With his former home now out of reach, he stalks the Southern Continent, inciting rebellion and revolution where possible to lure his prey out. Meanwhile, in the heart of the South, embers of war begin to rekindle. Will it be the death knell of yet another nation millennia old? Book 4: The Unravelling World Synopsis: Time is not on Gaius' side. Everyday life, already disturbed by the flames of mortal war, falls apart entirely as beings of legend once again appear on Orb. Forced to a foreign land to treat his injuries, the boy must confront the outcomes of his actions, directly and indirectly. But the tide is rising. Countless enemies are throwing themselves against the nations of Orb, cleaving a path of blood wherever they go. Gaius has to hurry...or drown with the rest. Book 5: World's End, Divines' Rondo Synopsis: The great gods of Orb have staked their claim on the world itself, killing all in their way. Each of the Cardinal Continents are fighting their own battles and making their own peace, but none are aware of the growing threat from the Wildlands, where a self-exiled legend continues to gather strength. Meanwhile, a new threat stalks the whole of Orb, killing whatever remains of the Constellation Heroes. Against such a chaotic backdrop, a boy continues to protect a semblance of daily life for his loved ones, but will he be successful when the curtains finally open? Book 6: The Frenzied Tide Synopsis: A sword hangs above the Eastern Territories. The Human God, progenitor of all life, the direct cause of the beastfolk genocide, has made his will known to the rulers of the East — make peace with the God of Water, or be destroyed in three months. Gaius, who has left the battlefield to return home, is once again called to fight, to support a do-or-die offensive upon their foe's territory. But in the background, the threads of destiny are beginning to come together. Plots set in motion long ago are coming to fruition... Book 7: Limina of Ruin Synopsis: The chalice has broken. The East is beset with turmoil, as factions turn on each other. The Great Divide, however, brims with a setting radiance, ensuring a final, transient peace. And in the midst of it all, one young boy follows the fettered winds and the unshackled waters, heading to a new land to uphold a promise. For him, the days of fighting will be a distant memory before long...and a daily event in the years to come. Uncovering ancient memories, putting to rest regrets, enjoying the last of a peaceful life...the people of the Five Lands will live to their fullest. Yet, this is but the calm before the storm. Book 8: Power Talks Synopsis: Fate. A curious word to most...and a frightening word to Gaius. Alongside the rulers of the North, Gaius witnesses frightening truths, proof of an inevitable future. Spurred by a myriad chilling revelations and urged by a god's killer, the Mortal Light Dynasty gathers both mortal rulers and divine sovereigns, covering past conflicts with a offer of cooperation of an unprecedented scale. However, can this unity, first of its kind, stand up to time, fate and mortal nature? Or will it burn, along with the Five Lands? Book 9: Homeland Song Synopsis: Gazing out at the Orb of old, Gaius ponders his destiny and the great stakes with it. Time and again, he has led a life of choices, making one after another for the sake of those he cares about. His latest choice, however, carries implications of an immeasurable scale. Charged with the protection of the future, all that awaits him is an eternal solitude... On the other side of the false world, a single star shines, one whose light is meant to protect. Gemini, who has long found a homeland in the form of Ark City, has spent years defending it with friends and family alike. However, an inexorable end is approaching. The day the Great Divide falls looms ever closer. At the crossroads of destiny, when the chains of fate bind him fully, what will the last Constellation choose? And what will his choice mean for the rest of the Five Lands? Book 10: Immortal Indignant Synopsis: As the Five Lands reel from an unexpected revelation, Gaius continues his struggle to accept his immortal destiny of eternal vigilance. Mortal fetters continue to tie him down, with the prospect of breaking them a heart-rending prospect. There is little light for him in the darkness; his emotions seemingly a poisoned apple. For him, the days ahead are one of balancing his emotions; his immortal destiny is antithetical to the aspects that make one mortal. However, he isn't the only immortal indignant at the current state of affairs. Behind the scenes, huge powers push and pull, tussling in an insane game of wrestling sanity. The Five Lands and the great gods prepare in the background, awaiting their time to strike... Book 11: Cause Convergent Synopsis: As Orb reels from an unexpected turn of events, the crumbling of the Great Divide speeds up. With time now at a premium, Gaius travels the world, addressing a particular personage's last will, while ensuring that he leaves no regrets behind. Revisiting the Five Lands with his beloved one last time, he casts his eyes to a new future, a world full of a peace forged by collective resistance. Far away from Gaius, at the very borders of the Southern Continent, soldiers train day and night, awaiting the day the rift between worlds crumble. But the battlefield there isn't just between the Five Lands and the Wildlands... Book 12: Boundary Belligerent Synopsis: The rift between worlds crumble. The moon, the sun and the sky shatter, revealing the vast expanse beyond. The cold light of the stars gaze down upon Orb, illuminating a bloody battlefield at World's End, where gods and mortals wrestle. Immortal troops charge the Five Lands, over and over again, only to be repelled by vast engines of war. For many, the moment of destiny has arrived. The Third Extermination has begun. However, Gaius gazes not at the present, but at the future beyond. What does he see there? And what will he do? Book 13: Destiny Divergent Synopsis: Bells ring, and destiny veers. Mortal miracles, having pierced a divine destiny, now turn their light of annihilation upon the legendary land of dangers and dark myth. A single being who should have slept forever reawakens, carrying out a inherited duty to protect. Under a dome of absolute law, the hulks that darken the skies are grounded, forcing the Five Lands to move ahead on foot. Hidden differences erupt, comrades turn upon comrades, and the alliance begins to crumble. What should have been a happy ending begins to fall apart. Watching from high above, the Abyss Sovereign laments his weakness, cursing the new destiny laid upon the world. And yet, he will never give up. Book 14: Abyss Ascendent Synopsis: As a future of never-ending conflict draws closer, Gaius stands at the centre of Orb, his will tempered and set. What the Wildlands has ceased to be, he will inherit. Divine Kingdoms and mortal nations clamour for peace to prepare for greater wars, but Gaius will no longer stand for that. For the sake of his dream, the Five Lands — and now, the Wildlands — must be unified against a common enemy. Gaius himself. Raising the flag of rebellion against mortal nature and destiny, the Abyss Sovereign commences a festival of creation for his new world, a paradise unimaginable to both mortal and divine minds. With his intentions made known now, there is no going back. He will succeed. Or die trying. Book 15: Terminus Transcendent Synopsis: ??? This is a story that may, depending on how impatient you are, take some time to spin up. I have enough in my mind for a long run, so it's essential that I lay out a great deal of groundwork at the start. Eleven books have been released so far, and this work will end at Book 15. Be aware of late arrival spoilers! My Patreon link is here, which allows for up to sixty-five advanced chapters ahead of the free releases, or if you'd just like to support me. Release schedule: My original promise was 2 a week, minimally, but it's been a daily release for a long time. So yeah...
8 835 -
In Serial14 Chapters
Clockwork Memoria
In the near future, androids have become common place. Almost indistinguishable from humans, these androids are finding their place in society. This is a collection of their stories, as they go about their day to day lives. This is written as short prose, akin to entries in a diary from a third person perspective. Please do not expect very long chapters, but updates should be frequent.
8 208 -
In Serial16 Chapters
A Nobody Special
An old man is dying... fervent atheist. No family, that remembers him... not like he tried to be remembered. He just faded from the minds and hearts of those closest, he felt his life slipping away slowly.... worry of living slipping from his tired old mind. Then he dies. ,What happens next? Read the story to find out.... (will be adding more of the content thingys as i go along.... cause it happens when i feel like it) Mature in the sense that this isn't a light read... might be depressing...
8 145 -
In Serial5 Chapters
Forever
When Wakandans reach the age of 18 they must complete an initiation ceremony, if they ever wish to be seen as an adult by their tribe. This is the story of one such initiation. I hope you enjoy Forever: a Wakandan tale of friendship.
8 81
