Home > Back-end >  About the algorithm of various sorting algorithms
About the algorithm of various sorting algorithms

Time:12-02

Bubbling, select, insert, the three kinds of sort algorithm in our actual development can be applied to the above, more than some examples let me think, I can understand the basis of the other, and there were only three sorting algorithm I am a face of meng, don't know it can be used in any situation, have a big one can answer it,

CodePudding user response:

Actually are sort of all three, what do you want to say to the above, is used for sorting, but you listed the three sort of application of the very few, because the reasons of the poor performance are,
Currently use more like quick sort, hill sorting, merge sort, etc., the performance is better than you said these three,

If you want to learning algorithms related, recommend you can learn a lesson the systematic data structure course,

CodePudding user response:

To tell the truth you even these three sorting is a face of meng force, that really versatile sorting algorithm that wan meng force in the face.

Of course most of the time, you just need to call API, you don't need to pay attention to its internal implementation.

CodePudding user response:

Sleep sorting:
 new Thread (() - & gt; {
Int [] arr=,20,30,40,50 [10]

A: for (arr) {
New Thread (() - & gt; {
Try {
Thread.sleep (a * 10);
} the catch (Exception e)

})
}
})

This algorithm was born caused the world quite a stir has also changed the fate of many programmers 0.0

CodePudding user response:

Learning, learning

CodePudding user response:

reference 1st floor rumlee response:
actually are sort of all three, what do you want to say to the above, is used for sorting, but you listed the three sorts of application of the very few, because the reasons of the poor performance are,
Currently use more like quick sort, hill sorting, merge sort, etc., the performance is better than you said these three,

If you want to learning algorithms related, recommend you can learn a lesson the systematic data structure course,
I don't know what to do after, is can't truly the three lenovo in Java application

CodePudding user response:

refer to the second floor maradona1984 response:
to tell the truth you even these three sorting is a face of meng force, that really versatile sorting algorithm that wan meng force in the face.

Most of the time, of course, you just need to call API, you don't need to pay attention to its internal implementation.
not to say do not understand, just don't understand what is the role of it in the actual development process, and learning and to see first??

CodePudding user response:

what is a bank reference 3 floor response:
sleep sorting:
 new Thread (() - & gt; {
Int [] arr=,20,30,40,50 [10]

A: for (arr) {
New Thread (() - & gt; {
Try {
Thread.sleep (a * 10);
} the catch (Exception e)

})
}
})

This algorithm was born caused the world quite a stir also changed the fate of many programmers 0.0
but now I did not even understand the above several kinds of sort algorithm can be used to do what??

CodePudding user response:

The three algorithms is almost useless lecture involves the practical application in their system may collapse

CodePudding user response:

Application=algorithm + data structure
Algorithm is the most basic, any framework cannot leave the algorithm, all kinds of framework are the commonly used algorithm are encapsulated, we call can, need not care about how to implement internal, of course, doing basic research and development of people must be proficient in these algorithms, for example, car drivers in a proficient in driving, don't need a proficient in automobile structure and principle of (know there's no harm, of course),

CodePudding user response:

refer to 6th floor qq_49818874 response:
Quote: refer to the second floor maradona1984 response:
to tell the truth you even these three sorting is a face of meng force, that really versatile sorting algorithm that wan meng force in the face.

Most of the time, of course, you just need to call API, you don't need to pay attention to its internal implementation.
not to say do not understand, just don't understand what is the role of it in the actual development process, and learning and to see first?

Because I don't know you are now learning progress, but the sorting it real scene is sorting, nothing special, maybe you think too much.

CodePudding user response:

references 9 f datafansbj response:

program=algorithm + data structureAlgorithm is the most basic, any framework cannot leave the algorithm, all kinds of framework are the commonly used algorithm are encapsulated, we call can, need not care about how to implement internal, of course, doing basic research and development of people must be proficient in these algorithms, for example, car drivers in a proficient in driving, don't need a proficient in automobile structure and principle of (know there's no harm, of course),
windbag honk, that you mention it, really let me...

CodePudding user response:

refer to the eighth floor Lerbronjames response:
these three algorithms is almost useless lecture involves the practical application in their system may collapse
may really is useless

CodePudding user response:

references to the tenth floor maradona1984 response:
Quote: refer to the sixth floor qq_49818874 response:
Quote: refer to the second floor maradona1984 response:
to tell the truth you even these three sorting is a face of meng force, that really versatile sorting algorithm that wan meng force in the face.

Most of the time, of course, you just need to call API, you don't need to pay attention to its internal implementation.
not to say do not understand, just don't understand what is the role of it in the actual development process, and learning and to see first?

Because I don't know you are now learning progress, but the sorting it real scene is sorting, nothing special, maybe you think too much.
I learned recursive this piece, feeling recursive can in some cases instead of circulation, after all, can save a lot of lines of code

CodePudding user response:

reference 13 floor qq_49818874 reply:
Quote: reference to the tenth floor maradona1984 response:
Quote: refer to the sixth floor qq_49818874 response:
Quote: refer to the second floor maradona1984 response:
to tell the truth you even these three sorting is a face of meng force, that really versatile sorting algorithm that wan meng force in the face.

Most of the time, of course, you just need to call API, you don't need to pay attention to its internal implementation.
not to say do not understand, just don't understand what is the role of it in the actual development process, and learning and to see first?

Because I don't know you are now learning progress, but the sorting it real scene is sorting, nothing special, maybe you think too much.
I learned recursive this piece, feeling recursive can in some cases instead of circulation, after all, can save a lot of lines of code

Also in the grammar learning phase, you can don't want to engineering

CodePudding user response:

On the 14th floor maradona1984
reference response:
Quote: refer to the 13th floor qq_49818874 response:
Quote: reference to the tenth floor maradona1984 response:
Quote: refer to the sixth floor qq_49818874 response:
Quote: refer to the second floor maradona1984 response:
to tell the truth you even these three sorting is a face of meng force, that really versatile sorting algorithm that wan meng force in the face.

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related