Questions and solutions of 2021 algorithm design and analysis practice examination of China University of mining and Technology (Xin'an Edition)

Say before:Due to this exam, I don't know which brother of Xin'an hacked the school's OJ platform, resulting in more than 100 people unable to log in to OJ at the same time, and the exam was forced to be terminated for half an hour However, because a few students just logged in for a short meeting and saw the questions (such as me), the school ...

Posted by cwncool on Thu, 23 Dec 2021 13:05:43 +0100

CF484-E. Sign on Fence

Portal Given length is N N Array of N Several triples { l , r , w } ...

Posted by SergiuGothic on Thu, 23 Dec 2021 11:40:55 +0100

Course design student information management system python (character, list, dictionary, modular complete operation)

Primary comprehensive application of python -- student information management system Variable process control function module Project requirements: Realize the addition, deletion, modification, query and exit of the business card. Select different functions by selecting different numbers. The user's name, telephone, QQ email can be modified ...

Posted by vMan on Thu, 23 Dec 2021 09:35:43 +0100

Program source code sharing - PLC Experiment of STM32 (including DAC and ADC)

I. principle of PID algorithm In industrial applications, PID and its derivative algorithms are one of the most widely used algorithms and are well deserved universal algorithms. If you can skillfully master the design and implementation process of PID algorithm, it should be enough for ordinary R & D personnel to deal with general R & ...

Posted by spfoonnewb on Thu, 23 Dec 2021 08:28:26 +0100

[backtracking method] use backtracking algorithm to solve the problem of multiple sum of numbers (java)

Algorithm design and Analysis Experiment 8: backtracking method 1. Subjective questions (10 points) Experiment 8: use the backtracking algorithm to solve the Sum It Up problem (complete the contents of experiment report 3, 4, 5 and 6) 1, Experimental purpose Practice using backtracking algorithms to solve practical problems (implemented in ...

Posted by PHPBewildered on Thu, 23 Dec 2021 07:51:13 +0100

Four methods of linked list inversion (stack, head insertion, three finger needle and recursion)

Four methods of single linked list inversion or transpose The reversal of the linked list is essentially to reverse the contents of the linked list: If the data stored in the linked list is: 1 - > 2 - > 3 - > 4 - > 5; After the reversal, it is: 5 - > 4 - > 3 - > 2 - > 1; Here are four methods to reverse the linked list ...

Posted by kol090 on Thu, 23 Dec 2021 04:35:35 +0100

Discrete Mathematics II-Solution of Spanning Tree, Loop Space and Break Set Space

Experimental purposes: Master the solution of undirected connected graph spanning tree;Master the solution of basic loop system and loop space.Master the basic cut set system and the solution of the cut set space;Understand the practical applications of spanning tree, loop space, and breakset space. Experimentation Requirements 1. Given an ...

Posted by rocksolidsr on Wed, 22 Dec 2021 21:53:56 +0100

Codeforces Round #741 (Div. 2) D2. Two Hundred Twenty One (hard version) prefix and + segmentation model

Portal Meaning: Give you a length of n n String of n, + + +Represent 1 1 1, ...

Posted by paolo on Wed, 22 Dec 2021 19:37:31 +0100

1010 detailed explanation of radiation test points, pits and problems needing attention with two solutions of sequential search and binary search (PAT (Advanced Level) Practice)

catalogue subject Test sample Input sample 1 (the title comes with it) Output sample 1 Input example 2 (the title comes with) Output sample 2 Input example 3 (self compiled, special case - N1 and N2 are 0) Output sample 3 Input example 4 (self compiled, normal) Output sample 4 Input example 5 (self compiled, normal) Output example 5 ...

Posted by RaythMistwalker on Wed, 22 Dec 2021 17:28:26 +0100

LeetCode_ Array_ Medium_ 59. Spiral matrix II

1. Title Give you a positive integer n to generate an n x n square matrix containing all elements from 1 to n2 and the elements are spirally arranged in clockwise order. Example 1: Input: n = 3 Output: [[1,2,3], [8,9,4], [7,6,5]] Example 2: Input: n = 1 Output: [[1]] Tips: 1 <= n <= 20 Source: LeetCode Link: https://leetcode-cn.c ...

Posted by kapishi on Wed, 22 Dec 2021 06:40:25 +0100