Data Structure—Dynamic Order List

First, the concept of the sequence table *(1)* The sequence table is a linear structure in which data elements are sequentially stored in a segment of storage units with consecutive physical addresses. Generally, array storage is used. Implement various functions on arrays *(2)* Here we note that the sequence table has the word sequence b ...

Posted by echoofavalon on Wed, 12 Oct 2022 23:37:50 +0300

Data structure - c language to realize basic operations such as adding, deleting, searching and modifying the leading circular double linked list (super long and super detailed)

1, Basic cognition What is a cycle The last node of the linked list points to the head node, forming a ring. Therefore, any other node can be found from any node in the circular linked list. What is a double linked list Two pointers are stored in the structure of the linked list, one pointing to the predecessor node and the other pointing t ...

Posted by kidestranged on Wed, 07 Sep 2022 21:55:27 +0300

J015 intersection traffic light based on AT89C51 (emergency + night)

Intersection traffic light emergency + night based on AT89C51 Simulation diagram proteus 7.8 Program compiler: keil 4/keil 5 Programming language: C No.: J015 Functional requirements 1) There are red, yellow and green signal lights in the east-west direction and the north-south direction; 2) Equipped with emergency braking button. Wh ...

Posted by bigmichael on Sun, 04 Sep 2022 22:29:40 +0300

C language learning log

int binary_search(int* arr,int num,int k) { int left = 0; int right = k - 1; int mid; while (left <= right) { mid = (left + right) / 2; if (arr[mid] < num) { left = mid + 1; } else if (arr[mid] > num) { right = mid - 1; } else if (arr[mid] == num) { return mid; } } return -1; } int main() { int arr[ ...

Posted by sella2009 on Sat, 03 Sep 2022 21:14:03 +0300

Redis advanced practice

Redis advanced practice transaction management Comparison between redis and mysql redis slow log queryredis high availability and cluster redis master-slave replication Synchronization mechanism**Master slave replication principle****Command propagation**SYNC and PSYNCConsistency of redis replication ...

Posted by ben2.0 on Sat, 27 Aug 2022 14:01:57 +0300

Advanced c language: pointer

✨ The author introduces: Hello, everyone. I'm pangdudu, the king of fishing. You can call me Xiaodu 💕 ✨ Author home page: Fishing king chubby personal blog home page 🎉 🎈 Author's gitee: Small bit_ Doodle's personal gitee 🎈 Series column: [from 0 to 1, roam the world of c language] ✨ Xiao Du studies and makes progress with ...

Posted by blkraven on Fri, 05 Aug 2022 21:31:35 +0300

c language implementation of queue

Sequential implementation of queues typedef struct{ int data[MaxSize]; int front,rear; } SqQueue; For the initialization of the sequence queue, front points to the queue head element, and rear points to the next position of the queue tail element, that is, the next position that should be inserted. void Init(SqQueue q){ q.front=0 ...

Posted by natbrazil on Fri, 01 Jul 2022 21:46:43 +0300

Simple right and wrong judgment and Realization of Yang Hui triangle

catalogue 1. Simple right and wrong judgment 2. Yanghui triangle 1. Simple right and wrong judgment Five athletes participated in the 10m platform diving competition. They were asked to predict the result of the competition: Player A said: B second, I third; Player B said: I'm second, E is fourth; Contestant C said: I am the first and ...

Posted by ruuyx on Wed, 25 May 2022 01:28:23 +0300

Chapter 6 serial port

catalogue 1, WIFI module (ESP-01S) 1. Basic information about the module 2. AT instruction 1) Understanding concepts 2) Common AT commands of ESP-01S 3. Programming 1) Configure ESP-01S as Client 📓 How to debug the program? - White box test 2) Configure ESP-01S as Server 2, 4G wireless communication module (EC03-DNC) 1. Basic inform ...

Posted by kml2katz on Tue, 24 May 2022 12:23:44 +0300

Real and complex matrices and their various operations implemented in C language

I. Introduction I recently worked as an intern in a company and spent three weeks working on an indoor positioning algorithm (rudimentary, not yet optimized) to realize the joint writing and debugging of matlab and C. The author believes that the difficulty lies in the various operations of the matrix. In C++ There is Eigen library available. E ...

Posted by manchuwok on Sun, 22 May 2022 14:49:52 +0300