Exercise 2 - Data Lookup

subject There is a group of numbers 12, 56, 45, 78, 90, 80, 23, 16, 8 and 63 stored in an array. Any number is received from the keyboard, and the number is searched in the array to give the information whether it is found. If found, it is required to output the position of the number in the array; If not found, output the prompt message th ...

Added by keldorn on Sat, 25 Dec 2021 09:42:49 +0200

Representation learning——

principal component analysis 1. Summary Principal component analysis was proposed by Karl Pearson in 1903 and improved from another perspective by Harold Hotelling in the 1930s. It is a method suitable for high-dimensional data and exploratory data analysis. As one of the first algorithms applied to pattern recognition and machine lea ...

Added by twilitegxa on Sat, 25 Dec 2021 07:17:37 +0200

Merge sort is implemented in Java

Merge sort thought An array is divided into groups at one level. The groups are sorted internally, and then several groups are merged and sorted Use the picture made by Mr. Han Shunping of Shang Silicon Valley In short, thought is divide and rule ###Code implementation Let's put the main function up first public static void main(String[] arg ...

Added by NotMrT on Sat, 25 Dec 2021 05:20:43 +0200

Implementation of algorithm

Algorithm algorithm A finite instruction setAccept some input (in some cases, no input is required)Generate outputMust terminate after limited stepsEach instruction must: There are fully clear objectives, and there can be no ambiguity Within the range of computer processing The description shall not depend on any computer language and spe ...

Added by maliskoleather on Sat, 25 Dec 2021 03:45:33 +0200

C language training -- student achievement management system

At the end of learning the C language, the teacher asked us to do the system with reference to the code in GitHub. I have uploaded the complete code to the resource and intend to take it myself. catalogue I requirement analysis         1. Software development purpose      &n ...

Added by ukscotth on Sat, 25 Dec 2021 01:49:05 +0200

Raft algorithm_ SOFAJRaft source code learning_ (I. background and main selection demonstration)

background For the principle of raft algorithm, it is recommended to refer to the raft official website: https://raft.github.io/ It is highly recommended to watch the process animation of raft to facilitate intuitive understanding of the algorithm process Animation address: http://thesecretlivesofdata.com/raft/ By reading the source code ...

Added by renegade888 on Sat, 25 Dec 2021 01:12:42 +0200

[machine learning sklearn] Decision Tree algorithm

Tip: here is a hard Ken 📕 If Xiaobai makes a mistake, change it. Don't spray it:) preface The sky can be mended, the sea can be filled, the mountains can be moved, the sun and the moon are past, and can not be pursued again. Decision Tree is based on tree structure to make decisions. (classification, regression) A decision tree contai ...

Added by deniscyriac on Sat, 25 Dec 2021 00:36:26 +0200

Lesson 5 string

1. Basic knowledge 1. Characters and integers can be converted to each other, for example #include <iostream> using namespace std; int main() { char a1[] = {'C', '+', '+'}; cout <<"a1:" << a1 << " size:" << sizeof(a1) << endl; char a2[] = {'C', '+', '+', '\0'}; cout <<"a2:" << a2 <& ...

Added by XenoPhage on Fri, 24 Dec 2021 22:57:18 +0200

[Python data structure series] ☀️ Queue (sequential queue, chain queue, double ended queue) - knowledge point explanation + code implementation ☀️

Soul torture: why learn data structures? Data structure, to understand it bluntly, is to study the storage mode of data. Data storage has only one purpose, that is, to facilitate the reuse of data in the later stage. Therefore, the storage of data in computer storage space is by no means random, which requires us to choose a good way to store d ...

Added by umguy on Fri, 24 Dec 2021 21:13:25 +0200

Dynamic sequence table of data structure (including game menu)

In the previous article, we talked about the static sequence table of data structure and the implementation of static sequence table. For details, see my previous article - > > > Static sequence table of data structure. We can know that the disadvantage of static sequence table is that because it uses fixed length array, it will waste ...

Added by chrbar on Fri, 24 Dec 2021 21:04:53 +0200