Chapter VIII sorting

Chapter VIII sorting What is sorting? Sorting: arrange a group of disorderly data in order according to a certain law. Learning content Sort by principle Insert sort: direct insert sort, half insert sort, Hill sortSwap sort: bubble sort, quick sortSelect sort: simple select sort and heap sortMerge sort: 2-way merge sortCardinality sort Wo ...

Added by jonniejoejonson on Wed, 15 Dec 2021 17:37:13 +0200

[JAVA dark horse programmer's notes] III P233-P312 (List, Set, comparator, generics, Map, File, IO stream...)

P233 data structure Stack: data entering the stack model is called pressing stack, and data leaving the stack model is elastic stack. Stack is a last in first out model.Queue: the process of data entering the queue model from the back end is called entering the queue, and the process of leaving the queue is called leaving the queue. Queues are ...

Added by maya28 on Wed, 15 Dec 2021 10:45:48 +0200

Bidirectional linked list implementation

1.1 basic introduction 1. Advantages and disadvantages of one-way linked list For one-way linked lists, the search direction can only be one direction, while two-way linked lists can search forward or backward.A one-way linked list cannot be deleted by itself. It needs to rely on auxiliary nodes, while a two-way linked list can be deleted by ...

Added by kpulatsu on Wed, 15 Dec 2021 09:43:21 +0200

❤️ Algorithmic programming - algorithmic programming tool (STL) is continuously updated. Welcome to pay attention ❤️

1.1 STL(Standard Template Library) 1.1.1 STL overview STL is a powerful template based container library. The efficiency and reliability of algorithm design can be greatly improved by directly using these ready-made standardized components. It has been modified and perfected by many generations of Daniel programmers. In fact, simply put, it i ...

Added by onyx on Wed, 15 Dec 2021 02:36:10 +0200

Data structure -- LeetCode special exercise Day13

 290. Word rules Given a pattern and a string str, judge whether str follows the same rule. The , here refers to complete matching. For example, there is a corresponding law of two-way connection between each letter in pattern , and each non empty word in string , str ,. Example 1: Input: pattern = "Abba", STR = "dog cat ...

Added by fellow21 on Wed, 15 Dec 2021 01:23:26 +0200

[offline] persistent data structure (Chairman tree)

Weight segment tree, also known as chairman tree. Weight segment tree, each leaf node represents a weight. Each node has a weight, which represents the number of numbers in the current interval. with This question For example, the data is 1 5 2 6 3 7 4, indicating the array to be queried a []. Discretization Discretization is to change the d ...

Added by kevdotbadger on Tue, 14 Dec 2021 20:47:00 +0200

Eight sorts of common data structures

catalogue I. insert sort: 1. Direct insert sort; 2. Hill sort 2. Sorting: Select sort Heap sort Exchange sort person name: bubble sort} the simplest sort, but stable Implementation of three recursive methods for quick sorting: Implementation of non recursive method for quick sorting: Merge sort: Count sort I. insert sort: 1. Direct i ...

Added by GreenUser on Tue, 14 Dec 2021 13:14:00 +0200

HashMap implementation principle (with source code), see this article is enough

HashMap is a collection container that senior java engineers must be proficient in. Its importance is almost equal to the importance of Volatile in concurrent programming (visibility and order). Through the detailed explanation of graphic source code, this article deeply analyzes the important kernel knowledge of HashMap, which is easy to read ...

Added by catalin.1975 on Tue, 14 Dec 2021 01:08:14 +0200

Data structure course design North

Data structure course design North Version 3:12.13 modified Recently, Mr. Zhang (in fact, I'm not sure who did it, but I feel that Mr. Zhang has this level) gave me an interesting question. Many younger brothers and sisters came to ask me. In order to facilitate everyone in the province to ask me several times, I'll share my personal ideas wi ...

Added by xfluous on Mon, 13 Dec 2021 17:12:07 +0200

07 - Figure 4 Harry Potter's test (25 points)

Harry Potter is going to have an exam. He needs your help. This course is about the ability to change one animal into another with a magic spell. For example, the spell to turn a cat into a mouse is haha, the spell to turn a mouse into a fish is hehe, and so on. A spell that changes in the opposite direction is simply to recite the original spe ...

Added by alohatofu on Mon, 13 Dec 2021 02:35:19 +0200