Eleven Long Vacations Simulated Day1

Eleven Long Vacations Simulated Day1 Eleven long holidays for five days, seven full days to tell the truth, I've been satisfied... It makes sense to schedule two simulations in five days, since I am ready to simulate for five consecutive days... Deliberately arrived at the computer room 7:30 a.m. before the start of 8:30 a.m.... This simula ...

Posted by JMair on Mon, 04 Oct 2021 10:16:33 -0700

Machine learning_ 1:K-nearest neighbor algorithm

Machine learning_ 1:K-nearest neighbor algorithm Experimental background This experiment is based on the classical k-nearest neighbor algorithm of machine learning. I will first introduce the principle of k-nearest neighbor algorithm and basic classification experiments, and then introduce how to use k-nearest neighbor algorithm for handw ...

Posted by glitch003 on Sun, 03 Oct 2021 18:32:21 -0700

Algorithm design and analysis 002

Algorithm design and analysis 002 1. Sequence of basic exercises Given a sequence of length N, the sequence is arranged from small to large. 1 < = n < = 200 input Description: The first line is an integer n. The second row contains n integers, which are the numbers to be sorted, and the absolute value of each integer is less than 10000. ...

Posted by rheroux on Sun, 03 Oct 2021 18:26:02 -0700

LeetCode-35 search insertion position solution C++

35. Search insertion positionhttps://leetcode-cn.com/problems/search-insert-position/ Simple difficulty 1103 Given a sort array and a target value, find the target value in the array and return its index. If the target value does not exist in the array, returns the position where it will be inserted in order. Please use a time complexity of ...

Posted by newzub on Sun, 03 Oct 2021 17:10:37 -0700

Java swap exchange, bubble sort, select sort, insert sort

catalogue swap exchange mode   Bit operation Mathematical calculation Through array exchange Bubble sorting Basic idea of bubble sorting Code design code implementation Time and space complexity Select sort Basic idea of selective sorting Code design code implementation Time and space complexity Insert sort Basic idea of in ...

Posted by rvpals on Sun, 03 Oct 2021 15:57:25 -0700

Principle and implementation of knn algorithm

Lei Zhang For the implementation of python code of basic machine learning algorithm, please refer to: zlxy9892/ml_code 1 Principle knn is a very basic algorithm in the field of machine learning, which can solve classification or regression problems. If it is just beginning to learn machine learning, knn is a very good entry choice. It ...

Posted by maxkbr on Sun, 03 Oct 2021 15:06:37 -0700

Zuo Cheng cloud algorithm Course Learning Notes - understanding O(NlogN) sorting

Recognize the ordering of O(NlogN) Analysis of recursive behavior and estimation of time complexity of recursive behavior Using recursive method to find the maximum value in an array, what is the system doing? Supplementary knowledge: the binocular operator "> >" refers to shifting one bit to the right, which is calculated in ...

Posted by slipster70 on Sun, 03 Oct 2021 12:43:52 -0700

Large simulated duck chess (250 lines of ultra short practice, easy to understand)

Title Description: Luogu Title portal pokes him!!! Problem solving ideas: Algorithm Introduction: The algorithm label clearly says that this problem is a proper big simulation. We can stabilize this problem without any algorithm optimization in the program. Don't ask me how I know As we all know, the topic of large-scale simulation is ...

Posted by ckdoublenecks on Sat, 02 Oct 2021 18:46:29 -0700

Basic data structure - eight sorts

Sorting: the focus of written examination and interview. 1. Algorithm description; 2. Realization; 3. Efficiency analysis (time complexity, space complexity, stability) Difficulty: too many sorting algorithms Stability: for data with the same keyword (the same number), if A is in front of A 'before sorting, the algorithm is stable if A is i ...

Posted by coowboy on Sat, 02 Oct 2021 18:17:52 -0700

[sword finger Offer] mathematics

Sword finger Offer 14- I. cut rope Here is a rope with length n. please cut the rope into m segments of integer length (M and N are integers, n > 1 and M > 1). The length of each segment of rope is recorded as k[0],k[1]...k[m-1]. What is the possible maximum product of k[0]*k[1]*...*k[m-1]? For example, when the length of the rope is 8, ...

Posted by husslela03 on Sat, 02 Oct 2021 15:42:16 -0700