Depth and breadth first traversal of Graphs

First introduce the structure of two kinds of graphs Adjacency matrix: A one-dimensional array is used to store the vertices in the graph, a two-dimensional array is used to represent the relationship between elements, and the row, column and their values are used to represent whether there is an edge (ARC) between the two vertices. If the va ...

Posted by matthewlesh on Sat, 30 Apr 2022 04:43:12 +0300

E22 SX1268 LoRa module transmission test (fixed-point mode) sending and receiving serial port messages C language code under windows and linux Environment

preface Recently, due to the needs of the project, the LoRa transparent transmission module has been tested and learned. The module tested this time is the LoRa module of Chengdu ebyte company, with the model of SX1268. The module adopts serial port transparent transmission mode. This blog mainly records the fixed-point transmission mode of ...

Posted by Solemn on Sat, 30 Apr 2022 02:59:20 +0300

Android GifImageView loading Gif pictures and its principle

background I saw an interesting moving picture a few days ago. I originally wanted to download it and send it to my friends, but when I sent it on wechat, I prompted that the file was too large. I saw that it was 41M, so I was thinking about how to load such a large gif. So I made a demo to try. Glide As we all know, Glide supports loading g ...

Posted by r3dn3ck on Fri, 29 Apr 2022 12:46:32 +0300

S3C2440 porting uboot supports NAND startup

   S3C2440 in the previous section is transplanted to the new board of uboot_ Clock_ SDRAM_ Serial port transplantation uboot initializes the clock and configures the support serial port. In this section, we continue to modify uboot to support NAND startup.@[TOC]1. Remove the "- pie" option  refer to the start used by u ...

Posted by matanoosh on Fri, 29 Apr 2022 11:02:11 +0300

Three ways to store strings

@[TOC]   in the data structure, the string should be stored in a separate storage structure, which is called string storage structure. The string here refers to the string. No matter which programming language you learn, the string is always the most operated. The most commonly used storage structure is undoubtedly the use of fixed le ...

Posted by ashutosh.titan on Fri, 29 Apr 2022 01:46:52 +0300

2022 group programming ladder race L2-1 inserting pine branches

L2-1 pine branch insertion Workers in artificial pine branch processing plant need to insert plastic pine needles of various sizes into pine branches to make large and small pine branches. Their workflow is (not) like this: Each person has a small box at hand, and the initial state is empty.There are endless pine branches and a pusher in fr ...

Posted by explorer on Thu, 28 Apr 2022 09:10:42 +0300

Find the union of two integer sets

All of them. Recently, Xiaobai encountered the problem of finding non repeated numbers when doing questions. Today, I'm here to share and record my method with you. First, we need to input these two sets and combine them into an array. Here I choose to use an array continuous input for (i = 0; i < n; i++) scanf("%d", a+i); scanf("%d", & ...

Posted by kidd1270 on Thu, 28 Apr 2022 08:50:53 +0300

Linux network development tutorial 6_ Network programming under window

socket interface has been widely used in modern operating systemsThe socket programming interface under Windows is almost the same as that in LinuxDifferencesDifferent return types (handle types)The handle is not a file descriptor, and not all files are connected in Window (therefore, send and recv cannot be used for socket s in windows)Usage o ...

Posted by iphone2008 on Thu, 28 Apr 2022 05:12:18 +0300

C language - process management

Basic concepts of process A process is an execution process of a program with certain functions about a data set. The Linux system supports multiple processes at the same time. A priority is set in the security information in each process attribute. The system determines the size of the time slice obtained by each process from the CPU acco ...

Posted by nevillejones on Tue, 26 Apr 2022 14:58:10 +0300

Section 11: dynamic memory allocation, secondary pointer, sizeof

Pointers are variables used to store address data NULL indicates an empty address Pointer variables that record invalid addresses are called wild pointers The pointer can participate in the following mathematical calculations Pointer + integer, pointer integer, pointer pointer pointer All the units in the pointer are determined by the integer ...

Posted by cgm225 on Tue, 26 Apr 2022 03:10:02 +0300