Linear table -- a preliminary understanding of stack
π Understand sequential stack and chain stack
In the world of data structure, stack, like sequential list and linked list (linked storage structure), is a linear storage structure. Stack is a linear table (logical structure concept) with limited operation. The particularity of its operation lies in its "last in, first out" chara ...
Added by badal on Sun, 05 Dec 2021 23:56:19 +0200
Data structure and algorithm -- divide and conquer
Algorithm divide and conquer
1 algorithm idea
A problem with scale n is divided into k smaller subproblems, which are independent and the same as the original problem. Then these subproblems are solved recursively, and the solutions of the subproblems are combined to obtain the solution of the original problem.
\[T(n)=\begin{cases}O(1) & n= ...
Added by help_needed on Sun, 05 Dec 2021 19:31:24 +0200
[chapter 08 - closures and decorators 01] Introduction to closures
1, Closure
1.1 introduction to closures
We have learned about the function before. We know that when the function is called, the variables defined in the function are destroyed, but sometimes we need to save the variable in the function and complete some column operations based on the variable every time. For example, what should we do every ...
Added by abhic on Sun, 05 Dec 2021 17:04:18 +0200
Tree and binary tree
1. Pre order printing node
[problem description] the algorithm is designed to print the leaf nodes of the binary tree in the way of preorder traversal.
[input form] a line of string, which is the preorder traversal sequence of the extended binary tree, which is used to construct the binary tree.
[output form] the pre order leaf traversal s ...
Added by jaz529 on Sun, 05 Dec 2021 07:52:03 +0200
[data structure] eight classic sorting (algorithm + dynamic graph + code explanation)
preface
In the process of learning data structures or algorithms, we inevitably need to use sorting. The so-called sorting is to arrange the records in a certain order. The data structure mainly introduces eight common sorts. Let's learn together this time.
Tip: the following is the main content of this article. The following explana ...
Added by SidewinderX on Sat, 04 Dec 2021 23:52:20 +0200
Heap related issues
Hello, I'm Monday.
We talked last time Heap and heap sorting This time, let's talk about heap related topics.
1, Almost ordered array sorting
1. Title Description:
An almost ordered array is known, which means that if the array is arranged in order, the distance of each element must not exceed K, and K is relatively small relative to th ...
Added by g5604 on Fri, 03 Dec 2021 00:18:27 +0200
springboot -- more secure database druid
Spring boot associated druid
First of all, why do we use this database connection pool? A large part of our development is around the database. When we operate on the database, we need to go in and out of the database connection pool to obtain the connection with the database. Therefore, an efficient and safe database connection pool has becom ...
Added by sunsun on Wed, 01 Dec 2021 13:31:24 +0200
Collection framework and the use of data structure, collection, Map and ArrayList behind it
1, Overview of classes and interfaces
Advantages and functions of Java collection framework
Using a mature collection framework helps us write efficient and stable code conveniently and quicklyLearning the data structure knowledge behind it will help us understand the advantages, disadvantages and usage scenarios of each collection
...
Added by DylanBlitz on Wed, 01 Dec 2021 12:14:45 +0200
[Java data structure] binary tree classic OJ interview questions - brush notes + problem solving ideas
π’ Blog home page: π Bryant typing the codeπ π’ Welcome to praise π Collection β Leaving a message. π Welcome to discuss! π π’ This article was originally written by [Bryant who knocked the code], and was first launched in CSDN πππ π’ Since the blogger is learning Xiaobai, there will inevitably be mistakes. If you have any questions, ...
Added by wacook on Wed, 01 Dec 2021 07:20:51 +0200
Cardinality sort (bucket sort) -- what is the real function of bucket?
1, Foreword
β in the past, the sorting methods we studied were based on comparison, and their efficiency was either quadratic or logarithmic. Bucket sorting is based on container sorting, which is mainly divided into count sorting and cardinality sorting. This paper describes the knowledge of cardinality sorting. β the idea of ...
Added by PHPoracle on Wed, 01 Dec 2021 03:24:47 +0200