The speed is increased hundreds of times, and the application of the data structure in practical work is recorded once

During this period of time, I wrote a lot of source code analysis. This article wants to change the taste and share with you a case I encountered in my work. After all, as a part-time worker, in addition to looking at the source code at work, bricks still have to be moved. This article will share a story of using appropriate data structures to ...

Posted by ready2drum on Fri, 06 May 2022 07:42:09 +0300

Detailed explanation of Redis related commands and their principles: Redis basic operations, data structures and applications

How to learn redis? Learn what redis isHow to use redis, how to operate the data structure in redisTypical applications and operationsRead the redis source code 1. Redis Redis is the abbreviation of Remote Dictionary Service; it is also a remote dictionary service; Redis is an in-memory database, KV database, data structure database; Red ...

Posted by cryp7 on Thu, 05 May 2022 16:53:18 +0300

MOOC 06 - Figure 3 six dimensional space

The "six degree space" theory is also known as the "Six Degrees of Separation" theory. This theory can be popularly stated as: "there will be no more than six people between you and any stranger, that is, you can know any stranger through up to five people." As shown in Figure 1: Although the "six dimensi ...

Posted by DragonHighLord on Wed, 04 May 2022 13:11:02 +0300

< data structure > eight sorting

catalogue         Overview of common algorithm sorting 1. Direct insert sort         Direct insert sort property summary 2. Hill sort         Hill sort properties summary 3. Select sort         Select sort property summary 4. Heap sort         Summary of heap sort characteristics 5. Bubble sorting         Bubble sorting characteristi ...

Posted by madmax on Wed, 04 May 2022 10:18:28 +0300

The second day of Java boy's storming into the Ninth Heaven of data structure -- string

This column is mainly used to help Java users quickly get started with data structures and brush algorithm problems! preface Since ancient times, the data structure industry has been divided into nine days. It is said that after breaking through these nine days, you can attack the algorithm industry and finally become a man, which is respec ...

Posted by dsaba on Tue, 03 May 2022 23:14:47 +0300

Use your own heap instead of the system default heap?

Follow the previous article How is heap used in the program? Is there a memory leak? , since using the default heap may cause problems, what if you don't use the default heap at all? So I had the following idea: 1. Use a large area of the global area as the custom heap memory (g_heap[MAX_HEAP_SIZE] in the code). All heap allocation requests and ...

Posted by simonmlewis on Tue, 03 May 2022 21:53:50 +0300

Data Structure - Binary Tree

​ 1. Sequential storage ​ The root node bit order is 0. The remaining nodes, assuming the bit order is i, if the left child exists, the left child is 2i+1. If the right child exists, the right child is 2i+2. Its parent nodes are all (i-1)/2. If the node does not exist, it can be marked with a number. The disadvantage is that it is eas ...

Posted by tha_mink on Tue, 03 May 2022 20:11:07 +0300

Data structure Exercise - linked list (linear list, stack and queue) - delete elements greater than x and less than y in the linked list / local inversion of single linked list

Article launch and subsequent updates: https://mwhls.top/1034.html For new updates, please go to mwhls.top see. There is no picture / format error. Please check the first page of the article at the top. Data structure Exercise directory Single choice questions If the head of the single linked list that does not take the lead no ...

Posted by james182 on Tue, 03 May 2022 16:20:34 +0300

[data structure] linked list required questions

Reverse linked list: JZ24 Title Link OJ link Title Description: Given the head node phead of a single linked list (the head node has a value, for example, in the figure below, its val is 1) and the length is n, after reversing the linked list, return to the header of the new linked list. Data range: 0 ≤ n ≤ 1000 Requirements: spac ...

Posted by lilsim89 on Tue, 03 May 2022 14:22:36 +0300

Data structure and algorithm -- implementation and principle of single linked list

catalogue 1, Principle of linked list 1. What is a linked list 2. What is a single linked list 3. Comparison between sequence list and linked list 2, Implementation of single linked list 1. Definition of single linked list 2. Create a linked list node 4. Single linked list data is inserted in the header summary 1, Principle of link ...

Posted by bogu on Tue, 03 May 2022 07:50:35 +0300