• 2024-10-27Floyd 算法
    算法用途:Floyd算法是用于解决两点间最短路径的一种算法,可以处理有向图或负权的最短路问题。该算法时间复杂度为\(O(N^3)\),空间复杂度为\(O(N^2)\)。算法原理Floyd算法基于动态规划实现。Floyd算法一直在解决一个问题,寻找\(i\rightarrowj\)的最短路径(废话)。但是,既
  • 2024-10-23[算法题解] Codeforces round 979 --D. QED's Favorite Permutation
    题目链接:https://codeforces.com/contest/2030/problem/D题目:题解:FavotitePermutation即每个数满足i=p[i];此题中,p数组每次询问后保持不变,s根据询问而改变。因此每次需要进行交换的数的位置是相同的,只需要检验s变更后,操作能否满足交换需求与否。故创建需数组need,预处理nee
  • 2024-10-16YT to WAV - A Handy Tool for Audio Conversion
    Intoday'sdigitalworld,weoftenhavetheneedtoconvertaudioformats.Maybeyou'vecomeacrossagreatsongoraninterestingspeechonYouTubeandwantedtosaveitinadifferentaudioformatforvariousreasons.Well,that'swhereY
  • 2024-10-12Need BLUETOOTH PRIVILEGED permission以及requestMtu导致蓝牙断连问题
    在部分Android手机上,当连接上GATTService后直接requestMtu有可能会造成蓝牙连接中断,随后继续重新连接会报错NeedBLUETOOTHPRIVILEGEDpermission1//扫描成功后连接gatt2BluetoothDevicemRemoteDevice=mBluetoothAdapter.getRemoteDevice(result.getDevice().getAddress(
  • 2024-10-08LeetCode 1371. Find the Longest Substring Containing Vowels in Even Counts
    原题链接在这里:https://leetcode.com/problems/find-the-longest-substring-containing-vowels-in-even-counts/description/题目:Giventhestring s,returnthesizeofthelongestsubstringcontainingeachvowelanevennumberoftimes.Thatis,'a','e&
  • 2024-09-23ELEC5307 Deep Learning
    ELEC5307DeepLearningProject#1:ParametersinNeuralNetworksDue:23Oct202011:59PM1ObjectivesThislaboratoryaimstointroducethebasictechniquesindeepneuralnetworks.Inthislaboratoryyouwill:LearntousePyTorchtoloadimagesand
  • 2024-09-22COMP5328 - Advanced Machine Learning
    COMP5328-AdvancedMachineLearningAssignment1Due:19/09/2024,11:59PMThisassignmentistobecompletedingroupsof3to4students.Itisworth25%ofyourtotalmark.1ObjectiveTheobjectiveofthisassignmentistoimplementNon-negativeMatri
  • 2024-09-19SIT742: Modern Data Science
    DeakinUniversityTrimester2,2024SchoolofITAssignment2UnitTeam:SIT742SIT742:ModernDataScienceExtensionRequestStudentswithdifficultyinmeetingthedeadlinebecauseofvariousreasons,mustapplyforanassignmentextensionnolaterthan
  • 2024-09-18159.235 2023 S02 Wireframe Data Viewer
    159.2352023S02—Assignment2Thisassignmentcoversthetopics:coordinates,transformations,3dmodelling,andvisiblesurfaces.WireframeDataViewerWriteaJavaprogramthatrendersa3dimensionaltrianglewireframesurfacedatamodelandallowso
  • 2024-09-18Attention is all you need 论文阅读笔记
    AttentionisallyouneedTransformeronlybasedonattentionmechanisms,dispensingCNN,RNNIntroductionandBackgroundRNN必须将前一步生成的h
  • 2024-09-14滑动窗口算法—最小覆盖子串
    题目         ”最小覆盖子串“问题,难度为Hard,题目如下:        给你两个字符串S和T,请你在S中找到包含T中全部字母的最短子串。如果S中没有这样一个子串,则算法返回空串,如果存在这样一个子串,则可以认为答案是唯一的。    比如输入S="ADB
  • 2024-09-14ITD102: Computer Technology Fundamentals
    ITD102:ComputerTechnologyFundamentalsWorkbook2:HighLevelTechnologiesThisdocumentcontainsthe practicalexercises questionsrelevanttothesecondpartofthisunit.RaspberryPi:AllstudentsneedaRaspberryPi.Thereisnotextbooktopurchas
  • 2024-09-10ECOM 2001 Term Project Description
    ECOM 2001 TermProjectDescriptionDue 30Septemberat 9:00AMAWSTIntroductionThe aim of thisproject is toprepare, evaluate and analyse stockmarket data and torecommend an optimalportfo- lioconsistingof two stocks. Youhavebeen
  • 2024-09-05Transformer: Attention is all you need
    Transformer于2017年提出,最开始应用于NLP领域,随着Transformer的快速发展,在视觉领域中也越来越多的论文或应用用到了Transformer,这里记录一下自己学习的一些知识点。PDF:《AttentionIsAllYouNeed》Code:attention-is-all-you-need-pytorch一、前置知识1.1注意力机制Tran
  • 2024-08-29`need_resched` 标志
    `need_resched`标志是Linux内核中用于进程调度的一个重要标志。这个标志的主要功能是通知内核,当前正在运行的进程或线程已经准备好放弃CPU,让出执行权给其他进程或线程。简单来说,`need_resched`告诉内核:“我已经完成了我的工作的一部分,现在有一个或多个其他进程/线程可能更需
  • 2024-08-26Authentication scenarios and recommendations MSAL vs Microsoft.Identity.Web
    AuthenticationscenariosandrecommendationsIfyouhaveawebapporanAPIrunninginAzureAppService,youcanrestrictaccesstoitbasedontheidentityoftheusersorapplicationsthatrequestit.AppServiceoffersseveralauthenticationsolution
  • 2024-08-22LeetCode 2952. Minimum Number of Coins to be Added
    原题链接在这里:https://leetcode.com/problems/minimum-number-of-coins-to-be-added/description/题目:Youaregivena 0-indexed integerarray coins,representingthevaluesofthecoinsavailable,andaninteger target.Aninteger x is obtainable ifthere
  • 2024-08-19C. Splitting Items
    https://codeforces.com/contest/2004/problem/C总结:一开始看错题了,思维惯性的认为alice会拿前一半大的元素,bob会拿后一半大的元素。。其实不是,而是每个人都挑最大的拿voidsolve(){intn,k;cin>>n>>k;vector<int>a(n);for(auto&x:a){
  • 2024-08-10Python网络爬虫抓取动态网页并将数据存入数据库MySQL
    简述以下的代码是使用python实现的网络爬虫,抓取动态网页http://hb.qq.com/baoliao/。此网页中的最新、精华下面的内容是由JavaScript动态生成的。审查网页元素与网页源码是不同。以上是网页源码以上是审查网页元素所以此处不能简单的使用正则表达式来获取内容。
  • 2024-08-05SciTech-BigDataAI-ImageProcessing-OpenCV-Splitting and Merging Channels with OpenCV
    Links:https://pyimagesearch.com/2021/01/23/splitting-and-merging-channels-with-opencv/OpenCVOfficial:https://docs.opencv.org/3.4/d3/df2/tutorial_py_basic_ops.htmlSplittingandMergingImageChannelsSometimesyouwillneedtoworkseparatelyonth
  • 2024-08-03大模型相关
    1.回复中包含推理或解释systemprompt1.YouareanAIassistantthathelpspeoplefindinformation.Provideadetailedanswersouserdon’tneedtosearchoutsidetounderstandtheanswer.2.YouareanAIassistantthathelpspeoplefindinformation.
  • 2024-07-26算法与数据结构 -随笔
    1.LinkedList1)Buildthelist2)Sortthelist3)Lookupsomeiteminthelist4)Insertionanddeletioninthelist5) Reversethelist6)JousephproblemWeshouldn'tlimitourselvestoonlymoveonesinglestepbyusing
  • 2024-07-24Codeforces Round 961 (Div. 2)
    A#include<bits/stdc++.h>usingnamespacestd;inta[200];voidsolve(){intn,k;cin>>n>>k;a[1]=n;for(intj=n-1,i=2;i<=1+(n-1)*2;i+=2,j--){a[i]=a[i+1]=j;}if(!k){cout<<0<<"\n
  • 2024-07-15真题模拟2022CSP-J总结
    T1乘方这个题真的是很简单,就特判一下1的情况,其它情况直接暴力枚举即可考试的时候也是非常快的想到T2解密也比较容易首先我们把ed=(p_i−1)(q_i−1)+1打开变为ed=pq−p−q+1+1将n=pq带入原式得:ed=n−p−q+2那么我们现在有了两个式子:p+q=n-ed+2pq=n如果我
  • 2024-07-09Codeforces Round 956 (Div. 2) 部分题解A~C
    A.ArrayDivisibility题目大意构造长度为n的数组,满足:所有j的aj之和可以被k整除,其中j是k的倍数,k的取值为1~n。思路构造序列1->n即可满足条件。代码实现voidsolve(){  lln;cin>>n;  for(inti=1;i<=n;i++)cout<<i<<"";  cout<<"\n"