Chapter 106 Three-dimensional conception of the program
(Ask for collections, ask for recommendation votes, kneel and kowtow for support!) )
Administrator Xiao Yang is a student of the Department of Mathematics, of course she knows what "Topology" means, but when she heard this, she was puzzled: "Although topology is a branch of mathematics, our school does not offer such a profound course, this classmate, are you sure that there is the book you said on the shelf?" ”
Liu Fang nodded affirmatively: "Of course it's confirmed, I watched it yesterday." Pen & Fun & Pavilion www.biquge.info"
Xiao Yang became more and more puzzled: "Have you read a book on topology?" ”
Liu Fang corrected: "The title of that book is called "Topology". ”
Xiao Yang glanced at Liu Fang a few times, and his face was full of disbelief.
In order to prove that he was not lying, Liu Fang immediately explained: "That book is in English, the content in it is all handwritten, it looks a little messy, the last few pages are all titles, the titles of the other pages have no names, only the titles on the last page have names written on them, but because the handwriting is a little sloppy, I can't see it clearly, and the transliteration seems to be called what the fat guy guesses." ”
Xiao Yang giggled when he heard this name: "Giggles, the fat guy guesses, this name is so funny, you wait a while, I'll see if there is anything in the drawer." ”
Immediately, Xiao Yang opened the drawer, and there was nothing in the drawer except for a few damaged old books, Xiao Yang showed an apologetic expression: "This classmate, I'm really sorry, the book you said should have been borrowed." ”
Liu Fang had to sigh, he returned to the bookshelf, found a book of three-dimensional geometry analysis and looked at it.
Xiao Yang was still amused by the fat guy's guess, and she thought to herself: This classmate must have not learned English well, and he actually transliterated the name into the fat guy's guess, it's really funny, eh...... Why do I think the name sounds familiar?
After thinking for a while to no avail, Xiao Yang shook her head, she took out a notebook and a few stickers with celebrity avatars from her schoolbag, and then pasted the celebrity stickers to the notebook.
While sticking to her, his eyes lit up: "The little handsome tiger is really handsome-Zhang Rongguo is also very handsome-Zhou Farun is also very handsome-"
After she finished it, she couldn't put it down and looked at the star stickers in the notebook, and after a while, she suddenly stopped moving, turned her head to look in the direction of the bookshelf, and the thought came to her heart: The classmate just now is so handsome, these big stars seem to be ...... Doesn't seem to be able to compare to him, right? It's a pity, it's just that he's too short, he may have dwarfism, right? Well, it's still my star brothers who are the most handsome!
At this moment, Liu Fang was reading the book carefully, and at the same time, such an idea popped up in his mind: Can you combine programming with geometry and make them three-dimensional?
After reading the books on advanced mathematics, Liu Fang can be said to have benefited a lot, he thought of programming, and began to think about the three-dimensional thing of programming.
This sounds a little strange - aren't programs all made up of characters? How can you possibly stereoscopize them? Do you think you're building a house?
Of course, Liu Fang does not mean this, what he means by three-dimensionalization, refers to the program through multi-party association, so that it has a more three-dimensional logical processing ability, so that the program can be more stable, and the function will be more powerful.
The computer does not know numbers and letters, it can only recognize the two states of power-on and power-off, power-on is 1, power-off is 0, which is why the essential language of the computer is 0 and 1.
The computer uses the chip to carry out logical operations, there are thousands of transistors on the chip, and some of the transistors send signals to power off and power on, and the computer can carry out logical operations, and the process of powering on and off is actually the process of logic operation.
For example, the number 1, in the language of the computer, is expressed by power-on-power-off, and is converted into computer language, which is 110.
The number 2 is energized - energized - energized to express, translated into computer language, that is, 111.
Therefore, the program is essentially an arrangement of digits 0 and 1, and the further essence is actually the two states of the transistor powering on and off. All the procedures that are built on such a mechanism require a very rigorous logical basis.
The logical basis here is that there must be no permutation errors, otherwise the computer will make mistakes and arrive at the wrong result.
Having said all that, I just want to clarify two characteristics of the program: first, the program is very rigid in nature and does not allow any errors; Second, there are countless possibilities for the program, because the permutations and combinations of the numbers 0 and 1 are endless.
The first point is a hard indicator, which must be achieved as long as a program is written. The second point is different, and by following the first point, you can develop any program you want, depending on your abilities.
Liu Fang is now thinking about this question: since there are countless possibilities for the program, why can't I make it three-dimensional?
Soon, Liu Fang had a preliminary idea: if you want to make the program three-dimensional, you must give full play to the relevance.
What is relevance? It is an important part of computer assembly language.
For example, using a computer to make the simplest arithmetic problem requires at least three lines of code to represent it, and converting them into computer language looks like this:
First line: Is 1+1=2 true or false? The letter A represents the correct answer, and the letter B represents the wrong answer;
Second line: A = you answered correctly;
Third line: B = You answered incorrectly.
For such a simple question, the computer needs three lines of code to express it, what if it is a hundred, a thousand, or even ten thousand questions?
If you program in this way, then the program will be extremely complicated, and some people have thought about it, and the programming language has been greatly simplified. As long as you encounter an arithmetic problem similar to the above, you only need to write a line of code, and then compile the relevant information in the computer system, as long as the computer encounters this kind of problem, you don't need to repeat the second and third lines, it will automatically jump to the second or third line above according to the results of logical operations, showing that you answered correctly or incorrectly.
This is the relevance of programming languages, which can also be called the correlation method. Real computer programs are hundreds or thousands of times more complex than this, so programming is really not a job that anyone can do, because even with the correlation method, a computer system contains tens of millions of codes, which is a terrifying number!
Liu Fang now wants to improve this correlation to the extreme, so the difficulties he encountered are definitely beyond your imagination, fortunately he still has that smart brain, maybe this is really difficult for him, but not to the point where he feels that it is impossible to achieve.