Linked list accelerator -- Talking about skip list and its application in Redis

Background of problem As we all know, for the search of elements in an ordered set, if the set is stored through an array, then the binary search algorithm can quickly find elements by using the efficiency of array random access. So suppose that if the collection is stored through a linked list, can i ...

Posted by pages on Sun, 26 Jan 2020 21:39:31 -0800

Using Python to learn win32 library for memory reading and writing

Use according to the previous article Using Python to learn win32 library for memory reading and writing Using Python Win32 library, a game is read in memory. Today, let's write the operation of writing to memory text For 32-bit reading and writing, first of all, we need to understand several function ...

Posted by kylebud on Fri, 24 Jan 2020 01:57:45 -0800

Process control if

1, What is process control Sequence of program code execution 2, Classification of process control (1) Sequential execution (2) Select execution1. definition: Some codes may or may not be executed, and some codes may be executed selectively2. classification: (1) if (more important than switch) ● the ...

Posted by snowman15 on Tue, 21 Jan 2020 04:45:24 -0800

Methods of reading and writing text files and binary files in C/C + +

First of all, remember that the free function is only used to read binary files, and fscanf can read text or binary files. Fwrite / free will write / read files in binary form, such as int type in the example, and will be saved in numerical form. If you use Notepad and other programs to open, you will s ...

Posted by s1yman on Sun, 19 Jan 2020 03:03:16 -0800

Using Python to learn win32 library for memory reading and writing

Preface: Last week, in the essence of 52, I saw a big guy using Python to make a modifier of 5 of devil's tears. After reading it, I knew that the original Python could also operate on memory. After inquisitive about technology, I decided to try it myself. Tools to use: CE,Ollybdg, With Python, read ...

Posted by Dave2222 on Sat, 18 Jan 2020 05:50:09 -0800

java learning summary: 3

Logical operation 1. '!' (non) 2. Meet with (multiple conditions) In Java, both & & and & are logical operators that represent and, and both represent logical transporter and. When the expressions on both sides are true, the whole operation result is true, otherwise it is false.’ ...

Posted by ezbie on Sat, 18 Jan 2020 04:14:58 -0800

Data structure: linear table of linear structure

Even if there is no talent, as long as you are willing to spend a little time every day, do the same thing, unconsciously, you will go far. What is a linear table? A linear table is a finite sequence of n (n > = 0) elements. In the table, there is a linear logical relationship between elements: (1 ...

Posted by kyoru on Wed, 15 Jan 2020 00:27:56 -0800

Notes on golang slice

1 slice initialization 1 func printSlice(s []int) { 2 fmt.Printf("len=%d cap=%d underlying array:%p, %v\n", len(s), cap(s), s, s) 3 } 4 5 func sliceInit() { 6 7 var s1 []int //Declare s1, and it is not initialized. At this time, s1 is nil slice, and the underlying array is not allocated 8 if s1 == nil { 9 fmt.P ...

Posted by Imad on Tue, 07 Jan 2020 02:09:49 -0800

Two methods of minimum spanning tree (Kruskal algorithm and Prim algorithm)

Conceptual definitions of graphs: Connected graph: In undirected graph, if any two vertices vivi and vjvj have paths that are connected, the undirected graph is called connected graph. Strongly connected graph: In a directed graph, if any two vertices vivi and vjvj have paths that are connected, the directed graph is called a strongly connecte ...

Posted by MrBillybob on Sat, 04 Jan 2020 19:40:52 -0800

Scm-C language definition and declaration

The following code is a single-chip program, 51 single-chip, compiler HT-IDE3000, Simply speaking The header file can only state, When variables are declared in the header file, the keyword extern should be added to tell the compiler that variables are defined in other files, enum is not a variable, but a data type defined by ourselves. Like in ...

Posted by McChicken on Sat, 04 Jan 2020 15:49:33 -0800