B-tree summary (concept, operation and C language implementation)

   recently, I was reviewing the data structure. In order to deepen my understanding of B-tree, I sorted out the following notes, and then implemented B-tree in C language; I haven't used C language for a long time. Some parts of the code don't conform to the specification or there are problems in understanding this article. Please co ...

Posted by EverToDesign on Sat, 25 Sep 2021 06:02:33 +0200

[small Y learning algorithm] ⚡ Daily LeetCode punch in ⚡ Figure 40. Post order traversal of binary tree

📢 preface 🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌲 Punching out an algorithm problem every day is not only a learning process, but also a sharing process 😜🌲 Tip: the problem-solving programming languages in this column are C# and Java🌲 To maintain a state of learning every day, let's wo ...

Posted by gc40 on Fri, 24 Sep 2021 17:07:28 +0200

Summary of sorting algorithm (including one-dimensional array, two-dimensional array and three-dimensional array) -- dig pits and not fill them

Reminder: 1. The pictures taken in this article are from books: Algorithm book for everyone [Japan] written by Shanpu Xian; Jueyun translation 2. The default sorting algorithm in this paper is ascending Sorting algorithm summary: 1. Bucket sorting 2. Selection sorting 3. Bubble sorting 4. Insertion sorting 5. Merge sorting 6. Hill sorting 7. Q ...

Posted by jursten on Fri, 24 Sep 2021 16:24:34 +0200

Data structure notes

2, Linear table 2.1 definition of linear table Linear list: a finite sequence of zero or more data elements (with the same data type) Sequence. There is order between elements. When there are multiple elements, the first one has no precursor, the last one has no successor, and the others have only one precursor and successor.Finite, finite n ...

Posted by kishanprasad on Thu, 23 Sep 2021 15:03:03 +0200

Data structure - lookup (Part III) - hash lookup

Hash lookup (hash) In the search of linear tables and tree tables, there is no definite relationship between the position of records in the table and the keywords of records. Therefore, a series of keyword comparison is required when searching records in these tables. This kind of search method is based on "comparison", and the effic ...

Posted by jungalist on Thu, 23 Sep 2021 11:43:14 +0200

C + + print files -- files and streams

Files and streams Due to the needs of the project, it is required to output the image data to the file after processing. In the file, different kinds of data will be displayed in table layout. At first, it was not easy to do, and then try it 1. Basic knowledge To process files in C + +, you must include header files and in the C + + source ...

Posted by scottb1 on Thu, 23 Sep 2021 09:12:41 +0200

[XJTUSE] data structure learning -- Chapter 3 tree and binary tree 3.2 walking around and implementation of binary tree

3.2 travel and implementation of binary tree 3.2.1 travel around binary tree Visiting the nodes of a binary tree in a certain order is called a tour or traversal. Each node is accessed once and listed, which is called the enumeration of binary tree. Generally, the traversal of a binary tree is divided into pre order traversal, middle orde ...

Posted by GrizzlyBear on Wed, 22 Sep 2021 19:58:05 +0200

Learning notes of c + + Advanced Programming 2

Warning; In modern C + +, we should avoid low-level memory operations as much as possible and use modern structures, such as containers and smart pointers. Use dynamic memory Warning: As a rule of thumb, each time you declare a pointer variable, be sure to initialize it immediately with the appropriate pointer or nullptr! For example, Figu ...

Posted by scoobydoo9749 on Wed, 22 Sep 2021 18:45:01 +0200

A * introduction to algorithm -- eight digital

A * preliminary detailed explanation of algorithm Please see Baidu Encyclopedia for details The core valuation function: f(x) = g(x) + h(x) g(x) is the distance function from the starting point, such as how many steps have been taken from the starting point.h(x) is the heuristic search function for the current position to reach the end ...

Posted by phrygius on Wed, 22 Sep 2021 17:39:01 +0200

Sorting algorithm - quick sorting

1, Introduction to fast platoon Quick sort uses the idea of divide and conquer. Its basic idea is: Select a keyword key and place it in the sorted position of the whole sequence through one sorting, and its left sequence is less than or equal to key. The right sequence is greater than or equal to key. Recursively continue the first ...

Posted by kalebaustin on Wed, 22 Sep 2021 10:30:12 +0200