Layer by layer -- breadth first search

Breadth first search, also known as breadth first search. It is similar to depth first search, which starts from a certain state to explore all reachable states. The difference from depth first search is the order of search. Width first search always searches the state close to the initial state first. In other words, it searches according to t ...

Posted by jehardesty on Sat, 05 Mar 2022 09:04:33 +0100

HMI-43 - [energy saving mode] top title bar and bottom information bar, lighting and start animation

HMI-43 - [energy saving mode] top title bar and bottom information bar, lighting and start animation Today, to realize the following energy-saving mode, the information bar at the bottom of the Title, the lighting system, and the start animation, the LCD instrument will come to a temporary end. Current progress To today's position, the t ...

Posted by faraway on Sat, 05 Mar 2022 09:03:52 +0100

Multithreading tutorial AQS principle

Multithreading tutorial (34) AQS principle 1. General Its full name is AbstractQueuedSynchronizer, which is the framework of blocking locks and related synchronizer tools characteristic: The state attribute is used to represent the state of resources (exclusive mode and shared mode). Subclasses need to define how to maintain this state and ...

Posted by avillanu on Sat, 05 Mar 2022 08:58:41 +0100

Using JDBC to connect database and write routine

1. Introduction to JDBC jdbc(Java DataBase Connectivity) Developed on the basis of Odbc of C language, it is the earliest ORM (Object Relation Mapping) tool, which can use object-oriented Java code Operate on relational database. With the continuous development of ORM tools, many frameworks have been derived. Most of them are develope ...

Posted by xcasio on Sat, 05 Mar 2022 08:53:26 +0100

js array and object

array What is an array? The index starts from 0, and the collection composed of the same data type is called array. Why do you need arrays (what problems do arrays solve)? For the unified management of the same type of data. What are the characteristics of arrays? Index value;The elements in the array are of the same data type;It is order ...

Posted by Zay on Sat, 05 Mar 2022 08:49:42 +0100

PostgreSQL PL / PgSQL control structure

The control structure of PL/pgSQL is the most important and useful part. In the actual working scenario, it is inseparable from the business processing logic. When writing PL/pgSQL, the control structure is used to operate data. The control structure supported by PL/pgSQL is almost the same as that of other languages, such as condition, loop, e ...

Posted by drak on Sat, 05 Mar 2022 08:17:30 +0100

[uCOS] uCOS II system startup and clock

All ideas come from this blog: [chuangkehai] [operating system principle and embedded UCOS-II teaching video collection] [one week series] And µ C/OS-II tutorials Analysis of startup process of UCOS II system In embedded system, startup is divided into hardware startup and software startup. For example, there are many ARM cores. Har ...

Posted by Jean-Yves on Sat, 05 Mar 2022 08:15:00 +0100

C language: Address Book

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface 1, Design ideas Dynamic address book creation The first is to build the whole address book framework For contacts: 1. Create a structure iden to store the attributes ...

Posted by alexdoug on Sat, 05 Mar 2022 08:11:59 +0100

[Go advanced concurrent programming] Context

Context is a commonly used concurrency control technology in Go application development. Its biggest difference from WaitGroup is that context has stronger control over derived goroutines, which can control multi-level goroutines.Although there are many disputes, it is convenient to use context in many scenarios, so now it has spread in the Go ...

Posted by kaeRock on Sat, 05 Mar 2022 08:10:50 +0100

Regional transfer trading strategy for Garch Volatility Prediction

Original link: http://tecdat.cn/?p=17526This paper proposes an algorithm, which can switch between mean regression and trend following strategy according to market volatility. Two models are studied: one uses historical volatility and the other uses Garch (1,1) volatility prediction. The mean regression strategy uses RSI (2) for modeling: it is ...

Posted by Placebo on Sat, 05 Mar 2022 08:07:06 +0100