Review For STL, we already know vector and list, and they are containers called one of the six major components in STL. We also learned to simulate the implementation of stack, and stack is called an adapter of one of the six major components in STL , Today, let’s learn about the analog implementation of […]
Tag: implementation
Complete binary tree – the concept and implementation of heap
Foreword Heap (heap): It is the abbreviation of heap memory. The heap is dynamically allocated memory. The memory size is not fixed and will not be released automatically. The heap-the data structure is an unordered tree structure, and it also satisfies the key-value How to store key-value pairs. 1. The concept and structure of the […]
Workflow Engine Design and Implementation · Task Blocking and Execution
In the previous article, when we talked about the task model, we mentioned blocking tasks, so how is this formed in the workflow? What is the relationship between blocking tasks and task models? Let’s do a simple analysis below. Here is still the simplest process as an example: Process definition Process Description node name display […]
Java implementation of Airplane Wars 2.0 game (open source)
Foreword: The game is based on [Shangxuetang] Aircraft Battle 2.0 at station B, the main frame remains unchanged, and the code is slightly changed. Java technology: java variables, java data types, judgment statements, loop structures, arrays, Java collections, simple window creation, graphics and picture drawing, double buffering technology, events-mouse and keyboard events, object collision detection. […]
Minimum spanning tree Prim algorithm implementation (c language code)
【Problem Description】 The road traffic between cities can be represented by an undirected graph. As shown below: The vertices represent the cities, the edges represent the roads connecting the cities, and the weights on the edges represent the length of the roads between the cities. Programming solves the following problems: (1) Input city information and […]
Tree & Binary Tree & Simulation Implementation & Algorithm Structure
1. Definition of tree: A tree is a non-linear data structure, which is a set of hierarchical relationships composed of n finite nodes. * There is a special node, which becomes the root node, and the root node has no predecessor nodes *Except the root node, other nodes are divided into M mutually disjoint sets […]
Implementation principle of java timer (time wheel algorithm)
A Java timer is a mechanism provided by the Java programming language to execute a given task within a predetermined time interval. It allows you to create a large number of cron tasks for some important application needs, such as automated backups, logging, data cleaning, etc. In this article, we will delve into the principle […]
Data crawling concept and Java and Python language implementation
Data crawling 1. Reptile concept Web crawler (also known as web spider, web robot, more often called web chaser in the FOAF community) is a program or script that automatically grabs information on the World Wide Web according to certain rules. Other less commonly used names include ant, autoindex, emulator, or worm. Crawlers in a […]
Mybatis-Plus public field automatic filling problem analysis and code implementation
Table of Contents 1. Introduction 2. Implementation steps 1. Add the @TableField annotation to the attribute of the entity class to specify the automatic filling strategy 2. Write a metadata object handler, and assign values to public fields uniformly in this class. This class needs to implement the MetaObjectHandler interface 2.1 Populate the createTime and […]
Workflow engine design and implementation · Parsing process definition files
In the previous article, we manually built a process object and simply printed and executed it. The way to build a process object is not very friendly. In order to build process objects more conveniently, we adopt a new method, that is, parse the process definition files mentioned in the basics and convert them into […]