Small thoughts: Recently, my mood is more complicated, ε=(′ο`*))), probably the time has come, coupled with the uncertainty of the future, the state has not been good; Seeing that many bigwigs have found summer internships, I am still here. First, I feel that the atmosphere is not bad (except for the Internet environment, there is […]
Tag: iso
[Python Network Programming] Comparison of TCP and UDP
TCP transport method 1. TCP transmission characteristics Connection Oriented Transport Service Transmission characteristics: Provides reliable data transmission, reliability refers to no loss, no disorder, no error, no duplication during data transmission. Reliability guarantee mechanism (all are automatically completed by the operating system network service for the application): A data connection needs to be established before […]
c++ and go language use json comparison
Article directory foreword One, c + + operation JSON coding decoding 2. Golang operates JSON coding decoding Summarize Foreword JSON is a common data interchange format. Both C++ and Go languages provide libraries for manipulating JSON. This article introduces how to deal with JSON data in Go language and C++, and compares their similarities and […]
Comparison and application of Spring AOP and AspectJ
1 Introduction AOP, that is, aspect-oriented programming is a very common technology, especially in Java Web development. The most popular AOP frameworks are Spring AOP and AspectJ respectively. 2 Spring AOP vs AspectJ Spring AOP is implemented based on Spring IoC, which solves most of the common needs, but it is not a complete AOP […]
Data structure – sorting algorithm (merge && non-comparison)
Directory 1. Merge sort 1.1 Basic idea 1.2 Implementation of Merge Sort Recursive Mode 1.3 Implementation of non-recursive merge sort 1.4 Summary of features of merge sort 2. Counting and sorting 2.1 Basic idea of counting sort 2.2 Implementation of counting sort 2.3 Summary of the characteristics of counting sort: 1. Merge sort 1.1 Basic […]
C++ STL and Qt container comparison
〇、Preface In daily development, it is often necessary to use some data structures to store data. In pure C++ development, you only need to choose the appropriate data structure according to your needs. But for the Qt/C++ mixed scenario, which data structure to choose becomes a problem, so in order to solve this doubt, I […]
Intelligent Systems Experiment: Schelling Isolation Model Simulation
import matplotlib.pyplot as plt import itertools import random import copy class Schelling: def __init__(self, width, height, empty_ratio, similarity_threshold, n_iterations, races=2): self.old_agents = None self. remaining_houses = None self.n_empty = None self.all_houses = None self. width = width self. height = height self.races = races self.empty_ratio = empty_ratio self. similarity_threshold = similarity_threshold self.n_iterations = n_iterations self.empty_houses […]
Redis data structure – QuickList, SkipList, RedisObjective
Following the above, this article mainly introduces QuickList, SkipList, RedisObjective 4. Redis data structure – QuickList Question 1: Although ZipList saves memory, the application memory must be a continuous space. If the memory occupies a lot, the application memory efficiency is very low. what to do? ? Answer: In order to alleviate this problem, we […]
Being imprisoned for 100,000 years, java is crazy
8.1Java class package Every time a class is defined in Java, after being compiled by the Java compiler, a file with the extension .class will be generated. When the scale of the program gradually expands, it is easy to cause name conflicts. Thousands of classes with various functions are provided in the JDK API, and […]