Chapter 6 Guoshu Society
After spending a lot of time searching for information, Liang Hu saw the news from the Internet, and he immediately linked to the homepage of the software company in the Stars and Stripes to check the other party's requirements. Google, a web software development company, launched a challenge that focused on the search of graphic materials, requiring them to find the part of the search that matched the search requirements among the 100,000 randomly provided graphic materials. This is a rather difficult topic, after all, it was not long ago that there was a news report that the Pentagon of the Stars and Stripes had invested huge manpower and material resources in this area, and it had taken several years to make a breakthrough.
The more difficult the topic, the easier it is to arouse Liang Hu's interest, not to mention that the other party has come up with a generous bonus, if the first 100,000 US dollars is converted into RMB according to the current exchange rate of 1:8, it is almost Liang Hu's income for six or seven years, even if he has to fight hard for this Liang Hu. After making up his mind, Liang Hu sat in front of the desk with a pen and paper, which is also a habit of his, when compiling more cumbersome programs, Liang Hu likes to use words to clarify his thoughts first, which is like "writing like a god" as quickly typing out lines of code.
At first, Liang Hu's idea was to compile a recognition program, like a human brain to identify the content of the graphic resources to be retrieved one by one, but he soon found that this was simply unrealistic, and it was impossible for him to write a terrifying amount of code alone within the deadline of the challenge competition, and Google made such a request, it would definitely have to be used in the civilian Internet, and there was no need to waste a lot of code to ensure the absolute accuracy of search results.
After abandoning this idea, Liang Hu reopened his own ideas, after a few hours of meditation, Liang Hu found that his thoughts gradually became clearer, he scratched around in the notebook, while talking to himself: "Well, a picture will be recorded when it is stored, its size and color, so in the eyes of the computer, this is the real content of the picture, in this case, you only need to do it according to the computer's ideas!" First, reduce the image to the most basic size, then convert the pixels to the most basic program, and then compare the number of two images that are both reduced jù together, if their numbers are similar, it means that the original image before compression is also relatively similar. ”
After determining the algorithm idea, Liang Hu returned to the computer, and he quickly coded the first draft of the entire program. Looking at a total of more than 80 lines of code,Liang Hu clicked down"Compilation"Instruction,After adjusting a few bugs,The internal beta version of Liang Hu's graphic search engine is freshly baked,But the next thing is the most cumbersome in the whole work,Liang Hu downloaded some pictures from the Internet,Began to test the practicality of the program,At the same time, according to the results of the test, he corrected the parameter values he set in the program。
After two busy days, Liang Hu finally determined all the parameters, and this version of the search engine can already find most of the similar pictures, although there are occasional cases such as Schwarzenegger, who is also a muscular man, as Stallone, but the probability of occurrence is still within the acceptable range of Liang Hu. Liang Hu knew that there was still a lot of room for further improvement, such as increasing the number of lines of code with geometric values, compressing and comparing images with more refined algorithms, or spending more effort to index all the images that could be searched on the Internet in advance, which was obviously not something he could do alone.
At this point, even if Liang Hu basically completed the work of participating in the challenge, but out of the instinct of the hacker, Liang Hu still compiled it for the third time, and further optimized the already small program code to improve the efficiency of silent execution and slightly reduce the memory space occupied by the program when running.
After the final version of the competition is confirmed, the graphic search engine named "COOL" is officially completed, Liang Hu used the username "Tiger" that he had applied for in advance to upload the program with only 49 lines of code to the Google website, and then he left his phone number and email and other contact information, and he left a qiē behind, the next thing is no longer for him to control, anyway, he has done his best in this program, even if it doesn't work, there is no regret.
After the National Day, Liang Hu returned to campus to officially start his college life, compared with the high-density schedule of high school, the university curriculum is much looser and freer, Liang Hu and his classmates study compulsory courses in the Chinese department classroom every morning, and in the afternoon everyone goes to different locations to participate in elective courses, everyone seems to be busy, and there is no one at bedtime at night, and Liang Hu is a stranger to other students in the class because of his daily study, but by chance he has a good relationship with Lu Zhishan on the phone a few timesThis is also the only channel for Liang Hu to learn about school affairs.
The location of the Guoshu Club that Liang Hu signed up for is much more remote than other more popular interest clubs, and the number of students participating is also very small, which is no wonder that the school does not pay enough attention to the Guoshu Club, and the basketball club, football club, track and field club, etc. can participate in the National College League every year to fight for the honor of the school; The music club can help students cultivate their sentiments, respond to the country's call for su zhì education, and as long as they are willing to spend money and contribute, they can always invite excellent teachers in the society to teach, but the Guoshu Club is in an awkward position.
How is it possible for the interest club of Fudu University to compete with professionals such as professional martial arts schools and provincial martial arts teams? If you want to invite a famous teacher to teach to improve your strength, the famous martial arts masters in the society are reluctant to come, and the powerful martial arts master school is not looked down on because of the other party's reputation, and then the portal view left by the national art inheritance for thousands of years, few people are willing to take out the secret of the door for free and circulate it, so the current national arts club only has two juniors and sophomores who temporarily teach on their behalf, such a congenital condition, many students will shake their heads when they see it, how can they join it to study?
"Hey, hurry up, there's a good show to watch!" Before Liang Hu reached the venue of the Guoshu Society, he saw groups of students around him rushing towards it together, looking at their excited appearances, and he didn't know what happened to the Guoshu Society, which had always been neglected, today, so that it attracted the attention of others so much. When Liang Hu came to the gate of the teaching hall of the Guoshu Society, he was suddenly startled by the number of students who were densely surrounded by the building and looked inside through the cracks such as the window, looking at the crowded crowd, he had to add some strength in his hands, forcibly squeezed out a passage from it, and came to the door of the Guoshu Society, and the two Guoshu Society students who were guarding there saw that it was Liang Hu, so they gave way and let him in, and then the two of them worked together to turn away the other students behind Liang Hu who tried to fish in troubled waters.
The venue where the Guoshu Society is located is only in a relatively remote location, and the settings inside are still readily available, but the number of students who usually come here to exercise is scarce, which makes it seem deserted. However, when Liang Hu stepped into the venue of the Guoshu Society today, he suddenly saw that there were seventy or eighty more people on the edge of the venue, these students who didn't know where they came from and the less than twenty students of their Guoshu Society were facing each other clearly, and Lin Xiangxue, the president of the Guoshu Society, and Lin Zehui, the assistant teacher, were negotiating something with four or five people led by the other party in another corner.
Liang Hu didn't pay attention to this kind of thing, but walked straight to the locker room next to him, and when he changed into a cheap sportswear and came out, he found that the negotiations had ended, and everyone was sitting quietly on the floor, so Liang Hu who came over alone was very eye-catching. Lin Xiangxue saw Liang Hu and beckoned to him, the latter nodded and quickened his pace, quickly came to the queue of students of the Guoshu Society, found a place and sat down.
After the scene became quiet, a man in a white shirt walked to the central practice field in a few steps, and he said loudly to the people around him: "I am the secretary of the student union of the school, Du Bowen, a junior in the Department of Information Technology. Today, I am honored to be the referee of the Taekwondo Club and the Guoshu Club to meet friends with martial arts. The school has always encouraged normal communication between interest clubs, but before starting, I would like to emphasize a few points, I hope that the players on both sides will pay attention to the competition, the first is not to hit the vital points, including but not limited to the eyes, throat, and lower genitals...... The second is that each game does not last more than six minutes, and if the two sides fail to decide the winner by the time, then it will end in a draw and no extra time will be played. ”
When Du Bowen explained the rules of the game in detail, he stood aside and gave way to the venue, and the president of the Taekwondo Club, Kim Junxiu, that is, the handsome, straight, and about twenty-six or seven-year-old young man in the crowd, whispered a few words to an assistant beside him, who stood up and walked to the center of the field, and said in stammering Chinese: "Lee Chung-hee, exchange student of Nam Bangguo, assistant teacher of Taekwondo Club." ”
Seeing that the other party sent an assistant teacher, Lin Xiangxue, the president of the Guoshu Society, nodded to his cousin Lin Zehui, who stood up as the only assistant teacher of the Guoshu Society, and stood opposite this opponent named Li Zhengxi, and then hugged his fists and said: "Lin Zehui, a sophomore in the Department of Law, is an assistant teacher of the Guoshu Society." ”