28 | heap and heap sorting: why is heap sorting not as fast as fast sorting?
How to understand "heap"
Heap sorting is an in-situ sorting algorithm with time complexity of O(nlogn)
There are two characteristics of the heap:
A complete binary treeEach node in the heap must be greater than or equal to (or less than or equal to) the value of its left and right child nodes;
The heap whose value of each node is g ...
Added by Cogen on Thu, 17 Feb 2022 12:41:55 +0200
DAY13 / CSS triangle + interface style + vertical align + overflow text ellipsis display + layout skills + CSS initialization
catalogue
CSS triangle
Interface style
Mouse cursor
outline
Prevent dragging text field resize
Vertical alignment of inline and inline block elements
vertical-align
Blank gap at the bottom of the picture
Overflow text ellipsis display
Single line overflow text ellipsis display
Layout skills
Clever use of negative margin
Text ...
Added by fareedreg on Thu, 17 Feb 2022 12:31:29 +0200
Manually provide an RPC service through Netty and ZooKeeper
explain
Project linkWhat does the microservice framework include?How to implement RPC remote call?Open source RPC framework
Restricted languageCross language RPC frameworkBuild ZooKeeper with local Docker
Download ImageStart containerView container logRPC interfaceNetty RPC server
Interface implementationService startupRegistratio ...
Added by VFRoland on Thu, 17 Feb 2022 12:30:06 +0200
[Java] IO flow foundation
๐ : Blog home page: Incoming bogey ๐: Today's article: [Java] IO stream Foundation ๐: I hope my interpretation of the source code can help you ๐ ๐ฑ: Boji is still trying to learn JavaSE. If you have any questions or omissions, please give me more advice ๐ โ๏ธ: On the way of self-study and growth, thank you for your company! No hurry ๏ผ ...
Added by phuggett on Thu, 17 Feb 2022 12:20:28 +0200
Linux system programming - interprocess communication (mmap memory mapping)
The previous article introduces the common communication methods between processes: nameless pipeline and named pipeline. This article introduces memory mapping. Memory mapping is very convenient when multiple processes access files to read and write.1. Introduction to memory mapping mmap functionThe mmap function can map the files on the disk ...
Added by creatives on Thu, 17 Feb 2022 11:58:00 +0200
[Experiment 4] implementation and analysis of DPCM compression system
Combined with experiment 2 code
1, Experimental purpose
Master the basic principle of DPCM codec system. Preliminarily master the experiment, program the DPCM encoder with C/C++/Python and other languages, and analyze its compression efficiency.
2, Experimental principle
1.DPCM encoding and decoding principle
DPCM is the abbreviatio ...
Added by rodolp13 on Thu, 17 Feb 2022 11:53:03 +0200
Linux system programming - interprocess communication (shared memory)
The standard pipeline flow, nameless pipeline, named pipeline and mmap memory mapping have been introduced one after another. This article introduces shared memory segments.1. Shared memory mechanism (shmget) Shared memory is also a common means of communication between processes (there is no need for inheritance relationship between processes) ...
Added by ben.hornshaw on Thu, 17 Feb 2022 11:47:10 +0200
1-3. String, escape character, comment
1. String type
"hello boys and girls. \n" This string of characters enclosed by double quotes is called String Literal, or simply string. As follows:
โข Example 1
1 //String type
2 #include <stdio.h>
3 int main()
4 {
5 "abcdef";
6 "";//Empty string
7 return 0;
8 }
โข Example 2
...
Added by RHolm on Thu, 17 Feb 2022 11:32:55 +0200
Go Kratos framework mall micro service actual user service API
Go Kratos framework mall micro service actual user service (5)
This article is mainly about the preparation of services that provide http interfaces to the web. You can see where you don't write clearly Source code , you are welcome to give advice.
Note: vertical... Code is omitted. In order to keep the article concise, I will use vertical fo ...
Added by PeeJay on Thu, 17 Feb 2022 11:33:39 +0200
JAVA foundation 06 - interface and polymorphism
1, Interface
1.1 what is the interface
First of all, explain the rookie tutorial, which is very professional
Interface (English: Interface), an abstract type in JAVA programming language, is a collection of abstract methods. Interfaces are usually declared as interfaces. A class inherits the abstract methods of the interface by inheritin ...
Added by Abarak on Thu, 17 Feb 2022 11:30:10 +0200