Learning how to drive, cheating, novel downloadI recommend My Gilded Age, a novel about urban life written by Black Bike. The main character, Bai Shiqiu, was reborn in 1999. He had been passionate and artistic, and had been a bad student who had turned into an examinee. He had worked hard on the stage after his rebirth. This book had just been published. It was a sapling. The author's writing style was not bad, and the old driver drove very steadily. Although it was a little weak, the opening was amazing. The plot was not simple, the characters had distinct personalities, and there were even short stories. Although there might be a small poison point, it could be ignored.
"The Crazy Age of Chinese Entertainment" was not bad either. It was written by a Chinese entertainment writer. The main character, Wu Qiang, was a fake rich second-generation heir. He started all kinds of stories in the crazy era. There were many girls and driving scenes. The old driver held the steering wheel very steadily. He had a good grasp of words and rhythm. It was interesting.
There was also Douluo Continent's Title: Poison, a fantasy novel written during the rain. Dugu Bo as the main character Douluo douren, with a system, unique perspective, well written, making up for the original's regrets, funny, worth watching.
"Little Director in Entertainment" was a novel about urban entertainment stars. It was a harem novel written by Korean entertainment companies. It was a story about a little director driving a car. There were all kinds of characters. The part where he filmed the furnace was quite cool, but driving could be banned at any time.
"Go: Fighting AI, I Beat the Heavens." The male protagonist, Lu Zhe, traveled through a parallel world, broke into the professional Go world from an amateur player, and finally faced AI. It was a passionate story of a chess fanatic.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
small to largeThe following are a few common sorting algorithms:
##1. Bubble sort
1. ** Principle **
- It repeatedly visited the sequence to be sorted, comparing two adjacent elements each time, and if the order was wrong (such as the larger element being before the smaller element), it would swap them.
- He repeated the process of searching the sequence until there were no more elements that needed to be exchanged. At that time, the sequence was completed.
2. ** Instance **
- Suppose there is a sequence [5, 3, 4, 6, 2].
- The first round of comparison: first compare 5 and 3, because 5 > 3, the exchange is [3, 5, 4, 6, 2]; then compare 5 and 4, 5 > 4, the exchange is [3, 4, 5, 6, 2]; then compare 5 and 6, no exchange; then compare 6 and 2, 6 > 2, the exchange is [3, 4, 5, 2, 6].
- The second round of comparison: starting from 3, compare 3 and 4 without swapping; compare 4 and 5 without swapping; compare 5 and 2, 5 > 2, swap to get [3, 4, 2, 5, 6].
- The third round of comparison: compare 3 and 4 without swapping; compare 4 and 2, 4 > 2, swap to get [3, 2, 4, 5, 6].
- The fourth round of comparison: compare 3 and 2, 3 > 2, swap to get [2, 3, 4, 5, 6]. At this moment, the sequence was completed.
##2. Sorting
1. ** Principle **
- Its basic idea was to select a certain element from the data to be sorted according to the specified rules, and then exchange the positions according to the rules to achieve the purpose of sorting.
- The first time, the minimum value was selected from the entire array and exchanged with the first element of the array; the second time, the minimum value was selected from the remaining elements (except for the first element that had been sorted) and exchanged with the second element of the array; and so on.
2. ** Instance **
- For the sequence [5, 3, 4, 6, 2].
- First round: First assume that 5 is the smallest value, then compare it with the following elements and find that 2 is the smallest. Exchange 2 and 5 to get [2, 3, 4, 6, 5].
- The second round: Start from 3. Assuming that 3 is the smallest value, compare it with the later ones and find that 3 is the smallest. Without swapping, the sequence is still [2, 3, 4, 6, 5].
- The third round: Start from 4. Assuming that 4 is the smallest value, compare it with the later ones and find that 4 is the smallest. Without swapping, the sequence is still [2, 3, 4, 6, 5].
- The fourth round: Starting from 6, assuming that 6 is the smallest value, compare it with the later ones and find that 5 is the smallest. Exchange 5 and 6 to get [2, 3, 4, 5, 6].
##3. Heap Sorting
1. ** Principle **
- First of all, he had to understand the concept of a heap. A heap had the properties of a complete tree. If the value of each node is less than or equal to the value of its children, it is called a small top heap.
- The basic idea of heap sorting was to construct the sequence to be sorted into a small top heap. At this time, the minimum value of the entire sequence was the root node at the top of the heap. If it was exchanged with the last element, the last element would be the minimum value. Then, the remaining n - 1 elements were reconstructed into a heap, which would get the second smallest value of n elements. Repeating this process would result in an orderly sequence.
2. ** An example (simple)**
- Suppose there is a sequence [5, 3, 4, 6, 2].
- First, construct it into a small top heap (the detailed steps are omitted here) to obtain a small top heap structure. The top heap element of 2 is the minimum value.
- Exchange 2 with the last element 6 to get [6, 3, 4, 2, 5], then rebuild the top heap of the sequence except for the last element 6, and continue this process until the sequence is orderly.
##4. Counting Sorts (applicable to a certain range of numbers)
1. ** Principle **
- This was a sorting algorithm that was not based on comparison.
- When sorting a certain range of numbers, its complexity is O (n + k)(where k is the range of numbers). It counted the number of times each number appeared in the sequence, and then according to the results of the statistics, the numbers were output in order to achieve sorting.
2. ** example (Assuming the range of the whole number is 0 - 9)**
- For the sequence [5, 3, 4, 6, 2].
- First, count the number of times each number appears. For example, 2 appears once, 3 appears once, 4 appears once, 5 appears once, and 6 appears once.
- Then, in the order of 0 - 9, the elements in the sequence were output according to the statistics, and [2, 3, 4, 5, 6] was obtained.