Chapter 3 linear table
Chapter 3 linear table
Definition of linear table
Linear List: a finite sequence of zero or more data elements.
Emphasis: first, it is a sequence. Then emphasize that the linear table is limited.
(direct) precursor element, (direct) successor element.
The number of linear table elements n(n ≥ 0) is defined as the length of the linear ta ...
Posted by razorsedgeuk on Sun, 27 Feb 2022 09:48:46 +0100
Reading method of basic practice number of Blue Bridge Cup vip test questions (java implementation)
Resource constraints
Time limit: 1.0s memory limit: 512.0MB
Problem description
Professor Tom is teaching postgraduates a course on genes. One thing gives him a headache: there are thousands of base pairs on a chromosome, which number from 0 to millions, tens of millions, or even hundreds of millions. For example, when explaining the base at ...
Posted by snarkiest on Sun, 27 Feb 2022 06:01:50 +0100
Yesterday's provisional solution
J1001 gcd
Problem solution
KaTeX parse error: Expected 'EOF', got '&' at position 253: ...d(k, t) = 1] &̲ \text{if }t = ...
$\ phi (n) = n * \ prod (1 - \ frac {1} {p_i}) = n * \ prod {\ frac {p_i - 1} {p_i} & [\ text {if} n = \ prod {p_i ^ {a_i}}, p_i \ text {is the quality factor}] \ $
Time complexity:
...
Posted by benjam on Sun, 27 Feb 2022 05:50:36 +0100
Sort - quick sort (fast and slow pointer Implementation)
The two solutions of too fast scheduling summarized before can be used as a reference Two common solutions of fast scheduling Recently, I found another method that is easier to understand. Make a record here.
This is a method of using "fast and slow pointer comparison" to realize the fast sorting algorithm.
The key to realize the qu ...
Posted by dnoonan on Sun, 27 Feb 2022 05:13:03 +0100
[Blue Bridge Cup] Q & A
answering question
have
n
n
n students asked the teacher to answer questions at the same time. Each student has estimated the time of answering questions in advance.
The teacher can arrange the order of answering questions, and the students should enter the teach ...
Posted by imderek on Sun, 27 Feb 2022 05:08:29 +0100
[Scipy optimization tutorial] VI. root seeking, fixed point problem and its acceleration algorithm
Refer to the official website: Scipy.
Fixed point problem
The problem closely related to finding the zero point of a function is to find the fixed point of a function. The fixed point of a function refers to the point returned when the function is evaluated:
g
(
...
Posted by abriggs on Sun, 27 Feb 2022 02:36:58 +0100
[daily algorithm] force deduction 350 Intersection of two arrays II
describe
Given two arrays, write a function to calculate their intersection.
Example 1:
Input: nums1 = [1,2,2,1], nums2 = [2,2]
Output:[2,2]
Example 2:
Input: nums1 = [4,9,5], nums2 = [9,4,9,8,4]
Output:[4,9]
explain:
The number of occurrences of each element in the output result shall be consistent with the minimum number of occurrence ...
Posted by phpete2 on Sun, 27 Feb 2022 02:04:52 +0100
Leetcode Brush Title Note - Backpack Problem in Dynamic Planning: 01 Backpack
Catalogue of Series Articles
I. Array Type Solution Method I: Dichotomy 2. Array Type Solution Method 2: Double Pointer Method 3. Array Type Solution Method 3: Sliding Window IV. Array Type Solution Method 4: Simulation V. Basic Operation and Classical Title of Chain List in Chain Table Text 6. Classic Title of Hash Table 7. Classic Title ...
Posted by vbzoom.com on Sat, 26 Feb 2022 18:27:33 +0100
L2-016 wish all lovers in the world are brothers and sisters who have been separated for many years (25 points)
L2-016 wish all lovers in the world are brothers and sisters who have been separated for many years (25 points) ha-ha. We all know that intermarriage is not allowed within five clothes, that is, if the nearest common ancestor of two people is within five generations (i.e. myself, parents, grandparents, great grandparents and high grandparents), ...
Posted by WickedStylis on Sat, 26 Feb 2022 17:21:51 +0100
[machine learning] basic learning notes of DS 4: neural network and back propagation algorithm
Neural network and back propagation algorithm
4.1 cost function
in the previous section, we learned the basic structure of neural network and forward propagation algorithm. In the supporting operation, the weights of neural network have been given, but how can we train the appropriate weights ourselves? Therefore, we need to ...
Posted by garethdown on Sat, 26 Feb 2022 16:30:27 +0100