Eight Sorts of Data Structures

1. Direct insertion sort Green is the insertion element, red is the insertion element. For each number inserted, the element to be inserted is compared in turn with the element previously inserted. If it is larger than it, it covers the position o ...

Posted on Wed, 14 Aug 2019 06:40:20 -0700 by ozace

Viewing Linux System Resources--Learning Notes

Catalog 1. vmstat command Virtual Meomory Statistics 2. dmesg command III. free Order IV. Viewing CPU Information V. uptime 6. Viewing System and Kernel Related Information List file information that process calls or opens 1. vmstat comm ...

Posted on Wed, 14 Aug 2019 03:01:36 -0700 by pixelsoul

Snowflake snowflake algorithm

Summary SnowFlake is an algorithm designed by Twitter to generate unique IDs in distributed systems. It can satisfy tens of thousands of requests for message ID allocation per second by Twitter. These message IDs are unique and have approximatel ...

Posted on Wed, 14 Aug 2019 00:01:07 -0700 by Joshua4550

Qt--Text Flow and Data Flow, Buffer Operation and Data Operation

1. Text Flow and Data Flow The file types mentioned in A.Qt are divided into two main categories1. Text File - The contents of the file are readable text characters2. Data Files - File contents are direct binary dataQFile directly supports reading and writing text files and data filesB.Qt provides auxiliary classes to simplify reading and writ ...

Posted on Tue, 13 Aug 2019 19:20:45 -0700 by illushinz

Classes of TypeScript -- ts

Classes of TS In traditional JavaScript, we use constructors to implement the concept of classes and inheritance through prototype chains. It's worth celebrating that we finally waited for ES6 and ushered in the class keyword. Front-end engineers f ...

Posted on Tue, 13 Aug 2019 06:41:27 -0700 by overlordofevil

hdu 5575 Discover Water Tank left-handed tree

Topic link: http://acm.hdu.edu.cn/showproblem.php?pid=5575 Topic: Now there is a huge reservoir (which can be regarded as two-dimensional), and the middle of the reservoir is divided into n n n parts by n_1n-1n_1 baffles. You know the height of these baffles. Now you know the results of mmm detection. E ...

Posted on Tue, 13 Aug 2019 00:00:17 -0700 by jaapoost

Adaptive Threshold Selection Algorithms for Simulating PWM Waves

Adaptive Threshold Selection Algorithms for Simulating PWM Waves Preface: In the development of MCU, the waveform we often come into contact with is PWM wave, which is usually 0-3.3V digital PWM wave, rarely involving analog PWM wave. What's the difference between the two? Simulated PWM wave is not o ...

Posted on Mon, 12 Aug 2019 03:54:51 -0700 by nonexistentera

Topology sorting algorithm pen test for priority queue

Over 20 Years Batch Algorithm Written Test Question 3 There are N tasks executed, each taking Pi's time to complete.At the same time, there may be some dependencies between tasks.For example, Task 1 may depend on Task 2 and Task 3. Task 1 must execute both Task 2 and Task 3 before it can execute. O ...

Posted on Sun, 11 Aug 2019 20:05:25 -0700 by Deemo

[Learning Notes-Java Collection-4] HashMap Source Analysis

brief introduction HashMap uses a key/value storage structure, where each key corresponds to a unique value, and queries and modifications are fast enough to achieve the average time complexity of O(1).It is non-thread safe and does not guarantee the order in which elements are stored; Inheritance System HashMap implements Cloneable and can be ...

Posted on Sun, 11 Aug 2019 11:06:04 -0700 by ricta

mysql optimization-use case of clustering index and index coverage

        Table smth has 10,000 rows of data with two fields of 3,000 length. select id from smth order by id; very slow select id from smth order by id,ver; faster Reason?     create  table smth( id int(11) not null default 0, ver int(11) default null, content varchar(3000)  default null, ...

Posted on Sat, 10 Aug 2019 04:15:37 -0700 by .Stealth