- 博客(451)
- 资源 (10)
- 收藏
- 关注

原创 Common mistakes using C++
error: expected initializer before ‘zmq’At beginning, I cannot find the reason behind this mistake. Until I just foud this. The reason is simple. Just usually before the “zmq”, you just forget the “;”.
2022-02-17 09:41:58
328

原创 How to add new function to cout by using operator overloading
The results:No. : 1Deadline : 3Cost : 4As we all know, the cout is an ostream operator that could print the data type that has already be written in the default setting. But sometimes, we need to construct some new data structure to satisfy our dema
2021-10-24 11:21:04
87

原创 selection sort algorithm with brute force method and recursive algorithm
The results:The array a: 0 1 2 3 4 5The codes://selection sort#include<iostream>#include<iomanip>using namespace std;void selection_sort(int a[], int n);void display_selection(int a[], int n);void swap_selection(int &a
2021-10-22 17:40:16
91
原创 Addressing Disk Space Issues in a Virtual Machine
【代码】Addressing Disk Space Issues in a Virtual Machine。
2024-12-08 09:27:08
550
原创 How to use random masks to generate the corresponding gate results for two real bits in freeXOR GC?
I want to know how can we make sure the value of z^00=(λα∧λβ)⊕λγ \hat{z}_{00} = (\lambda_\alpha \land \lambda_\beta) \oplus \lambda_\gamma z^00=(λα∧λβ)⊕λγ is the value of x∧yx \land yx∧y in above case.To understand how z^00=(λα∧λβ)⊕λγ \hat{z}_{00} = (\
2024-11-25 07:58:53
550
原创 Homework 7
HaHaμSprayμABSoapμSoapμWaterHaμSprayμABSoapμSoapμWaterHa0H0H0H0。
2024-11-08 05:08:07
819
原创 【无标题】
Plant breeders are attempting to develop a new strain of dogwood tree that is resistant to air pollution. In one study of their progress, a random sample of n=45n = 45n=45 seedlings of the new strain was selected, and the seedlings were planted at random l
2024-10-25 21:42:29
894
原创 Solving Docker Platform Mismatch with QEMU Emulation
【代码】Solving Docker Platform Mismatch with QEMU Emulation。
2024-10-25 10:30:49
799
原创 How to Transfer a Docker Container to Another Device
Transferring a Docker container between devices can be challenging, especially when trying to maintain the container's current state and configurations. This guide provides a step-by-step approach to transfer a Docker container from one device to another.
2024-10-25 07:06:45
872
原创 How to migrate a CentOS 8 to Rocky Linux 8.10
【代码】How to migrate a CentOS 8 to Rocky Linux 8.10。
2024-10-24 00:40:14
1031
原创 Homework 5
aμ1.5μ2.0Haμ1.5μ2.0Haμ1.5μ2.0Haμ1.5μ2.00.05H0H0H0H0≤μ≤≤μ≤aμ1.5μ2.0spn11n21yˉ1−yˉ2Where:yˉ17.10n115s11.3628yˉ28.41n2。
2024-10-13 23:26:52
1009
原创 Understanding and Implementing Permutations
【代码】Understanding and Implementing Permutations。
2024-09-29 18:20:54
1118
原创 Tutorial: Finding the Correct Permutation for a Transformed Sequence
【代码】Tutorial: Finding the Correct Permutation for a Transformed Sequence。
2024-09-27 23:58:31
734
原创 The Homework3 for Statistics
Problem1100≤μ≤≤μ≤ˉ:xˉn∑xi100814581.45:sn−1∑xi−xˉ2999923.15≈dfn−199:t0.02599≈1.984:MEt×ns1.984×109.9617≈xˉ−ME81.45−1.980079.4700xˉME81.451.980083.43002≤。
2024-09-19 05:11:09
620
原创 How to Recover Windows in `tmux` after Creating a New One
【代码】How to Recover Windows in `tmux` after Creating a New One。
2024-09-12 04:35:34
841
原创 Ensure `ZZ_p::init(modulus)` is Called in Each Thread When Using NTL‘s `ZZ_p`
ZZ_p。
2024-09-11 22:36:10
955
原创 Tutorial: Managing Memory in `std::vector` with `clear()` and Memory Release Techniques
clear()
2024-09-04 08:13:00
1032
原创 Resolving Multi-Threading Issues in ElGamal by Upgrading NTL Library from 9.10.0 to 11.5.1
【代码】Resolving Multi-Threading Issues in ElGamal by Upgrading NTL Library from 9.10.0 to 11.5.1。
2024-09-02 06:31:36
913
原创 How to Use Python to Run Python 3 Scripts instead of Python3
【代码】How to Use Python to Run Python 3 Scripts instead of Python3。
2024-08-01 08:06:20
468
原创 Understanding Zero Knowledge Proofs (ZKP)
零知识证明(ZKP)是密码学中的一个迷人概念,其中一方(证明者)可以向另一方(验证者)证明他们知道一个值,而不透露关于该值的任何信息。
2024-07-05 03:05:41
597
原创 In the modern cryptography, we can use the exponential equation to design the encryption. What is th
In modern cryptography, the two main counterparts often referred to when using exponential equations to design encryption are:Discrete Logarithm Problem (DLP): This is a well-known hard problem that forms the basis for the security of many cryptographic s
2024-07-04 00:31:16
421
原创 Tutorial: Testing Bandwidth Between a Client and a Server
【代码】Tutorial: Testing Bandwidth Between a Client and a Server。
2024-06-27 03:59:45
827
原创 Tutorial: Safely Reducing the Size of a Git Repository
【代码】Tutorial: Safely Reducing the Size of a Git Repository。
2024-06-21 03:50:23
792
2
原创 Streamlining Multi-Party C++ Program Execution: A Comprehensive Automation Guide
This tutorial provides a comprehensive guide to automating the execution of a multi-party C++ program, which involves three distinct processes communicating with each other. It covers multiple methods, including using a bash script with `tmux`, a Makefile,
2024-06-07 09:05:14
980
原创 How to Handle Port Reuse in Socket Programming with C++
In socket programming, managing socket states such as can be crucial, especially when you need to restart your server frequently or manage dynamic connections efficiently. This tutorial will show you how to use the socket option to allow your server to b
2024-05-20 21:45:34
618
原创 Creating a Random Permutation with Fixed Indices in Python
【代码】Creating a Random Permutation with Fixed Indices in Python。
2024-03-07 06:47:05
968
原创 Managing Dynamic Global Variables in Python
【代码】Managing Dynamic Global Variables in Python。
2024-03-03 07:04:38
968
1
原创 Test the Multiplicative Homomorphic Property of the ElGamal In Python
【代码】Test the Multiplicative Homomorphic Property of the ElGamal In Python。
2024-03-02 09:44:12
448
原创 Undoing Randomization in ElGamal Encryption
ElGamal encryption allows for secure communication through public-key cryptography, offering the unique feature of ciphertext randomization. This ensures enhanced security by producing different ciphertexts for the same plaintext upon each encryption.For o
2024-03-01 05:18:33
939
原创 Amazing ElGamal
Key Generation:Encryption:Randomization:Decryption:Let’s demonstrate the entire process with a concrete example:The ciphertext is ((c_1, c_2) = (4, 12)).The randomized ciphertext is ((c_1’, c_2’) = (20, 2)).To decrypt both the original and randomized ciphe
2024-02-28 11:05:05
840
原创 `std::system_error‘ usingthe <future> in C++
Parallel programming in C++ has been greatly simplified with the introduction of the , , , and classes in C++11. These tools allow developers to write concurrent code that is both efficient and easier to understand. However, as with any powerful tool, the
2024-02-28 10:53:36
898
原创 在多线程编程中使用 `std::future` 和 `std::vector<std::future<void>>`
C++中的多线程允许代码并行执行。使用和,你可以更有效地管理异步操作。
2024-02-04 04:45:17
598
原创 套接字编程:常见错误 - 端口权限
此错误是由于尝试将套接字绑定到需要提升权限的端口所致。在大多数操作系统中,编号低于1024的端口被视为“特权”端口,只能由具有根或管理员权限的进程绑定。对于非特权应用程序,使用大于1024的端口号。这样可以避免需要根权限,并且通常是大多数应用程序的最佳实践。不要使用端口111,而应使用更高的端口号,如5000、8000或任何其他超过1024的端口。尝试设置服务器套接字以监听端口时,收到错误:“无法监听端口111”。
2024-01-20 11:19:28
1096
原创 The Computation Comparisions between Raspberry Pi 5 and M2 Pro
This article provides a comparative table highlighting the key differences between the Broadcom BCM2712 CPU and the Apple M2 Pro chip. Please note that the BCM2712 details are based on the format you provided earlier, and the M2 Pro details are from the in
2024-01-03 00:27:46
447
原创 Catalan numbers upper bound
nn11n2nn1n!2nC01C11C22C35nn11n2nn14nn14nn14n4nfor all (n≥14n。
2023-12-29 04:25:08
415
原创 How to clone a private repository in github into the remote server
【代码】How to clone a private repository in github into the remote server。
2023-12-17 22:20:28
561
原创 Scrapy Spider Tutorial: Extracting Product Prices
【代码】Scrapy Spider Tutorial: Extracting Product Prices。
2023-10-11 09:32:06
111
steepest gradient + conjugate + BFGS
2022-05-23
assignments for convex optimization wtih 2.5, 2.6 and 2.7
2022-03-19
The retrospective material for English exam unit_5 Law.pdf
2021-12-14
The retrospective material for English exam unit_4 Survival.pdf
2021-12-14
The retrospective material for English exam Unit_3 Disease.pdf
2021-12-14
The retrospective material for English exam unit_2 Design.pdf
2021-12-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人