search
HomeCommon ProblemWhat is a pseudorandom sequence

Pseudo-random sequence is a certain sequence with certain random characteristics. They are deterministic sequences generated by shift registers, yet they are random sequences with some random characteristics. Because it also has random characteristics, it is impossible to judge whether a generated sequence is a true random sequence or a pseudo-random sequence from the characteristics of the sequence. It can only be judged based on the method of generating the sequence.

What is a pseudorandom sequence

If a sequence, on the one hand, it can be predetermined and can be produced and copied repeatedly; on the other hand, it has some kind of random sequence Random characteristics (ie statistical characteristics), we call this sequence pseudo-random sequence.

Pseudo-random sequence is a certain sequence with certain random characteristics. They are deterministic sequences generated by shift registers, yet they are random sequences with some random characteristics. Because it also has random characteristics, it is impossible to judge whether a generated sequence is a true random sequence or a pseudo-random sequence from the characteristics of the sequence. It can only be judged based on the method of generating the sequence. The pseudo-random sequence series has good randomness and a correlation function close to white noise, and has pre-determinability and repeatability. These characteristics make pseudo-random sequences widely used, especially in CDMA systems as spreading codes, which have become a key issue in CDMA technology. The characteristic is that the number of occurrences of the two elements in the sequence is approximately equal.

If n elements appearing continuously are called an element run of length n, then the run of elements of length n in the sequence is twice as long as the run of elements of length n 1.

There is a certain relationship between sequence elements, but it has properties similar to random sequences. It can be expressed as

…, ɑ-1, ɑ0, ɑ1, ɑ2 ,...

where ɑi can take the value 0, 1 or 1, -1; it can also take the elements in the symbolic field GF(q) (see block code). The former is called a binary sequence, and the latter is called a q-ary sequence. But the most important thing in practice is the former. The sequence length can be finite or infinite. The latter mainly focuses on periodic sequences, that is, there is a minimum positive integer so that ɑp = ɑp i for all i, and p is the period.

When each element of the sequence is a random variable that is independent of each other and has the same distribution, it is called a random sequence. The main practical applications are pseudo-random columns. It refers to the existence of a definite relationship between sequence elements, but has the following properties similar to random sequences: ① The number of elements does not differ by more than 1 within a limited length or a period, that is, it is close to equal probability; ② The occurrence of l identical values ​​or is called The probability of l long run is close to 1/ql; ③The correlation function

is p when τ=0, and does not exceed ±1 when τ0, where p is the length or period of the sequence. In fact, sequences that generally meet the above conditions are sometimes also called pseudo-random sequences.

import numpy as np
import matplotlib.pyplot as plt
#用来正常显示中文标签
#plt.rcParams['font.family'] = ['Simhei']
plt.rcParams['font.sans-serif'] = ['Yahei consolas hybrid']
#用来正常显示负号
plt.rcParams['axes.unicode_minus']=False
# 
A = 6
N = 200
x0 = 1
M = 255
v = np.zeros([N,1])
#print(v)
x= np.arange(N)
for k in np.arange(N):
    x2 = A*x0
    x1 = x2 % M
    v1 = x1/256
    v[k] = 2*(v1 - 0.5)
    x0 = x1
#print(v.reshape(7,16))
plt.plot(x,v)
plt.xlabel('k')
plt.ylabel('v')
plt.title('伪随机序列')
plt.show()

Related free recommendations: Programming video course

The above is the detailed content of What is a pseudorandom sequence. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
deepseek web version official entrancedeepseek web version official entranceMar 12, 2025 pm 01:42 PM

The domestic AI dark horse DeepSeek has risen strongly, shocking the global AI industry! This Chinese artificial intelligence company, which has only been established for a year and a half, has won wide praise from global users for its free and open source mockups, DeepSeek-V3 and DeepSeek-R1. DeepSeek-R1 is now fully launched, with performance comparable to the official version of OpenAIo1! You can experience its powerful functions on the web page, APP and API interface. Download method: Supports iOS and Android systems, users can download it through the app store; the web version has also been officially opened! DeepSeek web version official entrance: ht

In-depth search deepseek official website entranceIn-depth search deepseek official website entranceMar 12, 2025 pm 01:33 PM

At the beginning of 2025, domestic AI "deepseek" made a stunning debut! This free and open source AI model has a performance comparable to the official version of OpenAI's o1, and has been fully launched on the web side, APP and API, supporting multi-terminal use of iOS, Android and web versions. In-depth search of deepseek official website and usage guide: official website address: https://www.deepseek.com/Using steps for web version: Click the link above to enter deepseek official website. Click the "Start Conversation" button on the homepage. For the first use, you need to log in with your mobile phone verification code. After logging in, you can enter the dialogue interface. deepseek is powerful, can write code, read file, and create code

How to solve the problem of busy servers for deepseekHow to solve the problem of busy servers for deepseekMar 12, 2025 pm 01:39 PM

DeepSeek: How to deal with the popular AI that is congested with servers? As a hot AI in 2025, DeepSeek is free and open source and has a performance comparable to the official version of OpenAIo1, which shows its popularity. However, high concurrency also brings the problem of server busyness. This article will analyze the reasons and provide coping strategies. DeepSeek web version entrance: https://www.deepseek.com/DeepSeek server busy reason: High concurrent access: DeepSeek's free and powerful features attract a large number of users to use at the same time, resulting in excessive server load. Cyber ​​Attack: It is reported that DeepSeek has an impact on the US financial industry.

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft