PAT class B 1003 I want to pass
Topic information
"Correct answer" is the most gratifying reply given by the automatic question judgment system. This question belongs to PAT's "correct answer" distribution - as long as the read string meets the following conditions, the system will output "correct answer", otherwise it will output "wrong an ...
Added by Jeremysr on Wed, 05 Jan 2022 20:16:40 +0200
Analysis and java implementation of ten classic sorting algorithms (to be continued)
reference material
Ten classic sorting algorithm animation and analysis, look at me! (complete version with code)https://www.bilibili.com/video/BV1Kb411W75NMerge sortMerging sorting of graphic sorting algorithm (4)
0. Basic concepts
Sorting: it is an important operation in computer programming. Its function is to rearrange a set or seque ...
Added by eshban on Wed, 05 Jan 2022 19:42:24 +0200
[Leetcode data structure algorithm] merge two ordered arrays (sequential table)
Title Content:
You are given two integer arrays nums1 and nums2 in non decreasing order, and two integers m and n representing the number of elements in nums1 and nums2 respectively. Please merge nums2 into nums1 so that the merged array is also arranged in non decreasing order. Note: the final merged array should not be returned by the fun ...
Added by clarket on Wed, 05 Jan 2022 17:38:06 +0200
Algorithm implementation of Huffman tree and Huffman coding
Algorithm implementation of Huffman tree and Huffman coding (required, confirmatory experiment)
Experimental purpose
Be familiar with the construction method of Huffman tree and the application of Huffman coding, and understand the application process of Huffman tree in the field of communication and coding. Experimental content (1) Input a ...
Added by gt500pwr on Wed, 05 Jan 2022 16:56:58 +0200
Left God algorithm and data structure full order class
download:Left God algorithm and data structure full order classWhy return a unified canonical format for SpringBootUnder the condition of acquiescence, there are three common return formats of SpringBoot:First: return String@GetMapping("/hello")public String getStr(){ return "hello,javadaily";}Copy codeAt this time, the return value obtained b ...
Added by james19 on Wed, 05 Jan 2022 16:50:51 +0200
College students are closed to dormitories because of the epidemic. Is it boring? Then brush a few linked list algorithm problems to solve boredom -- Java implementation
preface
๐ hello everyone!!! I'm a Java ape~
๐ Because of the epidemic situation, the dormitory is closed. It's good not to run around and add chaos to the society.
๐ธ Because there is nothing to do in the dormitory, but you can't fall behind to learn, so brush a few OJ questions in the linked list to consolidate what you have learned ...
Added by karan23424 on Wed, 05 Jan 2022 15:44:00 +0200
Brush Title LeetCode: 4 Find the median of two positively ordered arrays
Link Title:Force buckle
Title Description
Give two positively ordered (from small to large) arrays nums1 and nums2 of sizes m and n, respectively. Please find and return the median of these two positive arrays. The time complexity of the algorithm should be O(log (m+n))
Topic analysis
Conventional thinking: 1. Merge two arrays in sorti ...
Added by electrix on Wed, 05 Jan 2022 14:45:20 +0200
Detailed traversal of graph (breadth first and depth first)
The algorithm practice of data structure is for homework. I chose the traversal of the graph, because I feel that it will be more clear about the relevant algorithms than other topics. This article is written to make everyone more clear about the traversal algorithm of the graph, and also to review their relevant knowledge again, so as to help ...
Added by yeshuawatso on Wed, 05 Jan 2022 06:22:43 +0200
Solution to the problem of Luogu P1656 bombing Railway
The first title of konjaku
Original question link
Er, first simplify the meaning of the question. The general meaning is to let you blow up one of the m railways, so that two of the n cities are not connected (the idea of using and searching the set is to let you cut off one edge, so that there are two connected blocks).
If you don't look at ...
Added by thepeccavi on Wed, 05 Jan 2022 05:18:59 +0200
CvT: how to integrate the advantages of convolution into Transformer
[GiantPandaCV introduction] different from the previous BoTNet, although the title of CvT has the word convolution, it is still dominated by Transformer Block in general. Convolution is introduced in the processing of Token, which brings locality to the model. Finally, CvT won the highest Top1 accuracy of 87.7%.
introduction
The Motivation of t ...
Added by dbakker on Wed, 05 Jan 2022 05:01:45 +0200