The Principle of QuicksortThe principle of the Quicksort algorithm was as follows:
First, select a reference point (usually the first number in the array). Then, a partition operation was performed to divide the array into two sub-arrays. All the elements in one sub-array were smaller than the reference point, and all the elements in the other sub-array were larger than the reference point.
The algorithm for a quick sort was to set two variables i and j. At the beginning of the sort, i = 0, and j was the index of the last element of the array. The first array element is the key data key. Starting from j, search forward (decreasing j), find the first value A(j) that is less than key, and exchange the values of A(j) and A(i); then starting from i, search backward (increasing i), find the first A(i) that is greater than key, and exchange the values of A(i) and A(j); repeat the steps of searching and exchanging from back to front and back until i = j. The whole sorting process can be carried out in a recursion manner, that is, the two sub-arrays after division are quickly sorted according to the above method until the entire data becomes an ordered sequence. It should be noted that Quicksort was not a stable sorting algorithm. The relative position of multiple values of the same value may change at the end of the algorithm.
Translated by: Principle"Principle" could be translated as "principle, principle, doctrine, morality, essence, original meaning, root, source, moral principle, code of conduct, norm, law, concept, reason, creed" and so on.
" Choose " was equally exciting. Everyone was welcome to read it!
Principle PhrasesThe phrase "principle" can be used together with: working principle, basic principle, on the principle of principle), design principle, operating principle, equality principle, cosmic principle, Copernican principle, mediocrity principle, Homotopy principle, accounting principle (accounting standards, accounting principles, accounting principles, accounting principles), Minimum Principle (Principle of Determination, Principle of Extremity, Principle of Extremity, Principle of Extremity), Materiality Principle (Principle of materiality, principle of importance), Revenue Principle (Revenue Realization Principle, Revenue Realization System), Operation Principle, First Principle (First Principle, First Principle, Basic Principle), Principle of Work, Management Principle (Management principle, business policy), variational principle, system principle, reaction principle (Reaction principle, reaction principle, reaction principle), principle of operation (work principle, operation principle), superposition principle, and other principles such as accept/adhere to/advance/follow/give up/sacrifice a principle (Admit/insist/propose/follow/abandon/sacrifice the principle), advocate a principle, apply a principle, betray/compromise/desert one's principle (betray/damage/abandon one's principles)(executive principle, executive policy), deviate from the principle, establish/formulate/lay down a principle hold the same principle, stick to a principle stick to one's principles adhere to one's principles, uphold one's principles, and in principle, by principle in principle, a man of principle, on this principle, under the principle of, without principle, etc.
"Choose" was equally exciting. Everyone was welcome to read it!
Derivative of principleThe derivation of principle is principal, which is an adjective, meaning principled and ethical, and primarily, which is an adverb, meaning first, superior, and best.
" Choose " was equally exciting. Everyone was welcome to read it!
author its seems you can't master the principle of showing less is showing more... meaning too many powers are just messy clutters