Detailed explanation of C language sorting algorithm 1 (bubbling, selection, insertion, merging, fast)

Article catalog         1. Bubble sorting         2. Select Sorting         3. Insert sort         4. Merge and sort         5. Quick sort   1, Bubble sorting Basic idea: In a group of numbers to be sorted, compare and adjust t ...

Posted by parena on Fri, 26 Nov 2021 18:28:22 -0800

Request page storage management basic replacement algorithm LRU and CLOCK

1, Experimental purpose By simulating several basic page replacement algorithms for request page storage management, understand the characteristics of virtual storage technology, master the basic ideas and implementation process of several basic page replacement algorithms in virtual storage request page storage management, and compare their e ...

Posted by fortnox007 on Fri, 26 Nov 2021 16:03:13 -0800

OLED rolling display and temperature and humidity detection

1, I2C introduction 1. IC2 introduction I2C communication protocol (Inter Integrated Circuit) is developed by Phiilps company. It has the advantages of few pins, simple hardware implementation, strong scalability and no need for external transceiver equipment of USART, CAN and other communication protocols. The connection mode of I2C on ...

Posted by ray-solomon on Fri, 26 Nov 2021 14:34:46 -0800

Linux system programming - file IO

  man has nine volumes. System programming is the content of Volume II, and volume V is file format and specification open function Function prototype Parameter pathname file name Macro with parameter flags as access mode: o_ Rdonly (read only), O_ Wronly, O_ Rdwr (read write) these three must be added O_ Append, O_ Creat, O_ Excl ...

Posted by OriginalBoy on Thu, 25 Nov 2021 17:04:16 -0800

Hahaha ~ tic tac toe chess (unintentional version), come and have a preliminary taste of the fun of the code world

preface Hello everyone! I haven't seen you for a long time. The forever is here again. I've been very busy recently, so I haven't updated it for a long time. Last time I introduced the function related knowledge, and then this time we'll have a little episode to show you the tic tac toe game! However, due to the tight time recently, I'll ...

Posted by agisthos on Wed, 24 Nov 2021 15:37:13 -0800

C language: single linked list

catalogue Write before: Preface - array defects What is a linked list node Chain header Create a new node Play - inserting nodes Traversal of linked list Lookup (search) of linked list Delete Linked List Clearing of linked list summary Write it at the back reference material Write before: This article is suitable for beginners ...

Posted by AnthonyArde on Wed, 24 Nov 2021 05:29:13 -0800

(Heap Sort) heap sorting is super detailed. I don't believe you can't (implemented in c language code)

Basic introduction to heap Heap is a special kind of data structure in computer science. Heap is usually an array object that can be regarded as a complete binary tree. All its elements are stored in a one-dimensional array in the order of a complete binary tree, and the value of any parent node must be less than or equal to (greater tha ...

Posted by mlin on Tue, 23 Nov 2021 14:00:26 -0800

Time complexity

Time complexity: the time complexity of an algorithm is a function that qualitatively describes the running time of the algorithm. This is a function representing the length of the string of the input value of the algorithm. The time complexity is usually expressed by large O sign, excluding the low-order term and first term coefficient of this ...

Posted by predhtz on Tue, 23 Nov 2021 09:06:17 -0800

Ordinary fairy's learning record of pointer (from introduction to learning waste) -- Chapter 12

preface The following is the explanation of the pointer from the definition, focusing on practice, with exquisite bushi small pictures. If you also find the pointer difficult, learn it with SThree~~ My skills are not high, so the explanation is very easy to understand~~ If you have any doubts or I am wrong, you are welcome to point out!!! ...

Posted by xtheonex on Tue, 23 Nov 2021 06:40:30 -0800

yolov5 decoding is accelerated using GPU

The principle of YOLOv5 will not be described too much here. Start directly from the output head, and then design such as encoding and decoding:   1. The original output of yolov5 series is three head heads. The picture above is the picture with the input resolution of 608 * 608. If the input is changed to the pictu ...

Posted by ajanoult on Tue, 23 Nov 2021 05:10:20 -0800